# cmake and tesseract

50-50 a opencv question i suppose.

I'm trying to compile a opencv/tesseract program with cmake, but i'm not sure what options to use. This is my current CmakeLists.txt:

cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") #adding support for c++11 project( bla ) set(CMAKE_AUTOMOC ON) # qt set(CMAKE_INCLUDE_CURRENT_DIR ON) # qt find_package( OpenCV REQUIRED ) find_package(Qt5Widgets REQUIRED) add_executable( tesser tesser.cpp ) target_link_libraries( tesser${OpenCV_LIBS} tesseract )

find_package( Tesseract REQUIRED) it gives me an error it can't find it, even when i specify -DMAKE_PREFIX_PATH to it.


I'm compiling now with g++ but i'd rather use cmake. Also, i can't get any proper result from the output. So far it hasn't given me any proper output from any image i fed to it.

edit retag close merge delete