回文章列表
作者shane123.bbs@ptt.cc (家產有八十七億�� �� ���) 看板: linux
標題[問題] cross compile 遇到的問題
時間批踢踢實業 (2008/06/20 Fri 19:11:58)
請問一下

我最近要把 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
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻