danzuiji 发表于 2015-4-22 09:14:27

交叉工具链编译应用程序

我现在编译内核用的工具链信息如下:
Using built-in specs.
COLLECT_GCC=/complie/android/firefly_git/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc
COLLECT_LTO_WRAPPER=/complie/android/firefly_git/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/../libexec/gcc/arm-eabi/4.6.x-google/lto-wrapper
Target: arm-eabi
Configured with: /tmp/android-15472/src/build/../gcc/gcc-4.6/configure --prefix=/usr/local --target=arm-eabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/android-15472/obj/temp-install --with-mpfr=/tmp/android-15472/obj/temp-install --with-mpc=/tmp/android-15472/obj/temp-install --without-ppl --without-cloog --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --with-abi=aapcs --with-gcc-version=4.6 --with-binutils-version=2.21 --with-gmp-version=4.2.4 --with-mpfr-version=2.4.1 --with-gdb-version=7.3.x --with-arch=armv5te --with-sysroot=/tmp/android-15472/install/sysroot --with-prefix=/tmp/android-15472/install --with-gold-version=2.21 --enable-gold --disable-gold --disable-multilib --program-transform-name='s&^&arm-eabi-&'
Thread model: single
gcc version 4.6.x-google 20120106 (prerelease) (GCC)

编译应用时提示错误信息如下:
fb.c:1:18: fatal error: stdio.h: No such file or directory
compilation terminated.

请问编译应用的工具链是不是要更换?

lr6410 发表于 2015-5-11 14:13:36

是不是需要装32位兼容包,试试

五星出东方 发表于 2015-7-9 10:18:39

同问下,LZ的问题解决没~~~

danzuiji 发表于 2015-7-13 14:09:58

五星出东方 发表于 2015-7-9 10:18
同问下,LZ的问题解决没~~~

换个工具链

libre730 发表于 2015-8-28 12:26:39

说详细点可以不,我的出问题了,不能用,用的arm linux gnueabihf
页: [1]
查看完整版本: 交叉工具链编译应用程序