dlib-android icon indicating copy to clipboard operation
dlib-android copied to clipboard

APP_STL gnustl_static is no longer supported

Open elix182 opened this issue 6 years ago • 2 comments

When I try to use the build.py script or the ndk-build -j 2 command I get the error:

Library/Android/sdk/ndk-bundle/build/core/add-application.mk:178: *** Android NDK: APP_STL gnustl_static is no longer supported. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information. . Stop.

I tried changing the Application.mk file and replacing the gnustl_static with c++_static and I get a compilation error.

I cloned the repo recursively as the README said and the envsetup script exectuted successfully.

Is there something I'm not doing? I'm using NDK (Side by side) 21.0.6113669 on macOS 10.15.2

elix182 avatar Jan 27 '20 18:01 elix182

android-ndk-r19c my Application.mk set APP_STL := c++_static APP_CPPFLAGS := -frtti -fexceptions -fpermissive -std=c++11 -w -Wno-narrowing APP_ABI := armeabi-v7a APP_PLATFORM := android-21 NDK_TOOLCHAIN_VERSION := clang #APP_CFLAGS+=-DDLIB_NO_GUI_SUPPORT=on #APP_CFLAGS+=-DDLIB_PNG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_STATIC=off

ReeseL avatar Jul 07 '20 06:07 ReeseL

android-ndk-r19c my Application.mk set APP_STL := c++_static APP_CPPFLAGS := -frtti -fexceptions -fpermissive -std=c++11 -w -Wno-narrowing APP_ABI := armeabi-v7a APP_PLATFORM := android-21 NDK_TOOLCHAIN_VERSION := clang #APP_CFLAGS+=-DDLIB_NO_GUI_SUPPORT=on #APP_CFLAGS+=-DDLIB_PNG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_STATIC=off

did you build success . i can`t build success .because opencv 3.1.0 depend on gnustl,

ab503044120 avatar Jul 13 '21 13:07 ab503044120