-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error with std namespace functions #32 REOPEN #94
Comments
I am facing the same error as well. Did you manage to find any workaround for this? I am using latest version of NDK |
I met the same error with another library, and spent DAYS before understanding what happens. It comes from the version of the NDK. Since NDK r18 or something, cross-compiler and toolchain is using CLANG. Before it was GCC and this kind of link error did not show up. Try to downgrade your NDK version to r14 or 15 and run again the compilation. |
Thanks for your reply. Worked with r-15c using gnustl_static, didn't work with c++_static or c++_shared. |
thank you so much for your information, it worked with [Android NDK, Revision 15c (July 2017)] ➜ dlib-android git:(master) python build.py |
I also facing the same issue, Initially, I tried with the latest NDK r21e, after going through this thread, changed NDK version to r15c, Still facing the same issue. Any inputs? Versions:DLib = 19.1 Applicaiton.mk:NDK_TOOLCHAIN_VERSION := clang Tried options:toolchain version: clang and clang++ |
Hi,
I got the same error #32 of undefined references, with the current git environment.
Undefined references when building shared library libandroid_dlib.so
[x86_64] SharedLibrary : libandroid_dlib.so
jni/jni_detections/detector.h:42: error: undefined reference to 'cv::HOGDescriptor::detectMultiScale(c
This is how Application.mk looks
NDK_TOOLCHAIN_VERSION := clang
APP_ABI := x86_64 arm64-v8a
APP_CPPFLAGS := -std=c++11 -frtti -fexceptions
APP_PLATFORM := android-28
APP_STL := c++_static
#APP_CFLAGS+=-DDLIB_NO_GUI_SUPPORT=on
#APP_CFLAGS+=-DDLIB_PNG_SUPPORT=off
APP_CFLAGS+=-DDLIB_JPEG_SUPPORT=on
APP_CFLAGS+=-DDLIB_JPEG_STATIC=on
Any ideas ? Thanks !
The text was updated successfully, but these errors were encountered: