openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.9k stars 2.55k forks source link

GLEW header conflicts on OSX10.9+ #4110

Open joshuajnoble opened 9 years ago

joshuajnoble commented 9 years ago

Not sure whether this is really our problem to fix or just something to be aware of but building an application with the OSX 10.9+ SDK results in an error on the line 7359 in glew.h

typedef ptrdiff_t GLintptrARB;
typedef ptrdiff_t GLsizeiptrARB;

I see:

fatal error: typedef redefinition with different types ('ptrdiff_t' (aka 'int') vs 'intptr_t' (aka 'long')) typedef ptrdiff_t GLintptrARB;

The following patch (which will get released in a new version of GLFW soon I think) fixes it: https://github.com/glfw/glfw/commit/e7c7ebf6658963edbca3945c1732e0116798d8dd

bilderbuchi commented 9 years ago

According to the commit you linked, this fix has been released already in glfw 3.0.4 (you can tell by the tag indicators below the commit message)

bilderbuchi commented 9 years ago

won't fix on our end - we just need to upgrade glfw

bilderbuchi commented 9 years ago

wait, the apothecary formula says that we are already on 3.0.4 - are the compile libs up-to-date? @arturoc @tgfrerer

danoli3 commented 9 years ago

Looks like the 3.0.4 tag was there when @ofTheo compiled the OSX libs.

joshuajnoble commented 9 years ago

That patch fixes it for glfw but this is in glee.h, which is separate and wouldn't be updated with glfw releases. Confusing, I know.

Obligatory phone disclaimer

On Jul 21, 2015, at 00:41, Daniel Rosser notifications@github.com wrote:

Looks like the 3.0.4 tag was there when @ofTheo compiled the OSX libs.

— Reply to this email directly or view it on GitHub.

bilderbuchi commented 9 years ago

so, we are waiting for a new version of glew (https://github.com/nigels-com/glew), correct? 1.12-next, so to say.