Page 1 of 1

[SOLVED] compile irrlicht for running as server application

Posted: Tue Nov 17, 2009 12:29 pm
by r5ive
hi,

introduction
i need to run the irrlicht engine on a root server which doesnt need any graphical output at all. it is for interpolation and collision detection purposes in an online game.

problem
compiling the engine as well as an example wasnt hard. but still it compiles lots of graphical stuff like opengl or X (-lGL -lXxf86vm -lXext -lX11). removing these parameters causes undefined references.

question
is it possible to compile the irrlicht engine without any graphical stuff like directx, opengl or X? or is there a parameter when compiling an example like "-noOpenGL"?

thank you in advance
r5ive

Re: compile irrlicht for running as server application

Posted: Tue Nov 17, 2009 12:55 pm
by randomMesh
r5ive wrote:is it possible the compile the irrlicht engine without any graphical stuff like directx, opengl or X?
Have a look at IrrCompileConfig.h in the include folder.

Posted: Tue Nov 17, 2009 12:56 pm
by CuteAlien
Please take a look at IrrCompileConfig.h
You can enable/disable stuff like OpenGL in there.

Posted: Tue Nov 17, 2009 12:56 pm
by hybrid
You can undefine the compile_with_x11 in IrrCompileConfig.h, and simply use the console device. This would even allow for the software drivers to be used to display things, but it can also be used headless. The examples' Makefiles don't have a switch to remove the linker flags, simply remove them manually from the Makefile.

Posted: Tue Nov 17, 2009 1:03 pm
by r5ive
ah yes!

thank you all. that helps me pretty much.

kind regards
r5ive