In qt5.4.run [/ home / share] directory
Vim ~ / .bashrc
Export the PATH = / opt / Oracle / Qt5.4.1 / Tools / QtCreator / bin: /opt/oracle/Qt5.4.1/5.4/gcc_64/ bin:. $ the PATH
Export your MANPATH = / opt / Oracle / Qt5.4.1 / Tools / QtCreator / man: $ your MANPATH
Export the LD_LIBRARY_PATH = / opt / Oracle / Qt5.4.1 / Tools / QtCreator / lib: / opt / Oracle / QT5. 4.1 / 5.4 / gcc_64 / lib: $ LD_LIBRARY_PATH
======================================== ==============
CentOS6.2 install OpenGL development library under https://blog.51cto.com/wzsts/1828007
do develop Qt under Linux, run the program when the results do not look for tips to GL / gl.h file, we can only put up the OpenGL libraries are installed, do not know the operating right at a later time to consider it, let's start the installation
1, see the mesa relevant packages
yum List mesa *
2, install these packages
yum install mesa *
安装完成后,我们就拥有了一个基础的OpenGL开发环境了,但是仅仅有基础的开发环境是不够的,一般来讲,我们还要安装一个叫做Glut的库,这是一个OpenGL的辅助库,可以让我们创建与平台无关的OpenGL窗口。因此,安装Glut也是必要的。 Glut有很多种实现,在这里我用的是freeglut。
3、查看glut
yum list *glut*
4、安装freeglut
yum install freeglut*
到这里,我们就完成了OpenGL的安装了。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
qmake -project =>生成.pro
qmake =>生成MAKEFILE
make
button.pro
4 QT += widgets 添加这行代码
5
6 TEMPLATE = app
7 TARGET = button
8 INCLUDEPATH += .
9
10 # Input
11 SOURCES += Button.cpp
---------------------
作者:princewwj
来源:CSDN
原文:https://blog.csdn.net/princewwj/article/details/81452528
版权声明:本文为博主原创文章,转载请附上博文链接!
RHEL6.5 installation QT5.4, set the environment variable
Guess you like
Origin www.cnblogs.com/smarkshare/p/10973310.html
Recommended
Ranking