Compiling libDispatch (GCD) for Android

人走茶凉 提交于 2019-12-07 20:42:43

问题


I'm trying to compile libdispatch for linux on Android. However I could not find any instructions for Android in the project files.

I can see there are several StackOverflow questions about using libdispatch, but the information is rather thin.

Has anyone successfully compiled libdispatch for Android using NDK?


回答1:


I haven't personally tried compiling libdispatch for Android, but I have built many other libraries. It looks like building libdispatch should be quite easy, as there is already an Android.mk file in the repository. You should be able to build this library with the following command (split across lines for readability):

<ndk directory path>/ndk-build \ 
-C <path to libdispatch source directory> \
NDK_LIBS_OUT=<path to directory for built libraries> \
APP_BUILD_SCRIPT=Android.mk 


来源:https://stackoverflow.com/questions/36459329/compiling-libdispatch-gcd-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!