AutoBuffer Error - Compiling OpenCV 3.4.2 [closed]

asked 2018-07-24 13:18:43 -0600

rgs gravatar image

Does anyone know why I get the below errors when compiling opencv with the contrib modules? I have the cmake flag OPENCV_ENABLE_NONFREE set. Using VS2015, CMake 3.12

opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(346): error C2039: 'data': is not a member of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(345): note: see declaration of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(759): error C2039: 'data': is not a member of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(345): note: see declaration of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\surf.cpp(681): error C2039: 'data': is not a member of 'cv::AutoBuffer<uchar,1032>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\surf.cpp(593): note: see declaration of 'cv::AutoBuffer<uchar,1032>'

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LBerger
close date 2018-07-25 09:53:19.216031

Comments

2

You have to use the same version between OpenCV and OpenCV contrib.

Eduardo gravatar imageEduardo ( 2018-07-24 14:07:36 -0600 )edit

I'm have the same problem as @rgs@Eduardo how do you know what version of the OpenCV contrib you have?

kc18 gravatar imagekc18 ( 2018-07-24 14:23:40 -0600 )edit

@Eduardo wrote : use same version of opencv and opencv_contrib because PR#11719 changed source code of autobuffer

LBerger gravatar imageLBerger ( 2018-07-24 15:27:04 -0600 )edit
1

Thanks - it now builds. It was my unfamiliarity with Github to located the matching versions OpenCV contrib. to help others here's where you can find all the releases of OpenCV contrib https://github.com/opencv/opencv_cont...

rgs gravatar imagergs ( 2018-07-25 08:01:18 -0600 )edit