简体   繁体   中英

How do I compile glib using android NDK?

有几个带glib到android平台的端口的存储库,如何使用android NDK编译这些库?

我遇到了同样的问题,例如使用https://github.com/ieei/glib ,以下内容对我有用:

…/android-ndk-r8d/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk

In my case I add the next line to Android.mk

TARGET_FORMAT_STRING_CFLAGS := -Wformat -Wno-error

and after that I compile the code using:

<android-ndk-path>/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM