軟件:VMware 7.0 Ubuntu 10.10 eclipse QTE
虛擬機安裝,與ubuntu 操作系統安裝略
1,基礎組件安裝
1.1,安裝GCC 開發環境
sudo apt-get install build-essential
1.2,安裝基礎組件libxtst-dev
sudo apt-get install libxtst-dev
1.3,安裝QT 編譯工具包
sudo apt-get install qt4-make
1.4,安裝Qtdevelop,Qt設計器,Qt助手
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer
1.5, 安裝qt開發的一個IDE環境,開發人員可以在這個IDE裡面創建qt工程,編輯、編譯、調試qt程序
sudo apt-get install qdevelop
1.6, 安裝qcreator
sudo chmod +x qtcreator-linux-x86-opensource-1.3.83-201004300113-setup.bin
sudo ./qtcreator-linux-x86-opensource-1.3.83-201004300113-setup.bin
2,搭建開發環境
2.1,x86 QT安裝
a,下載並解壓源代碼qt-everywhere-opensource-src-4.7.2.tar.gz 編譯
tar -xvf qt-everywhere-opensource-src-4.7.2.tar.gz
cd qt-everywhere-opensource-src-4.7.2
./configure -prefix /usr/local/qt-x86 -qvfb
make
make install
b,編譯模擬器並將目錄文件拷貝到/usr/local/bin
cd tools/qvfb/
make
make install
2.2,x86 QTE安裝
a,編譯
./configure -prefix /usr/local/qte-x86 -embedded x86 -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb
make
make install
b,導出環境變量
export QT4DIR=/usr/local/qt-x86
export QTEDIR=/usr/local/qte-x86
export PATH=$QTEDIR/bin:$QT4DIR/bin:$PATH
export LD_LIBRARY_PATH=$QT4DIR/lib:$QTEDIR/lib:$LD_LIBRARY_PATH
2.3,ARM QTE安裝
2.4,設置IDE eclipse
a,安裝JRE
sudo get-apt install java-sdk6-jre
b,下載並解壓eclipse
c,下載並解壓qt for eclipse 插件
合並這兩個解壓目錄,並設置QT的庫文件目錄