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
[SOLVED] compile irrlicht for running as server application
[SOLVED] compile irrlicht for running as server application
Last edited by r5ive on Tue Nov 17, 2009 1:04 pm, edited 1 time in total.
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: compile irrlicht for running as server application
Have a look at IrrCompileConfig.h in the include folder.r5ive wrote:is it possible the compile the irrlicht engine without any graphical stuff like directx, opengl or X?
"Whoops..."
Please take a look at IrrCompileConfig.h
You can enable/disable stuff like OpenGL in there.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.