Problems compiling Irrlicht under Debian 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
Spinland
Posts: 32
Joined: Fri May 14, 2010 1:06 pm
Location: Upstate NY, USA

Problems compiling Irrlicht under Debian Linux

Post by Spinland »

I'm trying to run the Makefile to compile Irrlicht 1.7.1 on a machine running Debian Linux. I am getting a ton of errors that seem to be related to GL stuff. Here are some examples:

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izl
ib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1  -c -o COpenGLDriver.o COpen
GLDriver.cpp
In file included from COpenGLDriver.h:25,
                 from COpenGLDriver.cpp:5:
COpenGLExtensionHandler.h:63:20: error: GL/gl.h: No such file or directory
COpenGLExtensionHandler.h:64:21: error: GL/glx.h: No such file or directory
In file included from COpenGLExtensionHandler.h:67,
                 from COpenGLDriver.h:25,
                 from COpenGLDriver.cpp:5:
glext.h:4491: error: typedef ‘PFNGLBLENDCOLORPROC’ is initialized (use __typeof__ instead)
glext.h:4491: error: ‘GLclampf’ was not declared in this scope
glext.h:4491: error: ‘GLclampf’ was not declared in this scope
glext.h:4491: error: ‘GLclampf’ was not declared in this scope
glext.h:4491: error: ‘GLclampf’ was not declared in this scope
glext.h:4492: error: typedef ‘PFNGLBLENDEQUATIONPROC’ is initialized (use __typeof__ instead
)
glext.h:4492: error: ‘GLenum’ was not declared in this scope
glext.h:4493: error: typedef ‘PFNGLDRAWRANGEELEMENTSPROC’ is initialized (use __typeof__ ins
tead)
glext.h:4493: error: ‘GLenum’ was not declared in this scope
glext.h:4493: error: ‘GLuint’ was not declared in this scope
glext.h:4493: error: ‘GLuint’ was not declared in this scope
glext.h:4493: error: ‘GLsizei’ was not declared in this scope
glext.h:4493: error: ‘GLenum’ was not declared in this scope
glext.h:4493: error: expected primary-expression before ‘const’
glext.h:4494: error: typedef ‘PFNGLTEXIMAGE3DPROC’ is initialized (use __typeof__ instead)
glext.h:4494: error: ‘GLenum’ was not declared in this scope
glext.h:4494: error: ‘GLint’ was not declared in this scope
glext.h:4494: error: ‘GLint’ was not declared in this scope
glext.h:4494: error: ‘GLsizei’ was not declared in this scope
glext.h:4494: error: ‘GLsizei’ was not declared in this scope
glext.h:4494: error: ‘GLsizei’ was not declared in this scope
glext.h:4494: error: ‘GLint’ was not declared in this scope
glext.h:4494: error: ‘GLenum’ was not declared in this scope
glext.h:4494: error: ‘GLenum’ was not declared in this scope
glext.h:4494: error: expected primary-expression before ‘const’
glext.h:4495: error: typedef ‘PFNGLTEXSUBIMAGE3DPROC’ is initialized (use __typeof__ instead
)
And later on they are coming from other locations:

Code: Select all

In file included from COpenGLDriver.h:25,

                 from COpenGLDriver.cpp:5:

COpenGLExtensionHandler.h:830: error: ‘GLfloat’ does not name a type

COpenGLExtensionHandler.h:832: error: ‘GLfloat’ does not name a type

COpenGLExtensionHandler.h:834: error: ‘GLfloat’ does not name a type

COpenGLExtensionHandler.h:836: error: ‘GLfloat’ does not name a type

COpenGLExtensionHandler.h:845: error: ‘GLenum’ has not been declared

COpenGLExtensionHandler.h:846: error: ‘GLenum’ has not been declared

COpenGLExtensionHandler.h:847: error: ‘GLint’ has not been declared

COpenGLExtensionHandler.h:847: error: ‘GLfloat’ has not been declared

COpenGLExtensionHandler.h:848: error: ‘GLint’ has not been declared

COpenGLExtensionHandler.h:848: error: expected ‘,’ or ‘...’ before ‘*’ token

COpenGLExtensionHandler.h:848: error: ISO C++ forbids declaration of ‘GLfloat’ with no type

COpenGLExtensionHandler.h:849: error: ‘GLenum’ has not been declared

COpenGLExtensionHandler.h:849: error: ‘GLenum’ has not been declared

COpenGLExtensionHandler.h:849: error: ‘GLint’ has not been declared

COpenGLExtensionHandler.h:849: error: ‘GLuint’ has not been declared

Any ideas why these are happening?

Thanks!
Spinland
Posts: 32
Joined: Fri May 14, 2010 1:06 pm
Location: Upstate NY, USA

Post by Spinland »

Okay, panicked too soon. Had to install a mesa glu package. Pressing on...
Scarabol
Posts: 167
Joined: Sat Jan 03, 2009 5:26 pm
Location: Aachen, Germany

Post by Scarabol »

Right thanks, had the same problem but this fixed my issue:

Code: Select all

sudo aptitude install libglu1-mesa-dev
if you don't have aptitude just try:

Code: Select all

sudo apt-get libglu1-mesa-dev
MfG
Scarabol
Irrlicht 1.7.2
Eclipse
Boost
Post Reply