error while trying to compile opencv3

asked 2014-10-04 21:32:04 -0600

maxdoom gravatar image

updated 2014-10-04 22:58:37 -0600

[ 95%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_undistort.cpp.o Linking CXX executable ../../bin/opencv_test_calib3d [ 95%] Built target opencv_test_calib3d make: * [all] Error 2

This is the Error I get while trying to compile (make -j4) OpenCV3 on Debian. Anyone an Idea whats wrong.

SOLVED: I previously change the java version from 1.6 to 1.7 using sudo update-alternatives --config java I changed it back and everything compiled sucessfully.

edit retag flag offensive close merge delete

Comments

Thanks! I had the same issue and after installing 1.6 and changing alternatives this place compiled successfully. However, now I have another issue. Could you please suggest any solution?

[100%] Built target opencv_test_xfeatures2d In file included from /home/a/openCV/OpenCV/opencv_contrib/modules/ccalib/src/ccalib.cpp:47:0: /home/a/openCV/OpenCV/opencv_contrib/modules/ccalib/include/opencv2/ccalib.hpp:94:97: error: ‘SOLVEPNP_ITERATIVE’ was not declared in this scope OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess = false, int flags = SOLVEPNP_ITERATIVE); ^ make[2]: * [modules/ccalib/CMakeFiles/opencv_ccalib.dir/src/ccalib.cpp.o] Error 1

mope001 gravatar imagemope001 ( 2014-10-05 18:13:15 -0600 )edit