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 #2

Open ZaferAlemdaroglu opened 5 years ago

ZaferAlemdaroglu 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

Same problem i have i use ndk17c and opencv 3.4.4 sdk

How can i solve?

shehel commented 5 years ago

Must be the way you are importing features2d. Please check my source code again.