Irrlicht compiling error on linux

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
SimonC
Posts: 2
Joined: Thu Jul 08, 2010 5:53 am

Irrlicht compiling error on linux

Post by SimonC »

Hi,

When I try to compile Irrlicht, it comes up with this compiler error:

Code: Select all

simon@simon-laptop:~/projects/irrlicht/irrlicht-1.7.1/source/Irrlicht$ make
<cut>
COpenGLExtensionHandler.h:1800: error: ‘GLenum’ was not declared in this scope
COpenGLExtensionHandler.h:1800: error: ‘GLint’ was not declared in this scope
COpenGLDriver.cpp:4098: error: expected ‘}’ at end of input
COpenGLDriver.cpp:4098: error: expected ‘}’ at end of input
make: *** [COpenGLDriver.o] Error 1
simon@simon-laptop:~/projects/irrlicht/irrlicht-1.7.1/source/Irrlicht$
Operating system: Ubuntu 9.10 Karmic Koala
GCC version: 4.4.1
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You need the OpenGL headers and libraries. Or disable OpenGL (which only leaves the SW renderers, maybe not the desired option).
SimonC
Posts: 2
Joined: Thu Jul 08, 2010 5:53 am

Post by SimonC »

Yay! It compiled fine now.
Thanks for the quick reply.

If anyone finds this by searching for the error, the packages I installed(on Ubuntu) are:
libgl1-mesa-dev
x11proto-xf86vidmode-dev
Post Reply