Error when cross compiling Qt 5.0.1 for the Raspberry Pi -


i'm trying cross compile qt 5.0.1 (latest release @ moment) raspberry pi. set follows:

operating system: ubuntu 12.04 32-bit

cross compiler: built crosstool-ng program, using exact instructions found here

raspberry pi operating system: raspbian wheezy 2013-02-09 (mounted @ /mnt/raspberry-pi-rootfs)

configure command:

./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 

when run configure command, fails following error:

could not determine target architecture!  /mnt/raspberry-pi-rootfs/usr/include/features.h:323:26: fatal error: bits/predefs.h: no such file or directory 

anyone know means?

i have tried latest pre-built linaro toolchain cross compiler from here, , qt @ least builds, program compiled causes sigill (illegal instruction) fault program runs up, guess because pre-built cross compler used not targeting right architecture.

note:

i aware cross compiling fiendishly difficult, i'd understand more going on

i'm not sure exact cause of message was, managed sort out using pre-buils toolchain raspberry pi here:

https://github.com/raspberrypi/tools


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -