ubuntu16.04安装qt5.11

首先确认ubuntu版本为16.04以上,执行下面步骤:

1、Qt5.11.0 下载

           下载链接:http://download.qt.io/archive/qt/5.11/       

            务必找到qt-opensource-linux-x64-5.11.0.run 文件

2、赋予qt-opensource-linux-x64-5.11.0.run文件权限

$ sudo chmod u+x qt-opensource-linux-x64-5.11.0.run

3、执行

$ ./qt-opensource-linux-x64-5.11.0.run

       执行的过程可以参照 博客https://blog.csdn.net/wuweifeng_2017/article/details/78322249   其中的步骤3和4一定要要按其配置,不过需要修改5.8为5.11.0,并且要找到自己的安装路径(这一步在4.配置中详细说明)。

4、配置

     1.找到路径  /usr/share/qtchooser     

     2.打开 qt5-x86_64-linux-gnu.conf    

cd ./usr/share/qtchooser
sudo gedit qt5-x86_64-linux-gnu.conf

     3.将 qt5-x86_64-linux-gnu.conf   内容改为如下(注意这里的路径按照自己文件路径给)

/home/Qt5.11.0/5.11.0/gcc_64/bin
/home/Qt5.11.0/5.11.0

     4.按其配置后,执行

 sudo apt-get install g++

5、安装完成

猜你喜欢

转载自blog.csdn.net/qq_37619928/article/details/82149190