版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_25203255/article/details/82966994
1. Linux下配置opengl环境
- 系统版本: deepin-15.5
- 系统位数:x86-64
- 系统处理器: AMD
- 开发IDE: Qt Creator
- opengl预安装版本: 3
$ sudo apt-get install build-essentia
$ sudo apt-get install libgl1-mesa-dev
$ sudo apt-get install libglu1-mesa-dev
$ sudo apt-get install freeglut3-dev
2. 库文件位置
$ cd /usr/lib/x86_64-linux-gnu/
$ ls libGL* libglu*
libGLdispatch.so libGLEW.so libGLU.a libglusterfs.so.0 libGLX_indirect.so.0
libGLdispatch.so.0 libGLEW.so.2.0 libGLU.so libglusterfs.so.0.0.1 libGLX_mesa.so.0
libGLdispatch.so.0.0.0 libGLEW.so.2.0.0 libGLU.so.1 libglut.a libGLX_mesa.so.0.0.0
libGLESv2.so libGL.so libGLU.so.1.3.1 libglut.so libGLX.so
libGLESv2.so.2 libGL.so.1 libglusterfs.la libglut.so.3 libGLX.so.0
libGLESv2.so.2.1.0 libGL.so.1.7.0 libglusterfs.so libglut.so.3.9.0 libGLX.so.0.0.0
$ cd /usr/include/GL/
$ ls -l
总用量 2868
-rw-r--r-- 1 root root 9007 8月 24 2016 freeglut_ext.h
-rw-r--r-- 1 root root 681 8月 24 2016 freeglut.h
-rw-r--r-- 1 root root 26523 8月 24 2016 freeglut_std.h
-rw-r--r-- 1 root root 407042 5月 22 15:07 glcorearb.h
-rw-r--r-- 1 root root 1038496 5月 24 08:47 glew.h
-rw-r--r-- 1 root root 829001 5月 22 15:07 glext.h
-rw-r--r-- 1 root root 19929 7月 11 2015 glfw.h
-rw-r--r-- 1 root root 80615 5月 22 15:07 gl.h
-rw-r--r-- 1 root root 158833 5月 22 15:07 gl_mangle.h
-rw-r--r-- 1 root root 17255 9月 14 2015 glu.h
-rw-r--r-- 1 root root 3315 9月 14 2015 glu_mangle.h
-rw-r--r-- 1 root root 639 8月 24 2016 glut.h
-rw-r--r-- 1 root root 73223 5月 24 08:47 glxew.h
-rw-r--r-- 1 root root 47624 5月 22 15:07 glxext.h
-rw-r--r-- 1 root root 14642 5月 22 15:07 glx.h
-rw-r--r-- 1 root root 4706 12月 12 2013 glxint.h
-rw-r--r-- 1 root root 3471 5月 22 15:07 glx_mangle.h
-rw-r--r-- 1 root root 2086 12月 12 2013 glxmd.h
-rw-r--r-- 1 root root 80979 12月 12 2013 glxproto.h
-rw-r--r-- 1 root root 11436 12月 12 2013 glxtokens.h
drwxr-xr-x 2 root root 4096 10月 7 21:47 internal
-rw-r--r-- 1 root root 62697 5月 24 08:47 wglew.h