#tar xzvf qt-everywhere-opensource-src-4.6.3.tar.gz
进入解压后的目录:
#cd qt-everywhere-opensource-src-4.6.3
修改错误文件:
#gedit src/3rdparty/freetype/include/freetype/config/ftconfig.h
将第330 行修改为:"orr %0, %0,%2, lsl #16\n\t" /* %0 |= %2 << 16 */
执行以下命令:
#./configure -qt-kbd-tty -qt-gfx-linuxfb -no-gfx-transformed -no-gfx-multiscreen -qt-mouse-pc -no-gfx-qvfb -no-gfx-vnc -qt-kbd-tty -qt-gfx-linuxfb -no-gfx-qvfb -no-gfx-vnc -qt-mouse-tslib -no-glib -prefix /usr/local/qte4.6.3 -embedded arm -release -shared –fast -no-largefile -qt-sql-sqlite -no-qt3support -no-xmlpatterns -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -no-webkit -qt-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -make libs -nomake tools -nomake examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv -no-dbus -no-openssl -xplatform qws/linux-arm-g++ -little-endian -qt-freetype -depths 16,18 -I/usr/local/tslib/include -L/usr/local/tslib/lib -v -D__ARM_ARCH_5TEJ__
然后输入O 回车,在输入yes回车开始配置生成Makefile文件,配置完成后输入以下命令开始编译:
#make
编译完成后输入以下命令开始安装编译好的库以及其他QT开发工具:
#make install
上述步骤完成后QT/E就交叉编译并安装到了/usr/local/qte4.6.3下。