Page 1 of 1

Linux library?

Posted: Wed Jun 10, 2009 2:22 pm
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 :?

Posted: Wed Jun 10, 2009 4:03 pm
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)

Posted: Wed Jun 10, 2009 4:20 pm
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 ;-)

Posted: Wed Jun 10, 2009 5:06 pm
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?

Posted: Wed Jun 10, 2009 7:18 pm
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.

Posted: Thu Jun 11, 2009 11:45 am
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...

Posted: Thu Jun 11, 2009 12:26 pm
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

Posted: Thu Jun 11, 2009 7:04 pm
by CuteAlien
Note that you need to install libxxf86vm-dev and not just libxxf86vm1.