为Android编译libDispatch(GCD) [英] Compiling libDispatch (GCD) for Android

查看:219
本文介绍了为Android编译libDispatch(GCD)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android上为Linux编译 libdispatch .但是,我在项目文件中找不到有关Android的任何说明.

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

我可以看到有几个 StackOverflow

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

有人使用NDK成功为Android编译了 libdispatch 吗?

Has anyone successfully compiled libdispatch for Android using NDK?

推荐答案

我还没有亲自尝试为Android编译libdispatch,但是我建立了许多其他库.看起来构建libdispatch应该非常容易,因为已经有一个 Android.存储库中的mk 文件.您应该能够使用以下命令来构建该库(为了便于阅读,请分成几行):

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 

这篇关于为Android编译libDispatch(GCD)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆