如何配置构建开放源码库NDK? [英] how to configure for building open source library with NDK?
本文介绍了如何配置构建开放源码库NDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图编译与Android NDK的开源库在Windows与Cygwin的。
I am trying to compile an open source library with Android NDK in Windows with cygwin.
根据以下问题
我想我应该能够做到这一点,但我不能。如果我用
I think I should be able to do that but I can't. If I use
./configure --host=i686-android-linux
我
configure:3471: error: C compiler cannot create executables
See `config.log' for more details
我想配置不知道如何找到该主机的,不是吗?任何想法将AP preciated。
I guess configure would not know how to find that host, would it? Any idea will be appreciated.
推荐答案
也许你没有正确设置环境变量。
Maybe you do not set the environment variables correctly.
从$ NDK复制/文档/ STANDALONE-TOOLCHAIN.html:
Copied from $NDK/docs/STANDALONE-TOOLCHAIN.html:
export PATH=/tmp/my-android-toolchain/bin:$PATH
export CC=arm-linux-androideabi-gcc # or export CC=clang
export CXX=arm-linux-androideabi-g++ # or export CXX=clang++
这篇关于如何配置构建开放源码库NDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文