cross compile 遇到的問題 - Linux

Table of Contents

請問一下

我最近要把 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 就不讓我過了

請問我該怎麼辦呢?

謝謝了~~

--

All Comments