From: Bruce S. <Bru...@nc...> - 2012-08-17 04:14:47
|
Thanks much, Martin. What would be the most useful link to your version to place on the vpython.org Mac download page? Bruce Sherwood On Thu, Aug 16, 2012 at 6:27 PM, Martin Costabel <cos...@wa...> wrote: > 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 > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |