fireprime 交叉编译工具

现在 prebuilts/gcc/linux-x86/arm/arm-eabi-4.6 这个单独的工具链接下载不了,直接下载的SDK 里面也没有这个工具了,有下过的兄弟 帮忙发我下,感激不尽

搞定了吗?我也遇到这个问题

http://developer.t-firefly.com/thread-10907-1-1.html
看看这个里面的编译工具适不适合。

本帖最后由 simonyuan 于 2017-4-19 17:04 编辑

交叉编译器的版本从4.6到4.8都试过了,连简单的hellowworld 程序都编译不了,主要是缺头文件,stdio.h, string.h…找到一个链接说是片上Ubuntu可以交叉编译, 打开片上Ubuntu, 连个gcc可执行文件都满盘找不到。我晕

AAAA@AAAA-Linux:~/AM335Linux/helloword$ cat hello.c
//#include <stdio.h>

int main(void)
{
printf(“hello world”);
return 0;
}

AAAA@AAAA-Linux:~/AM335Linux/helloword$ arm-eabi-gcc -o helloworld hello.c
hello.c: In function ‘main’:
hello.c:5:5: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
/opt/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/../../../../arm-eabi/bin/ld: cannot find crt0.o: No such file or directory
/opt/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/../../../../arm-eabi/bin/ld: cannot find -lc
collect2: ld returned 1 exit status

AAAA@AAAA-Linux:~/AM335Linux/helloword$ cat hello.c
//#include <stdio.h>

int main(void)
{
printf(“hello world”);
return 0;
}

AAAA@AAAA-Linux:~/AM335Linux/helloword$ arm-eabi-gcc -o helloworld hello.c
hello.c: In function ‘main’:
hello.c:5:5: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
/home/AAAA/3128/RK3128/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/../../../../arm-eabi/bin/ld: cannot find crt0.o: No such file or directory
/home/AAAA/3128/RK3128/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/../../../../arm-eabi/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
AAAA@AAAA-Linux:~/AM335Linux/helloword$