Open pzl opened 9 years ago
Huh, it explicitly says /* don't include glext.h */
but without glext.h
it doesn't compiles under linux indeed. I wonder what was the reason behind this comment.
Ok, here's the real fix:
#else
# include <GL/gl.h>
# include <GL/glu.h>
# define GL_GLEXT_LEGACY /* don't include glext.h */
# include <GL/glx.h>
#endif
The original developer placed definition on the wrong line, you should define it just after glx.h
inclusion.
Problem:
on recent Arch linux, this isn't compiling as-is. Basically problem finding the symbol definition of
GLintptr
(error: unknown type name 'GLintptr'
). Googling this found a similar problem filed on libreoffice. That ticket pointed toGL_GLEXT_LEGACY
being defined, having an effect on all this. And in this project, insrc/sdDefs.h
it is defined for non-windows, non-apple platforms.Steps to reproduce:
Platform info (I don't know what's relevant):
GLX version: 1.4 GL_GLEXT_VERSION (found in /usr/include/glext.h): 20140810 OpenGL version string: 4.4.0 NVIDIA 343.22 Kernel: 3.17.1
Full error:
Fix (for me at least, not sure if this is a total fix)
I'd issue a PR with this, but the comment above it literally says not to do this. So I'm not sure if this should be the permanent fix.