qt在linux中安装目录,详解QT安装全过程

QT安装全过程是本文要介绍的内容,主要是来了解并学习QT的应用,本文主要是来学习QT安装过程,具体内容的实现来看本文详解。

一、qt的源码编译

1、编译触摸屏软件tslib

解压tslib-1.4.tar.gz

Tar-zxvftslib-1.4.tar.gz-C/usr/local

cdtslib

apt-getinstalllibtool

apt-getinstallautoconf

apt-getinstallg++

在tslib目录下

./autogen.sh

CC=arm-linux-gcc

####echo"ac_cv_func_malloc_0_nonnull=yes">arm-linux.cache//###表示注释掉了,第三句是前两句的结合

####./configure--prefix=/opt/ts/--host=arm-linux--cache-file=arm-linux.cache

./configure--prefix=/opt/ts/--host=arm-linuxac_cv_func_malloc_0_nonnull=yes

打开tests/ts_calibrate.c,修改两个open,加上第三个参数0//atline227229

make

makeinstall

2、安装qt--X11

apt-getinstalllibX11-devlibXext-devlibXtst-dev

apt-getinstallxorg-dev

解压tarzxvfqt-everywhere-opensource-src-4.6.3.tar.gz-C/usr/local/

mvqt-everywhere-opensource-src-4.6.3qt-everywhere-opensource-src-4.6.3-x11

./configure-nomakeexamples-nomakedemos

make&&makeinstall

该过程会出现让你选择commercial或者open版本==》输入o

然后询问是否接受license==》输入yes

make&&makeinstall

//三个小时左右,该干嘛干嘛去

3、安装qt--x86

#tarxzvfqt-everywhere-opensource-src-4.6.3.tar.gz-C/usr/local

#mvqt-everywhere-opensource-src-4.6.3qt-everywhere-opensource-src-4.6.3-x86

#cdqt-everywhere-opensource-src-4.6.3-x86

#./configure-prefix/usr/local/Trolltech/Qt-4.6.3-x86-nomakeexamples-nomakedemos

-nomakedocs-nomaketools-embeddedx86-qvfb

#make&&makeinstall

4、安装qt--arm

./configure-prefix/usr/local/Trolltech/Qt-4.6.3-arm-release-shared-fast-xplatformqws/linux

-arm-g++-embeddedarm-depths16-no-qvfb-no-qt3support-qt-sql-sqlite-qt

-zlib-qt-libpng-qt-freetype-qt-mouse-tslib-no-mouse-pc-no-mouse-linuxtp

-nomakeexamples-nomakedemos-nomakedocs-nomaketools-I/opt/t

你可能感兴趣的:(qt在linux中安装目录)