linux下QTE环境搭建

开发工具
arm-linux-gcc-4.3.2.tar.gz
QtE-4.5.1-arm.tar.gz

http://download.csdn.net/source/3080325 
tslib-1.4.tar.gz

http://download.csdn.net/source/3080330 
QtE和tslib的编译见博客
http://blog.csdn.net/tiany524/archive/2009/08/13/4443831.aspx

由于QtE和tslib都是给予4.3.2的,所以编译Qt程序是也必须使用相同的版本

1 解压
    tar xvzf arm-linux-gcc-4.3.2.tar.gz -C /
    /usr/local/arm/4.3.2/bin
    在跟目录下解压QtE和tslib,并保存在根目录下面

2 配置
vim ~/.bashrc
加入以下两行
export PATH=$PATH:/QtE-4.5.1-arm/bin
export PATH=$PATH:/usr/local/arm/4.3.2/bin
source ~/.bashrc

然后运行命令查看版本是否正确
[root@tiany test]# qmake -v
QMake version 2.01a
Using Qt version 4.5.1 in /QtE-4.5.1-arm/lib
[root@tiany test]# arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2008q3-72' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)

开发环境设置完毕

你可能感兴趣的:(linux下QTE环境搭建)