How to use Surf on OpenCV3.0.0
Download the "opencv_contrib" on https://github.com/itseez/opencv_contrib
cd /opencv-3.0.0
cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib-master/modules /opencv-3.0.0
make -j5
But when I 'make", there is a error. I don't know how to do.
[ 65%] Built target opencv_face
[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_test_bioinspired.dir/test/test_retina_ocl.cpp.o
[ 65%] Building CXX object modules/bgsegm/CMakeFiles/opencv_test_bgsegm.dir/test/test_main.cpp.o
make[2]: * [modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/grayworld_white_balance.cpp.o] Error 1
make[1]: * [modules/xphoto/CMakeFiles/opencv_xphoto.dir/all] Error 2
make[1]: * Waiting for unfinished jobs....
[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_test_bioinspired.dir/test/test_main.cpp.o
[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_perf_bioinspired.dir/perf/opencl/perf_retina.cpp.o
[ 65%] Linking CXX executable ../../bin/opencv_test_bioinspired
[ 65%] Linking CXX executable ../../bin/opencv_perf_bioinspired
[ 65%] Linking CXX executable ../../bin/opencv_test_bgsegm
[ 65%] Built target opencv_test_bioinspired
[ 65%] Built target opencv_perf_bioinspired
[ 65%] Built target opencv_test_bgsegm
make: * [all] Error 2
hmm, are you sure, you did not lose something in the output ? where's the actual error ?
I don't lose anythings, I think so.
The command has problem?
I use the command 'cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib-master/modules /opencv-3.0.0/build'. And 'make' successfully, then 'sudo make install'.
But ‘#include <opencv2 xfeatures2d.hpp="">’, there isn't the file in /usr/local/include/opencv2