Cross Compile Qt Development Environment
- Please refer to chapter [1.4.2] for installing cross compiler tool and setting the environment variables.
- Install “automake”, “libtool” and “autoconf” packages, compile and install “tslib”:
$ sudo apt-get install automake libtool autoconf
$ cd <WORKDIR>
$ cp /media/cdrom/05-Linux_Souce/Qt_Arm/tslib-1.4.tar.bz2 ./
$ tar -jxf tslib-1.4.tar.bz2
$ cd tslib
$ ./ts-build
$ make install
Note: If error occurs on executing “ts-build”, modify the cross compiler tool path in “ts-build” file.
After compilation, “tslib” will be installed under directory “/usr/local/tslib”. Replace the text "# module_raw input" in the second line of “tslib/etc/ts.conf” under current directory with "module_raw input". Be sure that it must be top grid as shown in Fig.6-1:
图 6-1
- Build Qt
Copy Qt source code to the working directory:
$ cd <WORKDIR>
$ cp \
/media/cdrom/05-Linux_Source/Qt_Arm/qt-everywhere-opensource-src-4.8.5.tar.bz2\ ./
Install necessary toolkits:
$ sudo apt-get install xorg-dev libfontconfig1-dev
libfreetype6-dev libx11-dev libxcursor-dev libxext-dev
libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev
Begin to Compile:
$ tar -jxf qt-everywhere-opensource-src-4.8.5.tar.bz2
$ cd qt-everywhere-opensource-src-4.8.5
$ ./qt-build
$ sudo make install
After compilation, qt-4.8.5 will be installed to directory “/opt/qt-4.8.5”.