I'm building Tesseract OCR for OpenCV for Raspberry Pi using VisualGDB and Visual Studio 2017. I was able to build Leptonica library.
It is located here: D:\Projects\tesseract\leptonica The include files are located here D:\Projects\tesseract\leptonica\src And the built .so library files are located here D:\Projects\tesseract\leptonica\build I'm trying to add Leptonica Cmake files to Tesseract CMakelists.cmake I'm reading the cmake tutorial found at https://gitlab.kitware.com/cmake/community/wikis/doc/tutorials/How-to-create-a-ProjectConfig.cmake-file Unfortunately, its not a good tutorial but just an example, it doesn't explain the minimum lines I need to add another library. Using the example, I tried adding add_subdirectory(leptonica) export(TARGETS leptonica FILE "${PROJECT_BINARY_DIR}/leptonica/build/LeptonicaConfig.cmake") include(${CMAKE_CURRENT_SOURCE_DIR}/leptonica/build/LeptonicaConfig.cmake) include_directories(${Leptonica_INCLUDE_DIRS}) target_link_libraries(tesseract ${Leptonica_LIBRARIES}) I'm getting errors: Checking for module 'lept>=1.74' CMake Error at C:/Users/dmponoma/AppData/Local/VisualGDB/CMake/share/cmake-3.12/Modules/FindPkgConfig.cmake:436 (message): A required package was not found What do I do to include the leptonica library in the tesseract CmakeLists so I can build Tesseract Ocr? Also, it was asking for FindLeptonica.cmake do I need to create this file? What do I put in it? Thanks -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/9539f073-6568-4f37-9ee8-7625319bee5d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.