移植QT4.7.3

来源:互联网 发布:浪费水资源的数据 编辑:程序博客网 时间:2024/06/01 10:22

转载自:http://blog.sina.com.cn/s/blog_4b0d607401014uwl.html

http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.3.tar.gz

下载 qt-everywhere-opensource-src-4.7.3.tar.gz

 tslib的移植这里就不讲了

步骤:

(1)将qt-everywhere-opensource-src-4.7.3.tar.gz解压到指定目录


(2)终端cd进入qt-everywhere-opensource-src-4.7.3.tar.gz解压目录


(3)配置


# ./configure -prefix /opt/QtEmbedded-4.7.3 -release -shared -fast-pch -no-qt3support -qt-sql-sqlite -no-libtiff -no-libmng-qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -nomakeexamples -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 -confirm-license -qt-mouse-tslib-I/opt/tslib/include -L/opt/tslib/lib


备注:

最后3句是指定使用触摸屏,并制定tslib1.4的安装目录的头文件以及库函数。我的tslib是安装在opt下。

(4)make


(5)make install

至此arm版的qt4.7.3安装完毕,在arm板上跑qt的支持文件为/opt/QtEmbedded-4.7.3,将整个文件夹拷贝到arm板的文件系统的相应位置下即可。大约需要几个小时!!!!!!!!!!!!!!

不会的话可以给我留言