[SOLVED] compile irrlicht for running as server application

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
r5ive
Posts: 20
Joined: Wed Jun 18, 2008 5:42 pm
Location: Berlin

[SOLVED] compile irrlicht for running as server application

Post 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
Last edited by r5ive on Tue Nov 17, 2009 1:04 pm, edited 1 time in total.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: compile irrlicht for running as server application

Post 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.
"Whoops..."
CuteAlien
Admin
Posts: 9721
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Please take a look at IrrCompileConfig.h
You can enable/disable stuff like OpenGL in there.
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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
r5ive
Posts: 20
Joined: Wed Jun 18, 2008 5:42 pm
Location: Berlin

Post by r5ive »

ah yes!

thank you all. that helps me pretty much.

kind regards
r5ive
Post Reply