Game Development Community

1st time Debian install failed

by Steven Peterson · in Torque Game Engine · 07/21/2005 (10:38 am) · 6 replies

Ok i'm just bought the Torque engine and tried installing it last night. I followed these instructions: http://www.garagegames.com/docs/tge/general/apbs04.php and installed teh SDL OpenAL and Messa using debian apt-get packages.


make -f mk/configure.mk OS=LINUX COMPILER=GCC3 BUILD=DEBUG
seems to work fine and returns 'Valid'

then i get a minute or so into running 'Make' and it bombs out. There was some error about an audio somthing - i didn't know what it was talking about. I am using older (pentium III era) 'onboard' audio (from dell...), but it works fine for MP3's and stuff. At this point i'm not really concerned about sound anyways.

I don't have the exact error in front of me, i'll post it tonight, but has anyone heard of problems installing on debian b4? Where might I look for more help/documentation for troubleshooting the installation?


thanks all for the help,
Raven

ps. no wise cracks about the dell, i got it for free; And my other 'puters in drydock for power-mgt issues :'-(

#1
07/21/2005 (2:07 pm)
If this can help you, when I tryed to compile Torque with Dev-C++'s gcc I noticed a similar error, I then looked at the build files and noticed gcc modded them, adding a \ (or /, I don't remember) before almost every line.
Maybe removing that and redoing the build without using make clean or using just make (without any parameters) should work.
I was almost at the point of getting it, but under Windows I got some "wrong architecture" errors. Maybe you could be better luck with Linux.

Bye, Thc.
#2
07/21/2005 (3:00 pm)
@Raven: Please could you give a little more details than "audio something or other"?

And a slash prefix on every line, of etiher sort, sounds like somethign that would break about a million things...

Gary (-;
#3
07/21/2005 (6:05 pm)
Ok here's the console output. but first a story.

The first time i ran "make config.......&& make" last night it complained about not having mesa so i installed it along with openAL and SDL from debian unstable packages.

Remember I'm using legacy nvidia-glx drivers that were quite a challenge to configure. nvidia-glx depends on libglu(?) and one other library that mesa3g doesn't like. SO installing mesa last night took out my video drivers, which made booting when i got home from work "problematic"... I fixed my vid card by allowing it to remove mesa to reinstall nvidia-glx and 2 missing dependencies.

Surprisingly when I run make && make now it doesn't complain about messa. Wierd. SO here's complete current console output from make && make.

Thanks again for looking,
Raven

debian:/opt/Torque# make -f mk/configure.mk OS=LINUX COMPILER=GCC3 BUILD=DEBUG

Current Configuration: this config is VALID
OS: LINUX
COMPILER: GCC3
BUILD: DEBUG
DIR.OBJ: out

To change the current configuration type:

make -f mk/configure.mk {arguments, ...}

required arguments:
OS={WIN32 BEOS LINUX OpenBSD FreeBSD Solaris}
COMPILER={CW6 VC6 GCC2 GCC3}
BUILD={DEBUG RELEASE}

optional arguments:
DIR.OBJ={path to store intermediate obj files}

Note: all arguments are case sensitive.
debian:/opt/Torque#

debian:/opt/Torque# make
--> Compiling audio/audio.cc
'-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
./core/resManager.h: In member function 'void Resource::unlock()':
./core/resManager.h:255: error: invalid use of undefined type 'struct ResManager'
./core/resManager.h:38: error: forward declaration of 'struct ResManager'
./core/resManager.h: In member function 'void Resource::purge()':
./core/resManager.h:263: error: invalid use of undefined type 'struct ResManager'
./core/resManager.h:38: error: forward declaration of 'struct ResManager'
./core/resManager.h:265: error: invalid use of undefined type 'struct ResManager'
./core/resManager.h:38: error: forward declaration of 'struct ResManager'
./core/resManager.h: In member function 'void Resource::_unlock()':
./core/resManager.h:278: error: invalid use of undefined type 'struct ResManager'
./core/resManager.h:38: error: forward declaration of 'struct ResManager'
./platform/event.h: At global scope:
./platform/event.h:137: error: a cast to a type other than an integral or enumeration type cannot appear in a constant-expression
./platform/event.h:137: error: '->' cannot appear in a constant-expression
./platform/event.h:137: error: '&' cannot appear in a constant-expression
./platform/event.h:140: error: a cast to a type other than an integral or enumeration type cannot appear in a constant-expression
./platform/event.h:140: error: '->' cannot appear in a constant-expression
./platform/event.h:140: error: '&' cannot appear in a constant-expression
./platform/event.h:143: error: a cast to a type other than an integral or enumeration type cannot appear in a constant-expression
./platform/event.h:143: error: '->' cannot appear in a constant-expression
./platform/event.h:143: error: '&' cannot appear in a constant-expression
audio/audio.cc: In function 'int loopingImageSort(const void*, const void*)':
audio/audio.cc:161: warning: converting to 'int' from 'float'
audio/audio.cc: In function 'int streamingSourceSort(const void*, const void*)':
audio/audio.cc:193: warning: converting to 'int' from 'float'
audio/audio.cc: In function 'AUDIOHANDLE alxCreateSource(const Audio::Description*, const char*, const MatrixF*, AudioSampleEnvironment*)':
audio/audio.cc:707: warning: converting to non-pointer type 'ALuint' from NULL
audio/audio.cc: In function 'ALuint alxGetWaveLen(ALuint)':
audio/audio.cc:2092: warning: converting to 'ALuint' from 'F64'
make[1]: *** [out.GCC3.DEBUG/audio/audio.obj] Error 1
make: *** [default] Error 2
debian:/opt/Torque#
#4
07/22/2005 (10:51 am)
OK.
1) If you have an nvidia card, just install the nvidia drivers from their website. They're closed source, but they work great. You don't need mesa in addition to them. And they'll include just about all the gl voodoo you need.
2) Try just searching the forums for those errors. Lots of people have have those problems, and they've been solved lots of times.

Gary (-;
#5
07/22/2005 (12:24 pm)
And as an additional note it's a slight pain to install nvidia drivers on debian - last time I checked there were packages for red hat that even when I converted into a deb package didn't seem to work properly. However I know there's 3rd party debian developer (don't have the url on me) who updates nvidia driver packages for debian frequently.

Go google it out.

- Eric
#6
07/22/2005 (1:52 pm)
Debian is just as easy to install the closed nvidia drivers on as anything else. Just download the .run file, and run it.

Gary (-;