Firefly开源社区

标题: fireprime 交叉编译工具 [打印本页]

作者: 雨滴丶    时间: 2016-8-9 18:27
标题: fireprime 交叉编译工具
现在 prebuilts/gcc/linux-x86/arm/arm-eabi-4.6 这个单独的工具链接下载不了,直接下载的SDK 里面也没有这个工具了,有下过的兄弟 帮忙发我下,感激不尽
作者: halton    时间: 2016-9-23 13:33
搞定了吗?我也遇到这个问题
作者: 牛头    时间: 2016-9-23 14:15
http://developer.t-firefly.com/thread-10907-1-1.html
看看这个里面的编译工具适不适合。
作者: simonyuan    时间: 2017-4-19 17:03
本帖最后由 simonyuan 于 2017-4-19 17:04 编辑

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

作者: simonyuan    时间: 2017-4-19 17:14
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

作者: simonyuan    时间: 2017-4-19 17:26
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$




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1