shehel / AR_Android

Android application for image matching using OpenCV's ORB patch description algorithm with Android NDK.
9 stars 3 forks source link

undefined reference to `cv::DescriptorMatcher::knnMatch #1

Closed IvanPletinskiy closed 5 years ago

IvanPletinskiy commented 5 years ago

Hi! Ive downloaded your project and while compiling Ive run into such a problem: undefined reference to `cv::DescriptorMatcher::knnMatch in native_lib.cpp. Can you help me, please? That is my CMakeLists.txt https://gist.github.com/Ivanhanden/0e9db8ca7da41a695cef713021946d73

List of includes in native_lib.cpp

include

include

include <opencv2/opencv.hpp>

include

include <android/log.h>

include <opencv2/core/core.hpp>

include <opencv2/imgproc/imgproc.hpp>

include <opencv2/features2d/features2d.hpp>

include

What version of NDK are you using? If you need extra information, I would be glad to provide. Thanks.