Removing Libraries
by Scott Doerrfeld · in Torque Game Engine · 11/27/2007 (10:30 am) · 4 replies
I'd like to pair down a version of Torque for Linux such that it doesn't require so many libraries (ex: libogg, libvorbis, freetype, libSDL, X11). Does anyone know how to do this?
About the author
#2
11/27/2007 (11:15 am)
The reason I am wanting to remove these libraries is for a special single-purpose executable for monitoring servers. Thus, there is no need for the aforementioned libraries. (I think???)
#3
And if you really do wanna run with torque, I guess it depends on what you actually want to do in terms of "monitoring servers":
Gary (-;
11/27/2007 (4:49 pm)
Wibble. If you simply want a single-purpose executable that monitors severs, why not just write a brand new executable from scratch?And if you really do wanna run with torque, I guess it depends on what you actually want to do in terms of "monitoring servers":
Quote:Thus, there is no need for the aforementioned librariesWell, if you want a graphical display written using torque, you'll need SDL, X11, freetype at the very least. Maybe you could dump sound, but torque isn't what you might consider "friendly" to chopping out major subsystems without substantial effort.
Gary (-;
#4
I'm running a special build of Torque on a server (a-la dedicated mode) - that does exactly what you say - monitors servers. And I HAD to install there the sdl/x11, though I'm running linux in "init 3" only.
I can understand what/why you would need it.
I'm heavily using many Torque-core stuff on this monitoring server (like networking), and writing own application for this purposes will be... lots of work. I believe modifying Torque would be more easier, though not "easy" at all. (And yes, you can use TNL he, but that's another story)
I'm fine with current status for me - as I'm running my own (hardware) servers, and I'm setting up OS by myself (it's openSUSE 10.2).
If you want to run it on "hosting server" - good luck, you will definitely need it.
12/02/2007 (5:56 am)
Cutting off the sound is one of the "easiest" comparing to the graphical sub-system / SDL.I'm running a special build of Torque on a server (a-la dedicated mode) - that does exactly what you say - monitors servers. And I HAD to install there the sdl/x11, though I'm running linux in "init 3" only.
I can understand what/why you would need it.
I'm heavily using many Torque-core stuff on this monitoring server (like networking), and writing own application for this purposes will be... lots of work. I believe modifying Torque would be more easier, though not "easy" at all. (And yes, you can use TNL he, but that's another story)
I'm fine with current status for me - as I'm running my own (hardware) servers, and I'm setting up OS by myself (it's openSUSE 10.2).
If you want to run it on "hosting server" - good luck, you will definitely need it.
Torque Owner Gary "ChunkyKs" Briggs
I don't mean that in a negative way, it's just not something that you really need to. If you want to reduce external dependencies, then you can link statically against them - a lot of them are LGPL, so you'll need to provide a dynamically linked version aswell to keep within the license.
Going on your examples; torque uses ogg and vorbis for sound, if your game wants sound, you want to link with them. You can also Link against those two statically without issue.
freetype and X11 are ... well, it's reasonable to expect those two on any system you'd want to run an X11 game on. No X11 == no graphical game.
SDL also is a reasonable one to expect people to install themselves. That one is LGPL, so you will need to provide a dynamically linked flavor, but it's not unreasonable just to drop a libSDL-whatever.so in your game dir, set LD_LIBRARY_PATH, and simply refuse to provide support if people aren't using your libraries.
Gary (-;