0
点赞
收藏
分享

微信扫一扫

CentOS7 x64 安装QT5.9.4


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​
  3. CentOS7 x64 安装QT5.9.4_CentOS7


  1. 设置QT环境变量
  1. ​gedit /etc/profile​
  2. 在最后一行加入:​​export PATH=$PATH:/opt/Qt5.9.4/5.9.4/gcc_64/bin​
  3. ​source /etc/profile​

ends…


举报

相关推荐

0 条评论