作者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)
推 TroyLee:--host=i386-linux --build=arm-linux --target=arm-linux 06/20 19:35
→ shane123:還是不行耶@_@ 錯誤訊息仍舊一樣... 06/20 21:06
推 cttlee:看一下config.log之類的 以前遇過好像是相關library的問題 06/20 21:14
→ shane123:conftest.c:error: ac_nonexistent.h: No such file 06/20 22:10
→ shane123:所以要想辦法弄到這個檔案囉? 06/20 22:11
→ shane123:但我 google 過 找不到去哪抓這個檔案耶~ 06/20 22:11
推 TroyLee:該不會你沒裝 autoconf 之類的套件吧 06/21 00:21