From: Martin C. <cos...@wa...> - 2012-08-17 00:27:17
|
On 14/08/12 16:27, Martin Costabel wrote: [] > For Fink on OSX 10.7/10.8, I haven't yet made a visualpython package. I > am running into compilation errors of the type > > ./core/util/gl_extensions.cpp:50:17: error: assigning to > 'PFNGLTEXIMAGE3DEXTPROC' (aka 'void (*)(GLenum, GLint, GLenum, GLsizei, > GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)') from > incompatible type 'void (GLenum, GLint, GLint, GLsizei, GLsizei, > GLsizei, GLint, GLenum, GLenum, const GLvoid *)': type mismatch at 3rd > parameter ('GLenum' (aka 'unsigned int') vs 'GLint' (aka 'int')) > glTexImage3D = ::glTexImage3D; > ^ ~~~~~~~~~~~~~~ > > There are lots of header files that might be responsible for such > incompatibilities, and I am not willing to spend hours chasing down such > errors. Finally, I did spend those hours and found a workaround. It turns out that there are two incompatible declarations of glTexImage3D floating around in the various OpenGL/gl.h or GL/glext.h headers. Apple changed the OpenGL/gl.h header between OSX 10.6 and 10.7 from one version to the other, and vpython is now mixing the two, which does not compile. Patching the definition of PFNGLTEXIMAGE3DEXTPROC in include/GL/glext.h allows visual to compile, and it runs OK. Version 5.74 is now in Fink. -- Martin |