Reputation: 1401
I use Centos7 and gcc is 4.8.5.I can not Comple extra modules from opencv_contrib like xfeatures2d for opencv3.2.0. I used
-D OPENCV_EXTRA_MODULES_PATH=../modules/opencv_contrib-3.x.x/modules Flag But I just get some errors like
opencv_contrib-3.0.0/modules/xfeatures2d/src/sift.cpp:340:5: error: ‘hal’ has not been declared
Would you please help me how to install Opencv3.2 with xfeatures2d.
Upvotes: 0
Views: 1754
Reputation: 1401
I found the problem . You can Download opencv3.2.0 and opencv_contrib3.2.0 Then use -DOPENCV_EXTRA_MODULES_PATH=/modules Flag to add opencv_contrib to the opencv. The problem is the some files in repositories have incorrect md5.you should download it manually from https://github.com/opencv/opencv_3rdparty/commit/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d and Copy it to itself folder. then Compile it again.
Upvotes: 1