Porting Qt/Embedded-4.4.3 to S3C2440

This article illustrates the procedures of porting Qt/Embedded-4.4.3 to our S3C2440 development boards. The board taken for this example is SKY2440-v2W35.

 First, Download the Qt for Device Creation version from http://trolltech.com/downloads. The latest stable version is qt-embedded-linux-opensource-src-4.4.3

Then refer to the following steps to port the qt-embedded-linux-opensource-src-4.4.3.

1. Extract the compressed package:

   tar zxf qt-embedded-linux-opensource-src-4.4.3.tar.gz
   cd qt-embedded-linux-opensource-src-4.4.3

2. Compile the qt-embedded-linux-opensource-src-4.4.3. Remove some unnecessary features, keep most of the commonly used functions, and add support for the tslib touch screen recalibration.

./configure \
-prefix /new_disk/Hiteg/qt/build/ \   //specify the directory for installation,
-release -shared \
-fast \
-pch \
-no-qt3support \
-qt-sql-sqlite \
-no-libtiff -no-libmng \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-no-openssl \
-nomake examples -nomake demos -nomake tools\
-optimized-qmake \
-no-phonon \
-no-nis \
-no-opengl \
-no-cups \
-no-xcursor -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm\
-no-xinerama -no-xshape \
-no-separate-debug-info \
-xplatform qws/linux-arm-g++ \
-embedded arm \
-depths 16 \
-no-qvfb \
-qt-gfx-linuxfb \
-no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb\
-qt-kbd-usb \
-confirm-license \
-qt-mouse-tslib


$ make (or gmake)
$ make install (or gmake install)

 

3. Set the compiling environment for Qt-4.4.3 applications

cp bin/qmake /usr/bin

4.Build filesystem, copy necessary Qt libraries to the filesystem directory:

cd $rootfs   #$rootfs is the  filesystem directory

mkdir new_disk/hiteg/qt/build –p && cd new_disk/hiteg/qt/build
cp /new_disk/hiteg/qt/build/lib/libQtCore.so ./
cp /new_disk/hiteg/qt/build/lib/libQtGui.so.4 ./
cp /new_disk/hiteg/qt/build/lib/libQtNetwork.so.4 ./
mkdir fonts

copy the fonts that you want to implement in your Qt:
cp /mnt/qt/build/lib/fonts/xxxxx.qpf fonts