Hello everyone! Could you please help me solve this problem? While running make I have this issue:
[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); ^ /home/a/openCV/OpenCV/opencv_contrib/modules/ccalib/include/opencv2/ccalib.hpp:96:97: error: ‘SOLVEPNP_ITERATIVE’ was not declared in this scope OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess = false, int flags = SOLVEPNP_ITERATIVE); ^ /home/a/openCV/OpenCV/opencv_contrib/modules/ccalib/include/opencv2/ccalib.hpp:104:108: error: ‘SOLVEPNP_ITERATIVE’ was not declared in this scope float reprojectionError = 8.0, int minInliersCount = 100, OutputArray inliers = noArray(), int flags = SOLVEPNP_ITERATIVE); ^ 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:107:108: error: ‘SOLVEPNP_ITERATIVE’ was not declared in this scope float reprojectionError = 8.0, int minInliersCount = 100, OutputArray inliers = noArray(), int flags = SOLVEPNP_ITERATIVE); ^ make[2]: * [modules/ccalib/CMakeFiles/opencv_ccalib.dir/src/ccalib.cpp.o] Error 1 make[1]: [modules/ccalib/CMakeFiles/opencv_ccalib.dir/all] Error 2 make: ** [all] Error 2
I use following cmake:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUBLAS=ON -D WITH_CUFFT=ON -D WITH_EIGEN=OFF -D WITH_OPENGL=ON -D WITH_QT=ON -D WITH_TBB=ON -D BUILD_DOCS=ON -D BUILD_EXAMPLES=ON -D BUILD_TESTS=ON -D CUDA_ARCH_BIN="3.0" -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..