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

APP_STL gnustl_static is no longer supported #101

Open
elix182 opened this issue Jan 27, 2020 · 2 comments
Open

APP_STL gnustl_static is no longer supported #101

elix182 opened this issue Jan 27, 2020 · 2 comments

Comments

@elix182
Copy link

elix182 commented Jan 27, 2020

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

@ReeseL
Copy link

ReeseL commented Jul 7, 2020

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

@ab503044120
Copy link

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,

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

3 participants