centos Qt安装 & 配置OpenGL开发环境
作者:互联网
- 安装编译器
yum install gcc gcc-c++ - 安装连接器
yum install mesa-libGL-devel mesa-libGLU-devel freeglut-devel - wget http://download.qt.io/official_releases/qt/5.9/5.9.8/qt-opensource-linux-x64-5.9.8.run
- chmod +x qt-opensource-linux-x64-5.9.8.run
./qt-opensource-linux-x64-5.9.8.run - 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 - 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 - qmake -v
- qtcreator
配置OpenGL
yum install mesa* freeglut* *GLEW*
标签:opt,gcc,qt,centos,OpenGL,5.9,etc,Qt5.9,Qt 来源: https://www.cnblogs.com/dissipate/p/13133749.html