2013年9月2日 星期一

QT4 - How to build the QT for arm ?

1. 安裝之後編譯需要的套件
#sudo apt-get install libxtst-dev

2. 取得 qt x11 server and qt embedded 並且編譯
#wget http://ftp.heanet.ie/mirrors/trolltech/pub/qt/source/qt-x11-opensource-src-4.5.3.tar.gz
#tar -zxvf qt-x11-opensource-src-4.5.3.tar.gz
#cd qt-x11-opensource-src-4.5.3/
#sudo ./configure
#sudo make;sudo make install

#cd tools/qvfb
#sudo make

#wget http://ftp.heanet.ie/mirrors/trolltech/pub/qt/source/qt-embedded-linux-opensource-src-4.5.3.tar.gz
#tar -zxvf qt-embedded-linux-opensource-src-4.5.3.tar.gz qt-embedded-linux-opensource-src-4.5.3/
#cd qt-embedded-linux-opensource-src-4.5.3/
#sudo ./configure -prefix /qt-library-4.5.3 -release -shared -fast -pch -no-qt3support -qt-sql-sqlite -no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -nomake tools -nomake examples -nomake demos -optimized-qmake -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 -confirm-license -little-endian
#sudo make;sudo make install
PS. /qt-library-4.5.3就是之後編譯安裝之後的目標 library 

3. 壓縮剛剛編譯完成的QT library
#cd /
#sudo tar -czvf qt-library-4.5.3.tar.gz /qt-library-4.5.3/
4. 接下就可以把製作完成的壓縮檔拿到開發版上面讓已經編譯完成的 QT 程式引用。

reference :
http://it1688.blog.hexun.com.tw/81109706_d.html
http://it1688.blog.hexun.com.tw/81109675_d.html