Qt Commercial SDK contains Yocto based cross-compiler toolchain, which can be used to cross compile a Qt for Embedded Linux and applications for it. Qt Commercial SDK also has prebuild Linux distribution images for commonly available BeagleBoard-xM and PandaBoard development boards. These are provided only as examples to enable quick development and demonstration of Qt for Embedded Linux in embedded target devices.
To cross compile Qt for Embedded Linux using the Yocto toolchain, you need to setup correct environment variables. This can be done with the provided script in the toolchain directory:
source %SDK_PATH%/Tools/yocto/arm/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi
To cross-compile Qt for Embedded Linux with the Yocto toolchain to run on a BeagleBoard-xM or PandaBoard development boards, run the configure script at the command line in the following way:
./configure -embedded arm -xplatform qws/linux-arm-poky-gnueabi-g++ -force-pkg-config <other options>
The prebuild images for BeagleBoard-xM and PandaBoard development boards contain a cross-compiled Qt for Embedded Linux. Both BeagleBoard-xM and PandaBoard will boot from properly formatted SD card. Script provided in the Yocto toolchain will format a bootable SD card:
%SDK_PATH%/Tools/yocto/arm/sysroots/x86_64-pokysdk-linux/usr/bin/mkcard.sh <drive>
Note: Make sure you specify correct device to format.
The SD card format script prepares two partitions, first one named 'boot' and second one named 'rootfs'.
Extract boot-files-<board>.tar.bz2 to the first partition, usually mounted to /media/boot, and extract qt-embedded-commercial-demo-image-<board>-yocto.tar.bz2 to second partition, usually mounted to /media/rootfs.
tar xjf %SDK_PATH%/Extras/embedded-images-yocto/beagle/boot-files-beagleboard.tar.bz2 -C /media/boot tar xjf %SDK_PATH%/Extras/embedded-images-yocto/beagle/qt-commercial-embedded-beagle-demo.tar.bz2 -C /media/rootfs sync umount /media/boot /media/rootfs
After this, you are ready to boot up your development board and run Qt for Embedded Linux. Images have all Qt for Embedded Linux demos and examples already built and installed in /usr/local/Trolltech/QtEmbedded-4.8.7-arm. For running Qt for Embedded Linux applications, see Running Applications.
The device can be accessed using ssh with user root and an empty password.
The Angstrom based cross-compiler toolchain and matching demo images are similar to the Yocto, but cannot be mixed. The Yocto has newer version of GCC compiler as well as other improvements. The SD card setup script is also different and card prepared with Angstrom script will not work with Yocto demo images.