qt-everywhere-opensource-src-4.6.3.tar.gz
交叉编译器版本:
arm-linux-gcc 4.1.2
操作系统平台:
Linux -- ubuntu11.04
所需源码:
tslib-1.4.tar.gz
qt-everywhere-opensource-src-4.6.3.tar.gz
一 :安装交叉编译工具(略)
二 :编译tslib-1.4.tar.gz(略,参考tslib1.4移植)
三 :编译qt-everywhere-opensource-src-4.6.3.tar.gz
#tar xzvf qt-everywhere-opensource-src-4.6.3.tar.gz
#cd qt-everywhere-opensource-src-4.6.3
#vim qt-everywhere-opensource-src-4.6.3/mkspecs/qws/linux-arm-g++/qmake.conf
其中内容; ;
QMAKE_CC=arm-linux-gcc
QMAKE_CXX=arm-linux-g++
QMAKE_LINK=arm-linux-g++
QMAKE_LINK_SHLIB=arm-linux-g++
改为:
QMAKE_CC=/opt/toolchains/arm920t-eabi/bin/arm-linux-gcc -lts
QMAKE_CXX=/opt/toolchains/arm920t-eabi/bin/arm-linux-g++ -lts
QMAKE_LINK=/opt/toolchains/arm920t-eabi/bin/arm-linux-g++ -lts
QMAKE_LINK_SHLIB=/opt/toolchains/arm920t-eabi/bin/arm-linux-g++ -lts
#./configure \
-prefix /usr/local/Trolltech/QtEmbedded-4.6.3-arm \
-opensource \
-confirm-license \
-release -shared \
-embedded arm \
-xplatform qws/linux-arm-g++ \
-depths 16,18,24 \
-fast -pch \
-optimized-qmake \
-qt-sql-sqlite \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-little-endian -host-little-endian \
-no-qt3support \
-no-libtiff -no-libmng \
-no-opengl \
-no-mmx -no-sse -no-sse2 \
-no-3dnow \
-no-openssl \
-no-qvfb \
-no-phonon \
-no-nis \
-no-opengl \
-no-cups \
-no-glib \
-no-webkit \
-no-phonon \
-no-javascript-jit \
-no-xkb -no-sm -no-xinerama -no-xshape \
-no-xcursor -no-xfixes -no-xrandr -no-xrender \
-no-separate-debug-info \
-nomake examples -nomake tools -nomake docs -nomake demos\
-qt-kbd-usb \
-no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb \
-qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib
#make
#makeinstall
四 :编译QT应用程序
#cd examples/grapicsview/dragdroprobot
#qmake
#make
阅读(2950) | 评论(0) | 转发(0) |