building OpenCV 3 with extra modules
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);
...........
^
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 ..
All lucky you, just tried out your problem, seems the bugs even get bigger. The introduced ccv module isn't building like it should. Will look into this and keep you up to date!