CROSS_COMPILE - Linux

Table of Contents

板友好


我使用 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

謝謝

--

All Comments

Heather avatarHeather2015-10-10
看一下 config.log 說什麼?
William avatarWilliam2015-10-12
可執行? 直接執行帶參數看版本試試?
Puput avatarPuput2015-10-15
path是不是要export才會傳進子程式?
Ingrid avatarIngrid2015-10-17
八成是用64位元平台
Jack avatarJack2015-10-19
灌64位元的我也幹過XD 當初直接就重灌32的XDD
不過後來看網路 好像有些說多裝一些套件就能相容?
Puput avatarPuput2015-10-22
不是很確定... 不知道有沒有人試過?
Damian avatarDamian2015-10-27
那時還有同事問我win64可以執行32的程式 沒道理Linux不行
Carol avatarCarol2015-10-31
有找到 yocto 官方文件,教你怎用 sdk build project
Leila avatarLeila2015-10-31
明天再來試看看好了....
John avatarJohn2015-11-04
PATH 我的的確是用 export
Vanessa avatarVanessa2015-11-05
所以你確定你的arm-xxx-gcc是可以執行的?
Bennie avatarBennie2015-11-10
你的linux系統是什麼,如果是ubuntu,debian 要先 sudo dp
kg --add-architecture i386