cmake and tesseract

asked 2016-06-29 16:04:25 -0500

atv gravatar image

updated 2016-06-29 16:05:12 -0500

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 )
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 flag offensive close merge delete