PDA

View Full Version : Cannot compile with new mesa release



jreidinger
09-24-2012, 11:50 AM
Hi guys,
I maintain clanlib library for opensuse. With the latest mesa release we cannot compile clanlib. Reason is that mesa include definition of GL_TYPE - http://cgit.freedesktop.org/mesa/mesa/tree/include/GL/glext.h#n3004 . This collide with GL_TYPE usage in enum in GL1/opengl1_defines.h . We now temporary fix it with undefine GL_TYPE patch in top of opengl1_defines.h, but I am not happy with it. Problem is also that these two values differs, so change it any way is really problematic. I think it needs to be somehow fixed, otherwise I am sure other distribution and users hit same issue. Also if you have idea how to fix it, I will happily change our temporary fix for it.

rombust
09-27-2012, 01:51 PM
That is odd.

I guess that the define for GL_TYPE changed many years ago.

Only clanGL1 has this problem (which is never updated).
clanGL is correct (since it is regularly updated)

Anyway. It is safe to simply remove GL_TYPE from opengl1_defines.h (and the GL_OBJECT_TYPE).
ClanLib does not use it.

For ClanLib 2.4 (SVN), ideally the "opengl1_defines.h" should be removed from the API. Nobody should be using raw opengl from 15 years ago!

rombust
12-12-2012, 01:02 PM
Now fixed in ClanLib 2.3 SVN. Sorry for the delay