Closed Zaryob closed 1 year ago
This is not a leptonica issue.
I have no idea what you did, but suggest you build tesseract in a standard way according to instructions in the tesseract project. Then if you want to change the configuration, you're starting from a place where the build succeeds.
actually I add opencv and tesseract as submodules in my CMakeLists.txt file, actually I want to compile my program without using tesseract and opencv in my system. conflict I think when compiled with flags like JPEG_LIBRARIES, the targets of opencv and leptonica conflict with each other. I will try different things and let you know :)
I found cause of this issue. When I add OpenCV as subdirectory 3rdParty libraries of OpenCV affects leptonica's install targets. It is related with CMake's itself. So, its not about the Leptonica.
I'm trying to compile opencv with text support. I can build whether my system have leptonica dependency, but in windows, lack of leptonica problematic.
I want to compile both of them from source, with add_subdirectory strategy. I can build tesseract with following configuration
But when I add opencv in this build as shown below
I take this CMake out:
When I remove lines 38-41 50-L57 in "src/CMakeLists.txt" this cmake configuration error goes but in this time, compilation failed:
Is there any way to deal with that problem??