|Summary:||GLhandleARB redefined in gltypes.h on osx|
|Product:||[JogAmp] Jocl||Reporter:||Jeffrey Kuhn <drjrkuhn>|
|Component:||opencl||Assignee:||Wade Walker <wwalker3>|
|Attachments:||Patch file for /jocl/make/stub_includes/GL3/gl3.h|
Description Jeffrey Kuhn 2015-06-30 18:06:28 CEST
Comment 1 Wade Walker 2015-06-30 19:30:05 CEST
Sounds good, I'll check into why this doesn't work on Yosemite. We do nightly builds for Mac, but I think it's using a slightly older version of the OS, so maybe this recently changed.
Comment 2 Wade Walker 2015-07-04 20:54:01 CEST
Confirmed this bug on Mac OS X 10.10.4 with the latest JOCL code compiled under Java 1.8.0_45. It looks like others have run into this problem as well (e.g. GLEW, described at http://sourceforge.net/p/glew/bugs/206/). Checking to see if Jeff's proposed solution will work on older versions of OS X.
Comment 3 Wade Walker 2015-07-05 16:30:43 CEST
OK, it looks like Khronos fixed it just the way Jeff suggested: https://www.khronos.org/bugzilla/show_bug.cgi?id=762 After Atlassian reported it to them: https://bitbucket.org/alfonse/glloadgen/issue/33/mac-compilation-error So I'll add the same text that you see in https://www.opengl.org/registry/api/GL/glext.h: #ifdef __APPLE__ typedef void *GLhandleARB; #else typedef unsigned int GLhandleARB; #endif
Comment 4 Wade Walker 2015-07-05 17:35:15 CEST
Resolved in commit 5a5a23a533df0ec5f47f94a7bda901e703b25040