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

本文详细介绍了在Linux环境下安装QT的过程,包括源码编译、环境搭建、QTCreator安装、NFS服务配置以及在ARM板上的环境配置。通过QT的X11、x86和ARM版本的安装,以及相关库文件的设置,确保QT在不同平台的正常运行。同时,文章还提到了常见问题的解决方法和开机自动运行程序的配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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-nomake

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值