funny that i just came across, what i guess, is the same problem. it happened to me when i replaced the glx.h headers installed by Mesa with the ones that come with the Nvidia drivers.
the "solution" I found, was to delete the "#include Xmd.h " line from the glx.h header. not sure this was brilliant, but it allowed xmame.xgl to compile. i've heard of people having this same problem compiling kdeartwork (i think). i'd guess nvidia needs to fix it, but i'm not sure. sam ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 3:33 AM Subject: [Xmame] Compile issue with GL enabled, XF86 4.2.0 > src/unix/osd_cpu.h defines a number of typedefs that conflict with ones in > X11/Xmd.h, namely INT8, INT16, and INT32. This results in the compile > blowing up, complaining about them being defined previously in any file > that includes Xmd.h -- which is everything that uses glmame.h or gltool.h > > The xmame header has a #define it looks for to not define those, but there > are a couple of problems with it: > > 1: it's only defined in src/unix/video-drivers/xgl.c, and there are > several other files that need it. > > 2: if you define it, there are other headers that need those typedefs that > are included before Xmd.h, so all the files that blew up before work, > but now all the files that didn't blow up before do now... > > I've attached a particularly ugly hack diff that will fix the problem, but > it'll probably cause problems if Xmd.h isn't availiable. > > Someone a bit more familiar can probably clean this up a bit. Two > solutions come to mind, either clean what I've attached up a bit (I think > I missed an #if xgl / #endif on one of the blocks...) or change the > typedefs in osd_cpu.h to not conflict with what's in Xmd.h. > > I'm not subscribed to the list, so I won't see any followups... > > John Allensworth --- [EMAIL PROTECTED] -- Reaperman/ReaperSMS > Author of XtraWeapons (except the homing missile, eject, and throwing axe) > Stanknes forever > Real Programmers think better when playing Adventure or Rogue. > _______________________________________________ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
