linux下安装QT的方法

本文详细介绍了在Linux系统中通过源码编译安装QT的四个步骤:安装授权文件、解压源码、配置编译以及设置环境变量。提供了解压缩、配置选项、构建库以及设置必要的环境变量的命令,适用于商业版和开源版的QT安装。
摘要由CSDN通过智能技术生成

1、下载qt_sdk安装???

2、命令安装(在线安装)

       

           首先在命令行输入apt-get update

           然后输入 apt-cache search qtcreator

           然后输入 apt-get install qtcreator

3、下载QT的源码自己编译。

自己下载QT源码,如: qt-soruce-4.7.4.tar

在命令行输入 tar –xzvf  qt-soruce-4.7.4.tar解压源码

然后参照http://wiki.qt.io/Building_Qt_5_from_Git这个网址的方法(见下面)

先安装QT的环境然后手动编译QT源码即可。

Qt for Linux/X11 - Building fromSource

You can download the Qt 5 sources from the Downloads page. For more information, visit the Getting Started with Qt page.

Qt for X11 has some requirements that are given in more detailin the Qt for X11 Requirementsdocument.

Step 1:Installing the License File (Commercial Editions Only)

If you have the commercial edition of Qt, install your licensefile as $HOME/.qt-license.

For the openso

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值