Linux嵌入式应用开发 - Ubuntu eclipse qt/qte x86/arm开发环境

软件: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的库文件目录Linux嵌入式应用开发 - Ubuntu eclipse qt/qte x86/arm开发环境

相关推荐