String name type Error on make for OpenCV 3.2.0/3.3.0 with Tesseract

asked 2017-08-20 13:32:42 -0500

I have been trying to install Opencv 3.2.0 and 3.3.0 , with an existing installation of Tesseract 4.0 I require both of them for my projects. I had compiled them both from source. GNU version is 5.4.0 For both of the version when I run

make -j4

Error received is

[ 66%] Built target opencv_features2d Scanning dependencies of target opencv_text Scanning dependencies of target opencv_saliency [ 66%] Generating opencl_kernels_calib3d.cpp, opencl_kernels_calib3d.hpp Scanning dependencies of target opencv_line_descriptor Scanning dependencies of target opencv_calib3d [ 66%] Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o [ 66%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor.cpp.o [ 67%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmFile.cpp.o In file included from /usr/local/include/tesseract/ltrresultiterator.h:26:0, from /usr/local/include/tesseract/resultiterator.h:26, from /usr/local/include/tesseract/baseapi.h:31, from /media/feliz/Safira/GitHub/Gridkey/OpenCV/opencv_contrib-3.3.0/modules/text/src/precomp.hpp:51, from /media/feliz/Safira/GitHub/Gridkey/OpenCV/opencv_contrib-3.3.0/modules/text/src/erfilter.cpp:43: /usr/local/include/tesseract/unichar.h:164:10: error: ‘string’ does not name a type static string UTF32ToUTF8(const std::vector<char32>& str32); ^ [ 67%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/ap3p.cpp.o modules/text/CMakeFiles/opencv_text.dir/build.make:62: recipe for target 'modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o' failed make[2]: * [modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o] Error 1 CMakeFiles/Makefile2:3809: recipe for target 'modules/text/CMakeFiles/opencv_text.dir/all' failed make[1]: [modules/text/CMakeFiles/opencv_text.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 68%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/calibinit.cpp.o [ 68%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmShow.cpp.o [ 68%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/calibration.cpp.o [ 68%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor_matcher.cpp.o [ 68%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/FilterTIG.cpp.o [ 68%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/checkchessboard.cpp.o [ 68%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/objectnessBING.cpp.o [ 68%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/draw.cpp.o [ 68%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/circlesgrid.cpp.o [ 68%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/compat_ptsetreg.cpp.o [ 68%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/LSDDetector.cpp.o [ 68%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/ValStructVec.cpp.o [ 68%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/motionSaliency.cpp.o [ 68%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/compat_stereo.cpp.o [ 68%] Linking CXX shared library ../../lib/libopencv_line_descriptor.so [ 68%] Built target opencv_line_descriptor [ 68%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/dls.cpp.o [ 68%] Building CXX object ...

(more)
edit retag flag offensive close merge delete

Comments

i'm not using tesseract, but this seems related

berak gravatar imageberak ( 2017-08-21 09:33:21 -0500 )edit