作者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://www.ptt.cc/bbs/Linux/M.1444211367.A.6C6.html
※ 編輯: gn00618777 (61.220.220.235), 10/07/2015 17:50:36
→ lantw44: 看一下 config.log 說什麼? 10/07 20:51
→ bdvstg: 可執行? 直接執行帶參數看版本試試? 10/07 20:53
→ bdvstg: path是不是要export才會傳進子程式? 10/07 20:55
→ Microscft: 八成是用64位元平台 10/07 21:18
→ bdvstg: 灌64位元的我也幹過XD 當初直接就重灌32的XDD 10/07 21:22
→ bdvstg: 不過後來看網路 好像有些說多裝一些套件就能相容? 10/07 21:22
→ bdvstg: 不是很確定... 不知道有沒有人試過? 10/07 21:23
→ bdvstg: 那時還有同事問我win64可以執行32的程式 沒道理Linux不行 10/07 21:24
→ gn00618777: 有找到 yocto 官方文件,教你怎用 sdk build project 10/07 21:38
→ gn00618777: 明天再來試看看好了.... 10/07 21:39
→ gn00618777: PATH 我的的確是用 export 10/07 21:40
→ bdvstg: 所以你確定你的arm-xxx-gcc是可以執行的? 10/07 21:47
推 hugo007: 你的linux系統是什麼,如果是ubuntu,debian 要先 sudo dp 10/11 23:07
→ hugo007: kg --add-architecture i386 10/11 23:07