Skip to content
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

Open
vincentbecke opened this issue Jan 31, 2019 · 5 comments
Open

Build error with std namespace functions #32 REOPEN #94

vincentbecke opened this issue Jan 31, 2019 · 5 comments

Comments

@vincentbecke
Copy link

vincentbecke commented Jan 31, 2019

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 !

@yeminnhtut
Copy link

yeminnhtut commented Feb 14, 2019

I am facing the same error as well. Did you manage to find any workaround for this?

I am using latest version of NDK
Dlib - 19.1

@vincentbecke
Copy link
Author

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.
Please post the results then, I would be curious to know

@yeminnhtut
Copy link

yeminnhtut commented Feb 14, 2019

Thanks for your reply. Worked with r-15c using gnustl_static, didn't work with c++_static or c++_shared.

@haihuynhrdf
Copy link

haihuynhrdf commented May 3, 2019

thank you so much for your information, it worked with [Android NDK, Revision 15c (July 2017)]
using gnustl_static.
I use Python 2.7.16, macOS Mojave version 10.14.4
Here is what I got:

➜ dlib-android git:(master) python build.py
We will use ABI:armeabi-v7a binaries to test
ndk build arguments:['ndk-build', '-j4', 'NDK_LOG=1', 'NDK_DEBUG=0', 'V=0']
HOST_OS=darwin
HOST_ARCH=x86_64
HOST_TAG=darwin-x86_64
GNUMAKE=/Users/mac/android/android-ndk-r15c/build/../prebuilt/darwin-x86_64/bin/make (NDK prebuilt)
Android NDK: NDK installation path auto-detected: '/Users/mac/android/android-ndk-r15c'
Android NDK: GNU Make version 3.81 detected
Android NDK: Host OS was auto-detected: darwin
Android NDK: Host operating system detected: darwin
Android NDK: Host CPU was auto-detected: x86
Android NDK: HOST_TAG set to darwin-x86
Android NDK: Host tools prebuilt directory: /Users/mac/android/android-ndk-r15c/prebuilt/darwin-x86_64/bin
Android NDK: Host 'echo' tool: echo
Android NDK: Host 'echo -n' tool: printf %s
Android NDK: Host 'cmp' tool: cmp
Android NDK: Found platform root directory: /Users/mac/android/android-ndk-r15c/platforms
Android NDK: Found supported platforms: android-12 android-13 android-14 android-15 android-16 android-17 android-18 android-19 android-21 android-22 android-23 android-24 android-26 android-9
Android NDK: PLATFORM android-12 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-12/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-12/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-12/arch-x86
Android NDK: PLATFORM android-13 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-13/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-13/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-13/arch-x86
Android NDK: PLATFORM android-14 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-14/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-14/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-14/arch-x86
Android NDK: PLATFORM android-15 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-15/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-15/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-15/arch-x86
Android NDK: PLATFORM android-16 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-16/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-16/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-16/arch-x86
Android NDK: PLATFORM android-17 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-17/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-17/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-17/arch-x86
Android NDK: PLATFORM android-18 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-18/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-18/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-18/arch-x86
Android NDK: PLATFORM android-19 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-19/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-19/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-19/arch-x86
Android NDK: PLATFORM android-21 supports: arm arm64 mips mips64 x86 x86_64
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-21/arch-arm
Android NDK: ABI arm64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-21/arch-arm64
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-21/arch-mips
Android NDK: ABI mips64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-21/arch-mips64
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-21/arch-x86
Android NDK: ABI x86_64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-21/arch-x86_64
Android NDK: PLATFORM android-22 supports: arm arm64 mips mips64 x86 x86_64
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-22/arch-arm
Android NDK: ABI arm64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-22/arch-arm64
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-22/arch-mips
Android NDK: ABI mips64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-22/arch-mips64
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-22/arch-x86
Android NDK: ABI x86_64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-22/arch-x86_64
Android NDK: PLATFORM android-23 supports: arm arm64 mips mips64 x86 x86_64
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-23/arch-arm
Android NDK: ABI arm64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-23/arch-arm64
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-23/arch-mips
Android NDK: ABI mips64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-23/arch-mips64
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-23/arch-x86
Android NDK: ABI x86_64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-23/arch-x86_64
Android NDK: PLATFORM android-24 supports: arm arm64 mips mips64 x86 x86_64
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-24/arch-arm
Android NDK: ABI arm64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-24/arch-arm64
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-24/arch-mips
Android NDK: ABI mips64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-24/arch-mips64
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-24/arch-x86
Android NDK: ABI x86_64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-24/arch-x86_64
Android NDK: PLATFORM android-26 supports: arm arm64 mips mips64 x86 x86_64
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-26/arch-arm
Android NDK: ABI arm64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-26/arch-arm64
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-26/arch-mips
Android NDK: ABI mips64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-26/arch-mips64
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-26/arch-x86
Android NDK: ABI x86_64 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-26/arch-x86_64
Android NDK: PLATFORM android-9 supports: arm mips x86
Android NDK: ABI arm sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-9/arch-arm
Android NDK: ABI mips sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-9/arch-mips
Android NDK: ABI x86 sysroot is: /Users/mac/android/android-ndk-r15c/platforms/android-9/arch-x86
Android NDK: Found stable platform levels: 12 13 14 15 16 17 18 19 21 22 23 24 26 9
Android NDK: Found max platform level: 26
Android NDK: This NDK supports the following target architectures and ABIS:
Android NDK: arm: armeabi armeabi-v7a
Android NDK: arm64: arm64-v8a
Android NDK: mips: mips
Android NDK: mips64: mips64
Android NDK: x86: x86
Android NDK: x86_64: x86_64
Android NDK: This NDK supports the following toolchains and target ABIs:
Android NDK: aarch64-linux-android-4.9: arm64-v8a
Android NDK: aarch64-linux-android-clang: arm64-v8a
Android NDK: arm-linux-androideabi-4.9: armeabi armeabi-v7a
Android NDK: arm-linux-androideabi-clang: armeabi armeabi-v7a
Android NDK: mips64el-linux-android-4.9: mips64
Android NDK: mips64el-linux-android-clang: mips64
Android NDK: mipsel-linux-android-4.9: mips
Android NDK: mipsel-linux-android-clang: mips
Android NDK: x86-4.9: x86
Android NDK: x86-clang: x86
Android NDK: x86_64-4.9: x86_64
Android NDK: x86_64-clang: x86_64
Android NDK: Found project path: .
Android NDK: Ouput path for intermediate files: ./obj
Android NDK: Ouput path for generated library files: ./libs
Android NDK: Parsing ./jni/Application.mk
Android NDK: android-8 is unsupported. Using minimum supported version android-14.
Android NDK: APP_PIE is
Android NDK: Defaulted to APP_BUILD_SCRIPT=./jni/Android.mk
Android NDK: Application 'local' forced not debuggable through NDK_DEBUG
Android NDK: Selecting release optimization mode (app is not debuggable)
Android NDK: Adding import directory: /Users/mac/android/android-ndk-r15c/sources
Android NDK: Building application 'local' for ABI 'armeabi-v7a'
Android NDK: Using target toolchain 'arm-linux-androideabi-clang' for 'armeabi-v7a' ABI (through NDK_TOOLCHAIN_VERSION)
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK: Probing /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK: Found in /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++
TOP Level Path: /Users/mac/learning/android/dlib-android
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:5: "Build miniglog.so/miniglog.a"
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:8: /Users/mac/learning/android/dlib-android/third_party/miniglog
jni/jni_common/Android.mk:10: "Build jni_common"
jni/jni_common/Android.mk:16: jni/jni_common
"Won't build test's executable file"
Android NDK: Module 'android_dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'android_dlib'
Android NDK: Module 'dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'dlib'
Android NDK: Module 'jni_common' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'jni_common'
Android NDK: Module 'miniglog' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'miniglog'
Android NDK: WARNING:jni/jni_common/Android.mk:jni_common: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: [armeabi-v7a] Modules to build: android_dlib
Android NDK: Building application 'local' for ABI 'arm64-v8a'
Android NDK: Enabling -fPIE for TARGET_PLATFORM android-21
Android NDK: Using target toolchain 'aarch64-linux-android-clang' for 'arm64-v8a' ABI (through NDK_TOOLCHAIN_VERSION)
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK: Probing /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK: Found in /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++
TOP Level Path: /Users/mac/learning/android/dlib-android
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:5: "Build miniglog.so/miniglog.a"
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:8: /Users/mac/learning/android/dlib-android/third_party/miniglog
jni/jni_common/Android.mk:10: "Build jni_common"
jni/jni_common/Android.mk:16: jni/jni_common
"Won't build test's executable file"
Android NDK: Module 'android_dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'android_dlib'
Android NDK: Module 'dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'dlib'
Android NDK: Module 'jni_common' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'jni_common'
Android NDK: Module 'miniglog' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'miniglog'
Android NDK: WARNING:jni/jni_common/Android.mk:jni_common: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: [arm64-v8a] Modules to build: android_dlib
Android NDK: Building application 'local' for ABI 'x86'
Android NDK: Using target toolchain 'x86-clang' for 'x86' ABI (through NDK_TOOLCHAIN_VERSION)
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK: Probing /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK: Found in /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++
TOP Level Path: /Users/mac/learning/android/dlib-android
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:5: "Build miniglog.so/miniglog.a"
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:8: /Users/mac/learning/android/dlib-android/third_party/miniglog
jni/jni_common/Android.mk:10: "Build jni_common"
jni/jni_common/Android.mk:16: jni/jni_common
"Won't build test's executable file"
Android NDK: Module 'android_dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'android_dlib'
Android NDK: Module 'dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'dlib'
Android NDK: Module 'jni_common' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'jni_common'
Android NDK: Module 'miniglog' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'miniglog'
Android NDK: WARNING:jni/jni_common/Android.mk:jni_common: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: [x86] Modules to build: android_dlib
Android NDK: Building application 'local' for ABI 'x86_64'
Android NDK: Enabling -fPIE for TARGET_PLATFORM android-21
Android NDK: Using target toolchain 'x86_64-clang' for 'x86_64' ABI (through NDK_TOOLCHAIN_VERSION)
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK: Probing /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK: Found in /Users/mac/android/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++
TOP Level Path: /Users/mac/learning/android/dlib-android
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:5: "Build miniglog.so/miniglog.a"
/Users/mac/learning/android/dlib-android/third_party/miniglog/Android.mk:8: /Users/mac/learning/android/dlib-android/third_party/miniglog
jni/jni_common/Android.mk:10: "Build jni_common"
jni/jni_common/Android.mk:16: jni/jni_common
"Won't build test's executable file"
Android NDK: Module 'android_dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'android_dlib'
Android NDK: Module 'dlib' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'dlib'
Android NDK: Module 'jni_common' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'jni_common'
Android NDK: Module 'miniglog' has C++ sources
Android NDK: Add dependency 'gnustl_static' to module 'miniglog'
Android NDK: WARNING:jni/jni_common/Android.mk:jni_common: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: [x86_64] Modules to build: android_dlib
[armeabi-v7a] Compile++ thumb: dlib <= threads_kernel_1.cpp
[armeabi-v7a] Compile++ thumb: dlib <= threads_kernel_2.cpp
[arm64-v8a] Compile++ : dlib <= threads_kernel_1.cpp
[arm64-v8a] Compile++ : dlib <= threads_kernel_2.cpp
[x86] Compile++ : dlib <= threads_kernel_1.cpp
[x86] Compile++ : dlib <= threads_kernel_2.cpp
[x86_64] Compile++ : dlib <= threads_kernel_1.cpp
[x86_64] Compile++ : dlib <= threads_kernel_2.cpp
[armeabi-v7a] Compile++ arm : android_dlib <= jni_imageutils.cpp
[armeabi-v7a] Compile++ arm : android_dlib <= jni_pedestrian_det.cpp
[armeabi-v7a] Compile++ arm : android_dlib <= jni_face_det.cpp
[armeabi-v7a] Compile++ thumb: dlib <= threads_kernel_shared.cpp
[armeabi-v7a] Compile++ thumb: dlib <= entropy_decoder_kernel_2.cpp
[armeabi-v7a] Compile++ thumb: dlib <= base64_kernel_1.cpp
[armeabi-v7a] Compile++ thumb: jni_common <= jni_bitmap2mat.cpp
[armeabi-v7a] Compile++ thumb: jni_common <= jni_fileutils.cpp
[armeabi-v7a] Compile++ thumb: jni_common <= jni_utils.cpp
[armeabi-v7a] Compile++ thumb: jni_common <= rgb2yuv.cpp
[armeabi-v7a] Compile++ thumb: jni_common <= yuv2rgb.cpp
[armeabi-v7a] Compile++ thumb: miniglog <= logging.cc
[arm64-v8a] Compile++ : android_dlib <= jni_imageutils.cpp
[arm64-v8a] Compile++ : android_dlib <= jni_pedestrian_det.cpp
[arm64-v8a] Compile++ : android_dlib <= jni_face_det.cpp
[arm64-v8a] Compile++ : dlib <= threads_kernel_shared.cpp
[arm64-v8a] Compile++ : dlib <= entropy_decoder_kernel_2.cpp
[arm64-v8a] Compile++ : dlib <= base64_kernel_1.cpp
[arm64-v8a] Compile++ : jni_common <= jni_bitmap2mat.cpp
[arm64-v8a] Compile++ : jni_common <= jni_fileutils.cpp
[arm64-v8a] Compile++ : jni_common <= jni_utils.cpp
[arm64-v8a] Compile++ : jni_common <= rgb2yuv.cpp
[arm64-v8a] Compile++ : jni_common <= yuv2rgb.cpp
[arm64-v8a] Compile++ : miniglog <= logging.cc
[x86] Compile++ : android_dlib <= jni_imageutils.cpp
[x86] Compile++ : android_dlib <= jni_pedestrian_det.cpp
[x86] Compile++ : android_dlib <= jni_face_det.cpp
[x86] Compile++ : dlib <= threads_kernel_shared.cpp
[x86] Compile++ : dlib <= entropy_decoder_kernel_2.cpp
[x86] Compile++ : dlib <= base64_kernel_1.cpp
[x86] Compile++ : jni_common <= jni_bitmap2mat.cpp
[x86] Compile++ : jni_common <= jni_fileutils.cpp
[x86] Compile++ : jni_common <= jni_utils.cpp
[x86] Compile++ : jni_common <= rgb2yuv.cpp
[x86] Compile++ : jni_common <= yuv2rgb.cpp
[x86] Compile++ : miniglog <= logging.cc
[x86_64] Compile++ : android_dlib <= jni_imageutils.cpp
[x86_64] Compile++ : android_dlib <= jni_pedestrian_det.cpp
[x86_64] Compile++ : android_dlib <= jni_face_det.cpp
[x86_64] Compile++ : dlib <= threads_kernel_shared.cpp
[x86_64] Compile++ : dlib <= entropy_decoder_kernel_2.cpp
[x86_64] Compile++ : dlib <= base64_kernel_1.cpp
[x86_64] Compile++ : jni_common <= jni_bitmap2mat.cpp
[x86_64] Compile++ : jni_common <= jni_fileutils.cpp
[x86_64] Compile++ : jni_common <= jni_utils.cpp
[x86_64] Compile++ : jni_common <= rgb2yuv.cpp
[x86_64] Compile++ : jni_common <= yuv2rgb.cpp
[x86_64] Compile++ : miniglog <= logging.cc
[armeabi-v7a] StaticLibrary : libdlib.a
[armeabi-v7a] StaticLibrary : libjni_common.a
[armeabi-v7a] StaticLibrary : libminiglog.a
[arm64-v8a] StaticLibrary : libdlib.a
[arm64-v8a] StaticLibrary : libjni_common.a
[arm64-v8a] StaticLibrary : libminiglog.a
[x86] StaticLibrary : libdlib.a
[x86] StaticLibrary : libjni_common.a
[x86] StaticLibrary : libminiglog.a
[x86_64] StaticLibrary : libdlib.a
[x86_64] StaticLibrary : libjni_common.a
[armeabi-v7a] SharedLibrary : libandroid_dlib.so
[arm64-v8a] SharedLibrary : libandroid_dlib.so
[x86] SharedLibrary : libandroid_dlib.so
[x86_64] StaticLibrary : libminiglog.a
[armeabi-v7a] Install : libandroid_dlib.so => libs/armeabi-v7a/libandroid_dlib.so
[x86] Install : libandroid_dlib.so => libs/x86/libandroid_dlib.so
[arm64-v8a] Install : libandroid_dlib.so => libs/arm64-v8a/libandroid_dlib.so
[x86_64] SharedLibrary : libandroid_dlib.so
[x86_64] Install : libandroid_dlib.so => libs/x86_64/libandroid_dlib.so
Build Pass

@chanduthedev
Copy link

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
OSX = Big Sur 11.2.3
NDK = r21e and r15c

Applicaiton.mk:

NDK_TOOLCHAIN_VERSION := clang
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
APP_CPPFLAGS := -std=c++11 -frtti -fexceptions
APP_PLATFORM := android-8
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

Tried options:

toolchain version: clang and clang++
android platform: android-8 and android-21
APP_STL := c++_static and gnustl_static

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants