Game Development Community

what requires changing for linux

by Conall McGarry · in Torque 3D Professional · 03/03/2011 (1:50 pm) · 4 replies

hey guys,

i just recently bought T3D, and other than game dev, my greatest interest would be programming - specifically in linux.
i'm quite pleased with the engine but sad to see no Linux support but i can see why there is none (i've searched the forums and read previous topics in regards to this).

now, by no means am i an expert programmer nor am i very experienced but i simply learn by doing and reading through the code albeit slowly, but i would love to try and port this to Linux as a hobby.
i'm totally prepared to fail but i'm sure i will learn a lot by doing this (most likely with X11 mesa etc).

now the reason i have posted this topic is to ask advice.
what files/classes etc are platform specific?
for example which files deal with input,graphics audio etc specifically for windows and/or OS X libraries.
basically which files/classes would i have to modify/create to add in support for linux?
any tips on which libraries i would need to integrate and where? or any tips in general?

i realise OS X is a different operating system, but from memory they've been using a BSD kernel am i correct?
if so is there any code that could be re-used when implementing?

thanks in advance

About the author

Recent Threads


#1
03/03/2011 (2:39 pm)
Check out Fyodor Osokin's T3D 1.1 Beta 3 Linux patch to get the dedicated server build working on Linux and with that you're pretty much half-way there to getting the game client working on Linux to. I am also working on getting Torque 3D fully operation for both game client and server on Linux. What needs to be done is primarily the GFX graphics subsystem of T3D needs to be modified to enable and use OpenGL on Linux builds, so that part I'm working on in my spare time.

There are a few header changes required in order to compile T3D with gcc-4.4 and newer such as on Debian 6.0 Squeeze, but I'll try to get those changes posted here later on tonight when I get my linux workstation plugged back into my KVM switch.

Also welcome to the garagegames and torque game development community. :)
#2
03/03/2011 (2:44 pm)
if you could post those changes that would be great thanks!
(i am currently using GCC-4.4 too, using arch linux)
if anybody else has any further tips or help please do post.
maybe this can also help other interested in the same thing.
#3
03/03/2011 (9:33 pm)
Here you go I finally got around to booting up my linux workstation and here is my patch file that you can apply to stock/vanilla Torque 3D 1.1 beta 3 files here: t3d1.1b3_modernLinuxFix-20110303.patch.

Now it won't make the T3D client working right away, that still isn't finished, but it will allow you to compile the dedicated server immediately though. You will have to follow Fyodor's resource for steps to build the dedicated server by first generating the build scripts and then building the executable and library using the makefiles thereafter.

Good luck and enjoy! :)
#4
03/04/2011 (9:56 am)
much appreciated thanks :)