Android和交叉编译 [英] Android and cross-compiling
问题描述
我有一个Linux库需要的Android下进行编译。据我所知,应该用来建立此程序:/ home / user中/ Android的NDK /编译/ prebuilt / Linux的的x86 / ARM-EABI-4.4.0 /斌/ ARM-EABI-gcc和再编译NDK的构建。我想,对不对?通过实用大会应能正常工作?
I have a Linux library that needs to be compiled under Android. I understand that should be used to build this program: / home/user/android-ndk/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gcc and then compile a ndk-build . I think right? Assembly via the utility should work correctly?
推荐答案
您需要安装原生开发套件(NDK),并通过了关于构建过程中的NDK的文档阅读。 NDK的基本信息是 http://developer.android.com/sdk/ndk/index html的,你将需要安装Cygwin相应版本(如果你使用的是Windows)。
You need to install the Native Development Kit (NDK) and read through the documentation in the NDK about the build process. The NDK basic info is at http://developer.android.com/sdk/ndk/index.html, and you'll need to install an appropriate version of Cygwin (if you're using Windows).
它配备了一个prebuilt编译器,所以你不应该重建。
It comes with a prebuilt compiler, so you shouldn't have to rebuild that.
这篇关于Android和交叉编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!