Qt Reference Documentation

Angstrom cross-compiler toolchain

Qt Commercial SDK contains Angstrom 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.

Building Qt for Embedded Linux with Angstrom toolchain

To cross compile Qt for Embedded Linux using the Angstrom toolchain, you need to setup correct environment variables. This can be done with the provided script in the toolchain directory:

 source %SDK_PATH%/Tools/angstrom/arm/environment-setup

Configuring Qt for Embedded Linux

To cross-compile Qt for Embedded Linux with the Angstrom 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-angstrom-gnueabi-g++ -force-pkg-config <other options>

Setting up SD card for BeagleBoard-xM or PandaBoard

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 Angstrom toolchain will format a bootable SD card:

 %SDK_PATH%/Tools/angstrom/arm/bin/mkcard.sh <drive>

Note: Make sure you specify correct device to format.

Extract Linux distro files into SD card

The SD card format script prepares two partitions, first one named 'boot' and second one named 'Angstrom'.

Extract boot-files-<board>.tar.bz2 to the first partition, usually mounted to /media/boot, and extract qt-embedded-commercial-demo-image-<board>.tar.bz2 to second partition, usually mounted to /media/Angstrom.

 tar xjf %SDK_PATH%/Extras/embedded-images/beagle/boot-files-beagleboard.tar.bz2 -C /media/boot
 tar xjf %SDK_PATH%/Extras/embedded-images/beagle/qt-commercial-4.8.7-embedded-beagle-demo.tar.bz2 -C /media/Angstrom
 sync
 umount /media/boot /media/Angstrom

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.