Scary Linux Irrlicit Compile Problems

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
ioannes
Posts: 5
Joined: Sun Feb 18, 2007 3:41 pm

Scary Linux Irrlicit Compile Problems

Post by ioannes »

Hey guys. I've recently thought I'd give illicit a go to prototype a game idea I have had. I'm a debian linux user and I really want my work to be cross platform which is why I liked the look of illicit. Problem is I can't even get the illicit lib to compile I keep getting lots of errors from the COpenGLDriver.cpp file. Thing is all I have done is unzip the engine and try a make as the instructions said. I haven't even got as far as putting my own code in it yet. Below is an exert on some of the errors there are lots more but I didn't want to post too much.
COpenGLDriver.cpp: In member function ‘virtual void irr::video::COpenGLDriver::s etAmbientLight(const irr::video::SColorf&)’:
COpenGLDriver.cpp:1957: error: ‘GLfloat’ was not declared in this scope
COpenGLDriver.cpp:1957: error: expected `;' before ‘data’
COpenGLDriver.cpp:1958: error: ‘GL_LIGHT_MODEL_AMBIENT’ was not declared in this scope
COpenGLDriver.cpp:1958: error: ‘data’ was not declared in this scope
COpenGLDriver.cpp:1958: error: ‘glLightModelfv’ was not declared in this scope
COpenGLDriver.cpp: In member function ‘virtual void irr::video::COpenGLDriver::s etViewPort(const irr::core::rect<int>&)’:
COpenGLDriver.cpp:1973: error: ‘glViewport’ was not declared in this scope
COpenGLDriver.cpp: In member function ‘virtual void irr::video::COpenGLDriver::d rawStencilShadowVolume(const irr::core::vector3df*, irr::s32, bool)’:
COpenGLDriver.cpp:1995: error: ‘GL_COLOR_BUFFER_BIT’ was not declared in this sc ope
COpenGLDriver.cpp:1995: error: ‘GL_DEPTH_BUFFER_BIT’ was not declared in this sc ope
COpenGLDriver.cpp:1995: error: ‘GL_ENABLE_BIT’ was not declared in this scope
COpenGLDriver.cpp:1996: error: ‘GL_POLYGON_BIT’ was not declared in this scope
COpenGLDriver.cpp:1996: error: ‘GL_STENCIL_BUFFER_BIT’ was not declared in this scope
COpenGLDriver.cpp:1996: error: ‘glPushAttrib’ was not declared in this scope
COpenGLDriver.cpp:1998: error: ‘GL_LIGHTING’ was not declared in this scope
COpenGLDriver.cpp:1998: error: ‘glDisable’ was not declared in this scope
COpenGLDriver.cpp:1999: error: ‘GL_FOG’ was not declared in this scope
COpenGLDriver.cpp:2000: error: ‘GL_FALSE’ was not declared in this scope
COpenGLDriver.cpp:2000: error: ‘glDepthMask’ was not declared in this scope
COpenGLDriver.cpp:2001: error: ‘GL_LEQUAL’ was not declared in this scope
COpenGLDriver.cpp:2001: error: ‘glDepthFunc’ was not declared in this scope
COpenGLDriver.cpp:2002: error: ‘glColorMask’ was not declared in this scope
COpenGLDriver.cpp:2003: error: ‘GL_STENCIL_TEST’ was not declared in this scope
COpenGLDriver.cpp:2003: error: ‘glEnable’ was not declared in this scope
COpenGLDriver.cpp:2004: error: ‘GL_ALWAYS’ was not declared in this scope
COpenGLDriver.cpp:2004: error: ‘glStencilFunc’ was not declared in this scope
COpenGLDriver.cpp:2005: error: ‘GL_CULL_FACE’ was not declared in this scope
COpenGLDriver.cpp:2007: error: ‘GL_VERTEX_ARRAY’ was not declared in this scope
COpenGLDriver.cpp:2007: error: ‘glEnableClientState’ was not declared in this sc ope
As for my debian distro I am using Debian ETCH AMD64 and this is the first time I've had any compile problems with it. My GCC is version 4.1

If anyone could help it would be much appreciated.

Thanks
Robert Y.
Posts: 212
Joined: Sun Jan 28, 2007 11:23 pm

Post by Robert Y. »

Are you sure you are on the right forum? This is the IRRLICHT community :lol:

I'm no *nix expert, but have you set the right directories (i.e. include and lib) ?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

i think you need to install the opengl developer stuff, free86-gl-devel or something. i'm not really a *nix guy myself but I remember someone complaining about a similar problem
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The compiler should have complained about not finding gl.h include file before. You have to install the proper OpenGL package. Either one which fits your gfx card (for hardware acceleration) or the software implementation Mesa.
ioannes
Posts: 5
Joined: Sun Feb 18, 2007 3:41 pm

Thanks

Post by ioannes »

Whoops god I feel blonde. First I get the engine name wrong then I don't even realize I'm missing the opengl developer package.

Right I've had a look you also may need the libxxf86vm-dev package. I installed quite a few opengl related packages before it would compile.

Thats done now I'll need to try compiling an example program.

Thanks for your help
Post Reply