python 으로 먼가 하려는데 안되서 멘붕
$ python pygl.py No handlers could be found for logger "OpenGL.arrays.numpymodule" Traceback (most recent call last): File "pygl.py", line 92, in main() File "pygl.py", line 56, in main shader = OpenGL.GL.shaders.compileProgram(OpenGL.GL.shaders.compileShader(vertex_shader, GL_VERTEX_SHADER), File "/home/minimonk/.local/lib/python2.7/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader shaderType, RuntimeError: ('Shader compile failure (0): 0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES\n', ['\n #version 330\n in vec3 position;\n in vec3 color;\n\n out vec3 newColor;\n void main()\n {\n gl_Position = vec4(position, 1.0f);\n newColor = color;\n }\n '], GL_VERTEX_SHADER) minimonk@mini2760:~/src/pygl$ MESA_GLSL_VERSION_OVERRIDE=330 python pygl.py No handlers could be found for logger "OpenGL.arrays.numpymodule" Traceback (most recent call last): File "pygl.py", line 92, in main() File "pygl.py", line 56, in main shader = OpenGL.GL.shaders.compileProgram(OpenGL.GL.shaders.compileShader(vertex_shader, GL_VERTEX_SHADER), File "/home/minimonk/.local/lib/python2.7/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader shaderType, RuntimeError: ('Shader compile failure (0): 0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES\n', ['\n #version 330\n in vec3 position;\n in vec3 color;\n\n out vec3 newColor;\n void main()\n {\n gl_Position = vec4(position, 1.0f);\n newColor = color;\n }\n '], GL_VERTEX_SHADER) |
암튼 찾다보면 win10에서 GL3.0 지원 안한다고 하는 말도 있고 하는데
리눅스에서는 아래처럼 환경변수 정해주면 된다고 하는데.. 오오 진짜루 된다!! 만세!
$ export MESA_GLSL_VERSION_OVERRIDE=330 |
일단은 실행되는걸 보니 shader도 정상적으로 되는 듯?
[링크 : https://news.ycombinator.com/item?id=14181897]
[링크 : https://old.reddit.com/.../how_can_i_get_opengl_33_with_glsl_33_support/...]
'Linux > Ubuntu' 카테고리의 다른 글
리눅스 gdm 키맵 변경 (0) | 2019.05.10 |
---|---|
ubuntu 18.04 hibernate 적용하기 (0) | 2019.05.06 |
linux smbus? (0) | 2019.05.04 |
우분투 창 전환(그룹) 해제하기 (0) | 2019.05.04 |
우분투 터치패드 휠 클릭 흉내내기 (0) | 2019.05.04 |