Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv with tesseract installation error on ubuntu

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