mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
Can't build CMake project with additional libs #284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Izaron on GitHub (Feb 18, 2017).
CLion uses CMake, and I can't build it, for example, with OCR
I have installed tesseract and leptonica developer libraries
When I trying to change "OFF" to "ON" and clean cmake and cmake folder, I get an errors
I tried change code in this part:
But got very strange behavior - this includies and define
ENABLE_OCRis available only in ccextractor.c file.Can anyone fix it? I would be very glad.
@Izaron commented on GitHub (Feb 18, 2017):
linux/build and linux/builddebug works very well with all additional libraries.
@cfsmp3 commented on GitHub (Feb 18, 2017):
GSoC qualification: 2 points
@Izaron commented on GitHub (Feb 22, 2017):
@cfsmp3 and others who have any serious experience in CMake
Can you see this diff and check commit by commit? https://github.com/CCExtractor/ccextractor/compare/master...Izaron:cmake-ocr?expand=1 (have not requested pull yet)
There was one missed library, using of static libraries and more small bugs as seems to me
https://github.com/CCExtractor/ccextractor/blob/master/docs/using_cmake_build.txt - see screenshot of current master CMake

With my changes it builds OK...
@Izaron commented on GitHub (Feb 22, 2017):
Also, still can't get out what "STATIC" in linker mean.
As I understand, with static libs we should get working binary without any dependencies? But with both STATIC and non-static I get in virtual machine:
Can anyone help me please?
CMakeLists.txt have to be updated - we should change minor version from 77 to 85, add SWSCALE from FFMPEG, and get it working.
@cfsmp3 commented on GitHub (Feb 22, 2017):
I've never used CMake, this was Anshul's work I think.
On Wed, Feb 22, 2017 at 7:14 AM, Evgeny Shulgin notifications@github.com
wrote: