Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error when build opencv3.1 with contrib

I build the opencv3.1 in linux, and this is my command: cmake -DCMAKE_INSTALL_PREFIX=$HOME/local -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules -DWITH_CUDA=OFF -D BUILD_PNG=ON -D BUILD_TIFF=ON -D BUILD_JASPER=ON . ../opencv -DBUILD_opencv_dnn=OFF -D BUILD_JPEG=ON

then I got a error when I do make:

[ 80%] Built target opencv_perf_xfeatures2d_pch_dephelp [ 81%] Built target pch_Generate_opencv_perf_xfeatures2d [ 81%] Built target opencv_xfeatures2d_pch_dephelp [ 81%] Built target pch_Generate_opencv_xfeatures2d [ 81%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o /data1/NLPRMNT/yanchaochao/sfm/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:646:37: fatal error: boostdesc_bgm.i: No such file or directory #include "boostdesc_bgm.i" ^ compilation terminated. make[2]: * [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o] Error 1 make[1]: [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all] Error 2 make: ** [all] Error 2

It seems that could not find "boostdesc_bgm.i", how to fix it?

error when build opencv3.1 with contrib

I build the opencv3.1 in linux, and this is my command: command:
cmake -DCMAKE_INSTALL_PREFIX=$HOME/local -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules
-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules
-DWITH_CUDA=OFF -D BUILD_PNG=ON -D BUILD_TIFF=ON -D BUILD_JASPER=ON . ../opencv ../opencv
-DBUILD_opencv_dnn=OFF -D BUILD_JPEG=ON

then I got a error when I do make:

[ 80%] Built target opencv_perf_xfeatures2d_pch_dephelp opencv_perf_xfeatures2d_pch_dephelp
[ 81%] Built target pch_Generate_opencv_perf_xfeatures2d pch_Generate_opencv_perf_xfeatures2d
[ 81%] Built target opencv_xfeatures2d_pch_dephelp opencv_xfeatures2d_pch_dephelp
[ 81%] Built target pch_Generate_opencv_xfeatures2d pch_Generate_opencv_xfeatures2d
[ 81%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o
/data1/NLPRMNT/yanchaochao/sfm/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:646:37: fatal error: boostdesc_bgm.i: No such file or directory directory
#include "boostdesc_bgm.i" "boostdesc_bgm.i"
^ compilation terminated. terminated.
make[2]: * [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o] Error 1 1
make[1]:
[modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all] Error 2 2
make: *
* [all] Error 2

It seems that could not find "boostdesc_bgm.i", how to fix it?