Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv won't build after a Tesseract/Leptonica install

Without tesseract, my opencv builds just fine. After a tesseract/ leptonica install i get this error:

/tmp/opencv/release/modules/text/precomp.hpp:51:31: error: tesseract/baseapi.h: No such file or directory /tmp/opencv/release/modules/text/precomp.hpp:52:38: error: tesseract/resultiterator.h: No such file or directory make[2]: * [modules/text/precomp.hpp.gch/opencv_text_RELEASE.gch] Error 1 make[1]: * [modules/text/CMakeFiles/pch_Generate_opencv_text.dir/all] Error 2

i know exactly where the tesseract header files are located(/include/tesseract/header files) and i have this settings:

-D Tesseract_LIBRARY=$OPENSHIFT_HOMEDIR/python/virtenv/venv/lib/\ -D Lept_LIBRARY=$OPENSHIFT_HOMEDIR/python/virtenv/venv/lib/\ -D Tesseract_INCLUDE_DIR=$OPENSHIFT_HOMEDIR/python/virtenv/venv/include\

What else am i missing? I need tesseract for this particular build .