1.首先安装QT 下载地址为 http://www.qtcn.org/bbs/read-htm-tid-1075.html

    选择版本为 Qt 5.10.1 for Linux 64-bit (1 GB)

Unbuntu16.04 下 QT环境的搭建

2.然后安装 g++

 在终端输入:sudo apt-get install g++ 

3.更改Qt文件权限

在终端输入:

  1. cd 下载  
  2. sudo chmod u+x qt-opensource-linux-x64-5.10.1.run

4运行

  1. ./qt-opensource-linux-x64-5.10.1.run  

5.出现了安装界面一路Next(注意将QT5的也选择上去)

6.环境变量的配置

  1. cd /usr/lib/x86_64-linux-gnu/qt-default/qtchooser  
  2. sudo gedit default.conf  

7.然后将degault.conf弹出来的内容更换为:

  1. /home/hansion/Qt5.10.1/5.10/gcc_64/bin  
  2. /home/hansion/Qt5.10.1/  

注意出现cannot find -lGL的问题

在终端输入 sudo apt-get install libgl1-mesa-dev







相关文章:

  • 2021-10-21
  • 2022-01-08
  • 2021-09-25
  • 2022-12-23
  • 2021-06-26
  • 2021-12-25
  • 2021-06-12
  • 2021-10-14
猜你喜欢
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-11-13
  • 2021-11-30
相关资源
相似解决方案