error when build opencv3.1 with contrib

asked 2016-12-16 00:34:02 -0500

SuperMan gravatar image

updated 2016-12-16 00:37:02 -0500

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?

edit retag flag offensive close merge delete

Comments

berak gravatar imageberak ( 2016-12-16 01:00:45 -0500 )edit

I am also having this problem with 3.2 Did you find a solution? The link that berak posted doesn't apply. Thanks

jrbent gravatar imagejrbent ( 2017-04-15 10:15:17 -0500 )edit

@jrbent, why, exactly, do you think, it does not apply ?

berak gravatar imageberak ( 2017-04-15 10:18:37 -0500 )edit