Game Development Community

Linux install/compile walkthrough

by Michael Rowley · in Torque Game Engine · 10/27/2002 (1:47 pm) · 27 replies

Here is my step by step walkthrough for installing the complete TGE on Linux. I used Redhat 8.0.
I will try to be as detailed and straight to the point as i can. So here we go......

CHECKING AND INSTALLING NASM and SDL
1)Check for NASM and SDL (both come stock with redhat 8.0) configured properly for torqe. to check for them type
rpm -q nasm
rpm -q sdl
so if you don't have them use the package manager and isntall them.

GETTING OPENAL
1) cd /usr/local/
2)go here and get it follow the instructions
http://www.openal.org/downloads/
and move it to /usr/local and untar it.
3)cd openal
4)cd linux
5)./configure
6) make
7) make install

GETTING AND INSTALLING MESA
1) go here and get it.
http://prdownloads.sourceforge.net/mesa3d/MesaLib-4.0.4.tar.gz?download
and move it to /usr/local and untar it.
3) cd Mesa-4.0.4
4)./configure --enable-static
5) make
6) make install

GETTING TGE:
1) make a directory called projects/torque
2) cd projects/torque
3)get the current head TGE via CVS here
http://www.garagegames.com/docs/torque.sdk/gstarted/cvs.unix.html#login
4) cd torque (if your not already there)
5)type make -f mk/configure.mk OS=LINUX COMPILER=GCC2 BUILD=DEBUG (press enter)
6) type make get some coffee and relax wont be long now...

FIXING THE SOUND:
1) cd /etc/
2) edit the ld.so.conf file
and add this below the other entries.
/usr/local/lib

3)type ldconfig (press enter)

GETTING NVIDIA:
go to nvidas site and install the GLX drivers they make tge fly.
And enjoy yourself.

Mick
Page «Previous 1 2
#1
10/27/2002 (3:19 pm)
This documentation is helpful, but I'm curious as to why you needed it. There is an good deal of information on unix setup here:

www.garagegames.com/docs/torque.sdk/gstarted/compilers.unix.html

Was that documentation inadequate, or did you just not know about it or...? If the doc is bad in some way, I want to revise it.
#2
10/28/2002 (7:59 am)
the documentaion on that link was great. I only ran into a few links that were dated. It appears they are good links now. one in particular was the openal link i had to follow link after link to get to the openal site. but thats all fixed....If it wasnt for that walk through of yours i wouldn't have got it up and runnin =)
ps: it was only the system requirement links. but they are fixed now.
#3
02/09/2003 (7:18 pm)
I'm working on an unofficial manual for the TGE, typestting it in Quark. Can I add this wlakthrough to the Appendix. With proper credit of course.
#4
02/16/2003 (3:42 pm)
JohnQ,

Your compiler setup on the site is good, the only thing I would add is information relating to a 'good' NASM to use (98.34 works), the one in the stock debian 3.0 (woody) fails on the texture blending code.


regards,

brad
#5
02/16/2003 (3:57 pm)
I will add that note about nasm the next time I updated the docs (which hopefully will be soon, since they are out of date.)
#6
12/15/2006 (12:32 pm)
Thanks michael. I almost thought I had it working. I using version 1.4 and 1.5 and I couldn't get either of them to work. I used add/remove programs in fedora core to add mesa, openal, nasm, and sdl. I checked all the boxes that had their names listed first. Everything seemed to work until I typed make. I was running for a while and gave me error 1 for 1.5 and error 2 for 1.4. Do you know why? I'm a student and I want to use TGE to program games for my self directed course.
#7
12/15/2006 (2:14 pm)
You should provide the first error you get.
the rest are not valuable at all.

I dont know what Error 1 is.

I dont feel like scanning the doc to see it, if you want help simply provide the exact error.
but only the first one.
#8
12/15/2006 (2:18 pm)
Explaining the problem in the form of a haiku will of course get you extra points.
#9
12/15/2006 (2:59 pm)
Thanks michael. I almost thought I had it working. I using version 1.4 and 1.5 and I couldn't get either of them to work. I used add/remove programs in fedora core to add mesa, openal, nasm, and sdl. I checked all the boxes that had their names listed first. Everything seemed to work until I typed make. I was running for a while and gave me error 1 for 1.5 and error 2 for 1.4. Do you know why? I'm a student and I want to use TGE to program games for my self directed course.
#10
12/15/2006 (3:02 pm)
Lol Brian,
you refreshed and reposted the old data.
without a followup on the questions asked of you.

kinda crazy no?
#11
12/15/2006 (4:36 pm)
Hello,
I don't know how I reposted a blank screen because I don't remember doing that. I guess I may have done it by mistake. Well, here is the error I was getting. It's a lot longer than this but this is what I get when I run make a second time.

[root@localhost TorqueGameEngineSDK-Linux-1-4-2]# make
--> Compiling collision/convexBrush.cc
'-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
In file included from ./interior/interiorMapRes.h:9,
from ./collision/convexBrush.h:12,
from collision/convexBrush.cc:1:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
./collision/optimizedPolyList.h:37: error: extra qualification 'OptimizedPolyList::Poly::' on member 'Poly'
./platform/event.h:128: warning: invalid access to non-static data member 'PacketReceiveEvent::data' of NULL object
./platform/event.h:128: warning: (perhaps the 'offsetof' macro was used incorrectly)
./platform/event.h:130: warning: invalid access to non-static data member 'ConnectedReceiveEvent::data' of NULL object
./platform/event.h:130: warning: (perhaps the 'offsetof' macro was used incorrectly)
./platform/event.h:132: warning: invalid access to non-static data member 'ConsoleEvent::data' of NULL object
./platform/event.h:132: warning: (perhaps the 'offsetof' macro was used incorrectly)
make[1]: *** [out.GCC3.DEBUG/collision/convexBrush.obj] Error 1
make: *** [default] Error 2
[root@localhost TorqueGameEngineSDK-Linux-1-4-2]# ./torqueDemo_DEBUG.exe
bash: ./torqueDemo_DEBUG.exe: No such file or directory
[root@localhost TorqueGameEngineSDK-Linux-1-4-2]# dir
bin engine example lib Makefile mk ReadMe.html tools vc6 vc7 VS2005 xcode
#12
12/15/2006 (5:11 pm)
All those things that are
Quote:error: extra qualification 'Something::Somethingelse::' on member 'SomethingElse'
are because there is stuff like this in the headers:

Class Something {
Something::Something();
Something::~Something();
void Something::SomethingElse();
};

In other words, there are several class definitions where the class name has been prefixed on the member or function name, inside of the class definition [which is either broken, or leads to a broken namespace, depending on your opinion, compiler and general outlook on C++ syntax].

To fix this, just remove the spurious classname:: prefix on functions.

Your specific error:
./collision/optimizedPolyList.h:37: error: extra qualification 'OptimizedPolyList::Poly::' on member 'Poly'

open optimizedPolyList.h and edit line 37, removing the "OptimizedPolyList::" prefix. So the function will just be a prototype for Poly() inside of the OptimisedPolyList class definition

Gary (-;
#13
03/13/2007 (6:53 pm)
Ahhh. I just had this same issue. I'm glad I found this post. :)
#14
03/16/2007 (1:38 pm)
The Torque SDK documentation states that the "dedicated server build only requires NASM and a functional compiler". However, I am getting these errors when I try to 'make dedicated' for Torque 1.5 in Fedora Core 4:

--> Compiling lpng/png.c
/bin/sh: freetype-config: command not found
--> Compiling lpng/pngerror.c
/bin/sh: freetype-config: command not found
--> Compiling lpng/pnggccrd.c
/bin/sh: freetype-config: command not found
.
.
.
/bin/sh: g++: command not found
make[1]: *** [out.GCC4.RELEASE/audio/audio.obj] Error 127
make: *** [dedicated] Error 2


So yeah...not getting very far with the instructions given. Can anyone give me a clue? Installing OpenAL and SDL didn't make any difference, but those shouldn't even be needed for a dedicated server, right?
#15
03/16/2007 (1:48 pm)
Also strange is how after I install SDL, I get a not found with 'rpm -q sdl'.

(Note: This is my first day with Linux.)
#16
03/16/2007 (2:19 pm)
Hi,

:. I am using Mandriva PowerPack 2007. Check for freetype-devel, which is the package that contains freetype-config. Also, try to install the DEVEL complement for each package needed for compiling Torque. On my machine:

[b]# rpm -qa | grep freetype[/b]
libfreetype6-devel-2.2.1-4mdv2007.0
freetype-tools-1.3.1-24mdk
freetype-1.3.1-24mdk
libfreetype6-2.2.1-4mdv2007.0
[b]# rpm -qa | grep gcc[/b]
gcc-4.1.1-3mdk
libgcc1-4.1.1-3mdk
gcc-c++-4.1.1-3mdk  // g++
gcc-cpp-4.1.1-3mdk
[b]# rpm -qa | grep SDL[/b]
libSDL1.2-devel-1.2.11-3mdv2007.0
libSDL1.2-1.2.11-3mdv2007.0
libSDL_image1.2-1.2.5-1mdv2007.0
[b]# rpm -qa | grep png[/b]
libpng3-1.2.12-2mdv2007.0
libpng3-devel-1.2.12-2mdv2007.0

Cheers.
#17
03/16/2007 (2:35 pm)
Here is my output on those commands:

[scott@localhost TorqueSDK]$ rpm -qa | grep freetype
freetype-2.1.9-2
[scott@localhost TorqueSDK]$ rpm -qa | grep gcc     
libgcc-4.0.2-8.fc4
gcc-4.0.2-8.fc4
[scott@localhost TorqueSDK]$ rpm -qa | grep sdl
[scott@localhost TorqueSDK]$ rpm -qa | grep png
libpng-1.2.8-2
#18
03/16/2007 (3:10 pm)
Case sensitivity might be a problem. Try adding a -i to all those greps.

Also, "yum install SDL" instead of "yum install sdl" might work.

Gary (-;
#19
03/16/2007 (6:14 pm)
:. In my opinion you should get the remaining packages, as I listed before. Also, look closely my previous forum entry, SDL is in capital letters. Use the same command you have used to install all other RPM files on your own system. Usually:
[b]# rpm -ivh [i]libfreetype6-devel...rpm[/i][/b]

:. Mandriva 2007 has a program called URPMI that searchs and installs packages, so in my system I just type:
# [b]urpmi libfreetype6-devel[/b] #  *** Must be executed as ROOT ***
The package(s) are already installed
#20
03/19/2007 (10:32 am)
Been making some progress. Made it here:

.
.
.
--> Compiling platform/platformNetAsync.cc
--> Compiling platformX86UNIX/x86UNIXCPUInfo.cc
--> Compiling platformX86UNIX/x86UNIXConsole.cc
--> Compiling platformX86UNIX/x86UNIXDedicatedStub.cc
In file included from platformX86UNIX/x86UNIXDedicatedStub.cc:16:
./platformX86UNIX/x86UNIXFont.h:14:22: error: X11/Xlib.h: No such file or directory
./platformX86UNIX/x86UNIXFont.h:15:23: error: X11/Xutil.h: No such file or directory
./platformX86UNIX/x86UNIXFont.h:16:21: error: X11/Xos.h: No such file or directory
./platformX86UNIX/x86UNIXFont.h:17:23: error: X11/Xatom.h: No such file or directory
make[1]: *** [out.GCC4.RELEASE/platformX86UNIX/x86UNIXDedicatedStub.obj] Error 1
make: *** [dedicated] Error 2

Any suggestions?
Page «Previous 1 2