【教程】CentOS7 x64 安装QT5.9.4

版权声明:感谢观看! https://blog.csdn.net/qq153471503/article/details/83026665

CentOS7 x64 安装QT5.9.4


  1. 安装gcc-c++
    yum -y install gcc gcc-c++
  2. 下载Qt
    下载地址: http://download.qt.io/archive/qt/
  3. 安装必要运行库
    yum -y install mesa-libGL-devel mesa-libGLU-devel freeglut-devel
  4. 安装Qt(系统默认安装到根目录/opt目录下)
    1. 增加可执行权限
      chmod +x qt-opensource-linux-x64-5.9.4.run
    2. 启动安装程序
      ./qt-opensource-linux-x64-5.9.4.run
      在这里插入图片描述
  5. 设置QT环境变量
    1. gedit /etc/profile
    2. 在最后一行加入:export PATH=$PATH:/opt/Qt5.9.4/5.9.4/gcc_64/bin
    3. source /etc/profile

ends…

猜你喜欢

转载自blog.csdn.net/qq153471503/article/details/83026665
今日推荐