首页 > 其他 > 详细

centos Qt安装 & 配置OpenGL开发环境

时间:2020-06-15 19:26:20      阅读:58      评论:0      收藏:0      [点我收藏+]
  1. 安装编译器
    yum install gcc gcc-c++
  2. 安装连接器
    yum install mesa-libGL-devel mesa-libGLU-devel freeglut-devel
  3. wget http://download.qt.io/official_releases/qt/5.9/5.9.8/qt-opensource-linux-x64-5.9.8.run
  4. chmod +x qt-opensource-linux-x64-5.9.8.run
    ./qt-opensource-linux-x64-5.9.8.run
  5. echo "/opt/Qt5.9.8/5.9.8/gcc_64/lib" >> /etc/ld.so.conf
    echo "/opt/Qt5.9.8/Tools/QtCreator/lib" >> /etc/ld.so.conf
    ldconfig -v
  6. echo "export PATH=/opt/Qt5.9.8/5.9.8/gcc_64/bin:/opt/Qt5.9.8/Tools/QtCreator/bin:$PATH" >> /etc/profile.d/Qt5.9.8.sh
    source /etc/profile.d/Qt5.9.8.sh
  7. qmake -v
    技术分享图片

     

  8. qtcreator

配置OpenGL

  yum install mesa* freeglut* *GLEW*

centos Qt安装 & 配置OpenGL开发环境

原文:https://www.cnblogs.com/dissipate/p/13133749.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!