Linux library?

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
Lupinius
Posts: 11
Joined: Thu Apr 30, 2009 8:50 pm
Location: Emden, Germany

Linux library?

Post by Lupinius »

Is there any precompiled irrLicht library for linux? There is none in the version you can download, and I'm too stupid to compile it myself :?
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

if you do not manage to compile irrlicht for linux, then maybe linux is not for you.

usually one just types "make" in the project dir (where the makefile is)
CuteAlien
Admin
Posts: 9935
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

2 steps to compile:

1. Add all the necessary dev libraries. I think there is some help for that in the wiki.
2. Go into the source/Irrlicht folder and type: make

If you got any errors afterwards just ask again. You have to learn compiling anyway if you want to be a coder, so just see it as an excercise ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Lupinius
Posts: 11
Joined: Thu Apr 30, 2009 8:50 pm
Location: Emden, Germany

Post by Lupinius »

OK, the compiling worked after I knew whcih packages I had to install, but now my compiler is throwing a crazy amount of errors like

Code: Select all

/home/eric/Programmieren/c/irrlicht-1.5/source/Irrlicht/COpenGLExtensionHandler.cpp:420: undefined reference to `glGetError'
What am I doing wrong?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Please use the Makefiles from one of the examples, as they contain all necessary include and linker setup.
Just to hint you to the correct place: You forgot to link in OpenGL.
Lupinius
Posts: 11
Joined: Thu Apr 30, 2009 8:50 pm
Location: Emden, Germany

Post by Lupinius »

Can I get another hint?
After setting up OpenGL I get other errors:

Code: Select all

/home/eric/Programmieren/c/irrlicht-1.5/source/Irrlicht/CIrrDeviceLinux.cpp:1088: undefined reference to `XF86VidModeQueryExtension'
I already tried the things described here

Sorry for all the questions, but I seem to have problems with linux...
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

well, it seems the libxxf86 is not correctly installed, or at least the header files are not accessible. verify the steps in the wiki, also the updated link under the libxxf86 installation
CuteAlien
Admin
Posts: 9935
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Note that you need to install libxxf86vm-dev and not just libxxf86vm1.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply