2013-03-03 180 views
1

我想爲我的樹莓派交叉編譯Qt 5.0.1(最新版本)。我的設立如下:在爲樹莓派交叉編譯Qt 5.0.1時出錯

操作系統:Ubuntu的12.04 32位

交叉編譯器:從的crosstool-NG程序構建,使用的確切說明found here

樹莓裨操作系統:Raspbian喘息2013 -02-09(安裝在/ mnt /覆盆子-PI-rootfs的)

配置命令:

./configure -no-pch -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/home/<myusername>/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- -sysroot /mnt/raspberry-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5-raspberry-pi -v 

當運行配置命令,它總是失敗並出現以下錯誤:

Could not determine the target architecture! 

/mnt/raspberry-pi-rootfs/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory 

任何人都知道這意味着什麼?

我試過最新的預建的Linaro Toolchain交叉編譯器from here,而且Qt至少可以編譯,但是隨程序編譯的程序一旦程序運行就會導致SIGILL(非法指令)錯誤,我想這是因爲我使用的預置交叉比較器不是針對正確的架構。

注:

我知道交叉編譯極度困難,但我想更多地瞭解什麼是對

回答