[問題] CROSS_COMPILE
板友好
我使用 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
→
10/07 20:51, , 1F
10/07 20:51, 1F
→
10/07 20:53, , 2F
10/07 20:53, 2F
→
10/07 20:55, , 3F
10/07 20:55, 3F
→
10/07 21:18, , 4F
10/07 21:18, 4F
→
10/07 21:22, , 5F
10/07 21:22, 5F
→
10/07 21:22, , 6F
10/07 21:22, 6F
→
10/07 21:23, , 7F
10/07 21:23, 7F
→
10/07 21:24, , 8F
10/07 21:24, 8F
→
10/07 21:38, , 9F
10/07 21:38, 9F
→
10/07 21:39, , 10F
10/07 21:39, 10F
→
10/07 21:40, , 11F
10/07 21:40, 11F
→
10/07 21:47, , 12F
10/07 21:47, 12F
推
10/11 23:07, , 13F
10/11 23:07, 13F
→
10/11 23:07, , 14F
10/11 23:07, 14F