|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [FIXED] X11 GLCtrl broken again ?
[FIXED] X11 GLCtrl broken again ? [message #28306] |
Thu, 26 August 2010 23:10  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Today (but it's about 2 weeks I don't try it...) GLCtrl don't compile anymore on my Ubuntu 10.04.
The problem is a 'typedef Status' inside GL/glx.h which clashes with Upp::Status.
I really wonder why those X11 + OpenGL people don't enclose their stuffs in a namespace.....
Max
Easy solution would be, in DrawX11.h :
#ifdef PLATFORM_X11
#define Time XTime
#define Font XFont
#define Display XDisplay
#define Picture XPicture
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xft/Xft.h>
#include <X11/extensions/Xrender.h>
#include <GL/gl.h> <--------
#include <GL/glu.h> <-------- HERE
#include <GL/glx.h> <--------
#undef Picture
#undef Time
#undef Font
#undef Display
But I guess we don't want opengl dependency if not used....
[Updated on: Mon, 30 August 2010 15:19] Report message to a moderator
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 19:32:58 CEST 2025
Total time taken to generate the page: 0.00742 seconds
|
|
|