Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How about vfw.h, alibrary for video application in windows?
Next Topic: Web CGI
Goto Forum:
  


Current Time: Thu Apr 25 03:41:50 CEST 2024

Total time taken to generate the page: 0.03714 seconds