1 | initial version |
I finally figured out what was the problem. It turned out to be the order in which the libraries were linked. When I moved libopencv_nonfree.a to the front of the list of libraries it suddenly worked.
No need for the inclusion of <opencv2 features2d="" features2d.hpp=""> and <opencv2 nonfree="" nonfree.hpp="">. The former is already included through cv.hpp, the purpose of the latter is purely to include <opencv2 features2d="" features2d.hpp=""> and declare cv::initModule_nonfree(). But there's no need for any call to cv::initModule_nonfree(), maybe that's an obsolete requirement?
2 | No.2 Revision |
I finally figured out what was the problem. It turned out to be the order in which the libraries were linked. When I moved libopencv_nonfree.a to the front of the list of libraries it suddenly worked.
No need for the inclusion of <opencv2 features2d="" features2d.hpp=""> "opencv2/features2d/features2d.hpp" and <opencv2 nonfree="" nonfree.hpp="">. "opencv2/nonfree/nonfree.hpp". The former is already included through cv.hpp, the purpose of the latter is purely to include <opencv2 features2d="" features2d.hpp=""> "opencv2/features2d/features2d.hpp" and declare cv::initModule_nonfree(). But there's no need for any call to cv::initModule_nonfree(), maybe that's an obsolete requirement?