作者shane123 (家产有八十七亿  ﰩ
看板Linux
标题[问题] cross compile 遇到的问题
时间Fri Jun 20 19:11:57 2008
请问一下
我最近要把 glib (
http://www.gtk.org/download-linux.html )
编到 arm 上面
所以我抓回 source 後
执行 ./configure --host=arm-linux
只是执行到一半出现
configure: error: cannot run test program while cross compiling
找了 config.h 发现是因为
./configure 会先编译一个测试的档案 输出成 a.out
然後看能不能执行
但编出来的是 arm 的执行档阿
所以当然无法执行
因此 configure 就不让我过了
请问我该怎麽办呢?
谢谢了~~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.62.97.25
※ 编辑: shane123 来自: 61.62.97.25 (06/20 19:12)
※ 编辑: shane123 来自: 61.62.97.25 (06/20 19:12)
1F:推 TroyLee:--host=i386-linux --build=arm-linux --target=arm-linux 06/20 19:35
2F:→ shane123:还是不行耶@_@ 错误讯息仍旧一样... 06/20 21:06
3F:推 cttlee:看一下config.log之类的 以前遇过好像是相关library的问题 06/20 21:14
4F:→ shane123:conftest.c:error: ac_nonexistent.h: No such file 06/20 22:10
5F:→ shane123:所以要想办法弄到这个档案罗? 06/20 22:11
6F:→ shane123:但我 google 过 找不到去哪抓这个档案耶~ 06/20 22:11
7F:推 TroyLee:该不会你没装 autoconf 之类的套件吧 06/21 00:21