Professional Documents
Culture Documents
(3) In same page, goto Target Image Generation, and select ext2.gz ramdisk image for
SD boot and save.
(4) Goto Package List and select the Tslib to enable touch panel or QT, save.
(5) Save and exit, LTIB will start to build the image.
3. Get the tslib source code from LTIB: $ ./ltib p tslib -m prep; the tslib
source code can be found at ltib/rpm/BUILD/tslib-1.0
4. Set the CROSS_COMPILE for both tslib and QT compiling.
In Ubuntu, the LTIB cross compiler will be installed to /opt/freescale/usr/local/gcc4.4.4-glibc-2.11.1-multilib-1.0.
Edit ~/.bashrc, and add the followed line, then logout and login again:
export PATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linuxgnueabi/bin/:$PATH
6. Build the QT, the last QT source code can be downloaded from
http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src4.7.3.tar.gz.
$ cd ~
$ tar -zxvf qt-everywhere-opensource-src-4.7.3.tar.gz
$ cd qt-everywhere-opensource-src-4.7.3
Edit the file mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf, and add the line
QMAKE_LFLAGS += -Wl,-rpath-link=/home/ubuntu123/tslib/lib.
$ ./configure -embedded arm -xplatform qws/linux-arm-gnueabi-g++ -prefix ~/qt_demo
-hostprefix ~/qt_target -opensource -qt-mouse-tslib -I ~/tslib/include -L ~/tslib/lib confirm-license
$ make
$ make install
Then the built out QT libs can be found at /home/ubuntu123/qt_target.
After the board booted up, we can run $ ts_calibrate to calibrate the touch panel; use the
followed commands to run the QT demos.
$ cd /qt/demos/mainwindow
$ ./mainwindow -qws