作者gn00618777 (非常念旧)
看板Linux
标题[问题] CROSS_COMPILE
时间Wed Oct 7 17:49:24 2015
板友好
我使用 yocto 上的 toolchain 叫做 arm-poky-linux-gnueabi-
已安装好 yocto 的 SDK 了,也给了
PATH 指到 /home/..../arm-poky-linux-gnueabi/
我要编译 libnl3.2.4 这个库,下以下指令
./configure --prefix=/usr/local/arm/libnl3.2.7 CC=arm-poky-linux-gnueabi-gcc
出现:
configure: loading site script /home/bernie/poky-sdk/site-config-cortexa8hf-vf
p-neon-poky-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... arm-poky-linux-gnueabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/bernie/libnl-3.2.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
貌似 c compiler 一直没找到,给它 CC=绝对路径下的 arm-pokylinux-gnueabi-gcc
也一样,请问我该怎麽做QQ???,这只是我想要做的进度10%就卡成这样了。 如果我直接
把libnl 丢到板子编译,缺的东西更大,所以我还是偏好使用交叉编译,在此求救QQ
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.220.220.235
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1444211367.A.6C6.html
※ 编辑: gn00618777 (61.220.220.235), 10/07/2015 17:50:36
1F:→ lantw44: 看一下 config.log 说什麽? 10/07 20:51
2F:→ bdvstg: 可执行? 直接执行带参数看版本试试? 10/07 20:53
3F:→ bdvstg: path是不是要export才会传进子程式? 10/07 20:55
4F:→ Microscft: 八成是用64位元平台 10/07 21:18
5F:→ bdvstg: 灌64位元的我也干过XD 当初直接就重灌32的XDD 10/07 21:22
6F:→ bdvstg: 不过後来看网路 好像有些说多装一些套件就能相容? 10/07 21:22
7F:→ bdvstg: 不是很确定... 不知道有没有人试过? 10/07 21:23
8F:→ bdvstg: 那时还有同事问我win64可以执行32的程式 没道理Linux不行 10/07 21:24
9F:→ gn00618777: 有找到 yocto 官方文件,教你怎用 sdk build project 10/07 21:38
10F:→ gn00618777: 明天再来试看看好了.... 10/07 21:39
11F:→ gn00618777: PATH 我的的确是用 export 10/07 21:40
12F:→ bdvstg: 所以你确定你的arm-xxx-gcc是可以执行的? 10/07 21:47
13F:推 hugo007: 你的linux系统是什麽,如果是ubuntu,debian 要先 sudo dp 10/11 23:07
14F:→ hugo007: kg --add-architecture i386 10/11 23:07