Ask Your Question
0

Opencv with tesseract installation error on ubuntu

asked 2017-01-21 12:05:21 -0600

Feddav gravatar image

Hi everyone, I'm trying to compile opencv with tesseract

I built libraries using this:

 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ -D  WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=OFF -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=OFF  -D INSTALL_PYTHON_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D WITH_QT=OFF -D WITH_OPENGL=ON  ..

but it reaches the 83% and than it shows this:

    /home/fed27/opencv/build/modules/text/test_precomp.hpp:5:0:
/home/fed27/opencv_contrib/modules/text/test/test_main.cpp: In function ‘int main(int, char**)’:
/home/fed27/opencv_contrib/modules/text/test/test_main.cpp:6:5: error: ‘addDataSearchSubDirectory’ is not a member of ‘cvtest’
     cvtest::addDataSearchSubDirectory("contrib"),

does anyone know how to solve it? thanks

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2017-01-22 01:52:51 -0600

berak gravatar image

please make sure, both opencv(main) and opencv_contrib repositories have the same version.

when in doubt, update(both) and try again.

edit flag offensive delete link more

Comments

it works, thank you

Feddav gravatar imageFeddav ( 2017-01-24 02:19:31 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-21 12:05:21 -0600

Seen: 304 times

Last updated: Jan 21 '17