glxext.h error when compiling in linux

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
n00b
Posts: 58
Joined: Tue Sep 05, 2006 3:00 pm
Location: Earth
Contact:

glxext.h error when compiling in linux

Post by n00b »

i get an error when recompiling irrlicht 1.2 in linux.
everything compiles fine until it gets to glxext.h
everything there is undeclared (e.g XID, Bool)

i'm using Ubuntu Dapper.
Hope someone can solve this...

Also, i had another problem before this. g++ can't find:
GL/gl.h and GL/glu.h
(which are included in COpenGLDriver.h)
so i copied these files from the GL folder from Dev-Cpp/include/ folder from windows. i'm not sure if this is the cause of the problem but it might be.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Better install OpenGL under Ubuntu. Something like xserver-opengl or the like. otherwise you won't get it to run (due to lack of OpenGL library which you cannot copy from somewhere else). If you don't find a hardware accelerated library for your gfx card you might use Mesa as a software solution (though having only around 2 FPS).
n00b
Posts: 58
Joined: Tue Sep 05, 2006 3:00 pm
Location: Earth
Contact:

Post by n00b »

i have the OpenGL libraries though...i think.
libGL.so
libGLU.so
aren't they the OpenGL libraries?
i just don't have the headers.

Btw, i can't find xserver-opengl or similar packages.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Then you need the devel package. With a different package system you could say 'rpm -qf /usr/lib/libGL.so' and add -devel to the package name to install. But just check aptitude for OpenGL and it shoudl tell you the package name.
Devan
Posts: 4
Joined: Mon Jan 29, 2007 7:29 am
Location: Vancouver, Canada

Post by Devan »

I'm using Ubuntu Edgy. I'm new to Irrlicht and just set up a project in KDevelop. I'm not compiling Irrlicht from source, but I did have to link in the OpenGL libraries like you.

I was able to do it with a -lGL and -lGLU on the g++ command line. I believe I've got Mesa installed. This page might be useful for you: http://ubuntuforums.org/showthread.php?t=17449

Good luck!
Post Reply