我想用gnu libstdc ++编译我的NDK代码,任何线索如何做到这一点?
You should add a line to Application.mk
APP_STL := gnustl_static
if you want to link it statically, and
APP_STL := gnustl_shared
if you want to use it as a shared library.
Here is the example of typical Application.mk
(it should be placed into the same folder where your Android.mk
is located):
APP_OPTIM := release
APP_PLATFORM := android-7
APP_STL := gnustl_static
APP_CPPFLAGS += -frtti
APP_CPPFLAGS += -fexceptions
APP_CPPFLAGS += -DANDROID
APP_ABI := armeabi-v7a
More information on Application.mk
can be found in your NDK docs: docs/APPLICATION-MK.html
Add the following line to your Application.mk:
APP_STL := gnustl_static
(or gnustl_shared
if you don't want to link statically against it).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.