我正在尝试用

Android NDK独立编译器工具链构建一些东西,但是我收到了这个错误:

Updating bundled third-party dependencies...

bash -c 'mkdir -p output/{debug,release,test}/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'

cp output/libFColladaSD.a ../lib/libFColladaSD.a

cp output/libFColladaSR.a ../lib/libFColladaSR.a

Building SpiderMonkey...

SpiderMonkey build options: --disable-tests

loading cache ./config.cache

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

checking build system type... x86_64-unknown-linux-gnu

checking for mawk... mawk

checking for perl5... no

checking for perl... /usr/bin/perl

checking for gcc... gcc

checking whether the C compiler (gcc ) works... yes

checking whether the C compiler (gcc ) is a cross-compiler... no

checking whether we are using GNU C... yes

checking whether gcc accepts -g... yes

checking for c++... arm-linux-androideabi-g++

checking whether the C++ compiler (arm-linux-androideabi-g++ ) works... no

configure: error: installation or configuration problem: C++ compiler cannot create executables.

ERROR: SpiderMonkey build failed

我的ANDROID_NDK_ROOT设置如下:

afeder@ubuntu:~/android/0ad/build/workspaces$echo $ANDROID_NDK_ROOT

/home/afeder/android/android-ndk-r7-crystax-4

可能是什么原因或我如何调试它?谢谢.

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐