Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error from STL library while compiling for Android with ANDROID_STL=c++_static(shared)

Hi guys, How to fix bellow error.

When I compiling APP_STD with c++_static. Bellow error has occurred.

error: undefined reference to 'cv::DescriptorMatcher::match(cv::_InputArray const&, cv::_InputArray const&, std::__ndk1::vector<cv::DMatch, std::__ndk1::allocator<cv::DMatch> >&, cv::_InputArray const&) const'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Above Error when I called the method.

Ptr<FlannBasedMatcher> matcher = FlannBasedMatcher::create();
vector< DMatch > matches;
 matcher->match(objectDescriptor, sceneDescriptor, matches);

If I compiling with gnustl_static, then some methods of the C++ have not solved: copy_if, accumulate, minmax_element,..etc,...

Error from STL library while compiling for Android with ANDROID_STL=c++_static(shared)

Hi guys, How to fix bellow error.

When I compiling APP_STD with c++_static. Bellow error has occurred.

error: undefined reference to 'cv::DescriptorMatcher::match(cv::_InputArray const&, cv::_InputArray const&, std::__ndk1::vector<cv::DMatch, std::__ndk1::allocator<cv::DMatch> >&, cv::_InputArray const&) const'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Above Error when I called the method.

Ptr<FlannBasedMatcher> matcher = FlannBasedMatcher::create();
vector< DMatch > matches;
 matcher->match(objectDescriptor, sceneDescriptor, matches);

If I compiling with gnustl_static, then some methods of the C++ have not solved: copy_if, accumulate, minmax_element,..etc,...

Error from STL library while compiling for Android with ANDROID_STL=c++_static(shared)APP_STD=c++_static(shared)

Hi guys, How to fix bellow error.

When I compiling APP_STD with c++_static. Bellow error has occurred.

Application.mk
APP_STL := c++_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a armeabi arm64-v8a
APP_PLATFORM := android-18

error: undefined reference to 'cv::DescriptorMatcher::match(cv::_InputArray const&, cv::_InputArray const&, std::__ndk1::vector<cv::DMatch, std::__ndk1::allocator<cv::DMatch> >&, cv::_InputArray const&) const'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Above Error when I called the method.

Ptr<FlannBasedMatcher> matcher = FlannBasedMatcher::create();
vector< DMatch > matches;
 matcher->match(objectDescriptor, sceneDescriptor, matches);

If I compiling with gnustl_static, then some methods of the C++ have not solved: copy_if, accumulate, minmax_element,..etc,...

Error from STL library while compiling for Android with APP_STD=c++_static(shared)

Hi guys, How to fix bellow error.

When I compiling APP_STD with c++_static. Bellow error has occurred.

Application.mk
APP_STL := c++_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a armeabi arm64-v8a
APP_PLATFORM := android-18

error: undefined reference to 'cv::DescriptorMatcher::match(cv::_InputArray const&, cv::_InputArray const&, std::__ndk1::vector<cv::DMatch, std::__ndk1::allocator<cv::DMatch> >&, cv::_InputArray const&) const'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Above Error when I called the method.

Ptr<FlannBasedMatcher> matcher = FlannBasedMatcher::create();
vector< DMatch > matches;
 matcher->match(objectDescriptor, sceneDescriptor, matches);

If I compiling with gnustl_static, then some methods of the C++ have not solved: copy_if, accumulate, minmax_element,..etc,...

I have using NDK 17 or 16 same error has occurred.