AutoBuffer Error - Compiling OpenCV 3.4.2 [closed]
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
You have to use the same version between OpenCV and OpenCV contrib.
I'm have the same problem as @rgs@Eduardo how do you know what version of the OpenCV contrib you have?
@Eduardo wrote : use same version of opencv and opencv_contrib because PR#11719 changed source code of autobuffer
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...