Firefly开源社区

打印 上一主题 下一主题

fireprime 交叉编译工具

32

积分

0

威望

0

贡献

游客

积分
32

fireprime 交叉编译工具

发表于 2016-8-9 18:27:54      浏览:4848 | 回复:5        打印      只看该作者   [复制链接] 楼主
现在 prebuilts/gcc/linux-x86/arm/arm-eabi-4.6 这个单独的工具链接下载不了,直接下载的SDK 里面也没有这个工具了,有下过的兄弟 帮忙发我下,感激不尽
回复

使用道具 举报

17

积分

0

威望

0

贡献

游客

积分
17
发表于 2016-9-23 13:33:16        只看该作者  沙发
搞定了吗?我也遇到这个问题
回复

使用道具 举报

950

积分

95

威望

72

贡献

超级版主

Rank: 8Rank: 8

积分
950
发表于 2016-9-23 14:15:23        只看该作者  板凳
http://developer.t-firefly.com/thread-10907-1-1.html
看看这个里面的编译工具适不适合。
回复

使用道具 举报

47

积分

0

威望

0

贡献

游客

积分
47
发表于 2017-4-19 17:03:00        只看该作者  地板
本帖最后由 simonyuan 于 2017-4-19 17:04 编辑

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

使用道具 举报

47

积分

0

威望

0

贡献

游客

积分
47
发表于 2017-4-19 17:14:09        只看该作者  5#
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
回复

使用道具 举报

47

积分

0

威望

0

贡献

游客

积分
47
发表于 2017-4-19 17:26:41        只看该作者  6#
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$
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表