Need some help to get started.
by Andrew · in Torque Game Engine · 10/09/2005 (12:01 am) · 12 replies
I just got my TGE license today and was directed to a download site with the TGE SDK. I'm using GNU/Linux now so I got the TorqueGameEngineSDK-1.3.bin one. This isn't the source code for the engine right? Where can I get the source code for TGE?
#2
10/09/2005 (12:31 am)
It helped=) I've got like a helluva problems compiling the code. Think you cld help me out?
#3
couple of easy fixes though to get you going,
1, I expect your getting '-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
fix edit mk/conf.UNIX.mk and look for CFLAGS.GENERAL = and remove -mcpu=i686 on the next line
2,./core/resManager.h & event.h
http://www.garagegames.com/mg/forums/result.thread.php?qt=21521
and
http://www.garagegames.com/mg/forums/result.thread.php?qt=23104
should help
what distro are you using?
also there may be warnings about certain things, when compiling, i do know that some can be ignored, obviously in an ideal world there should be no warnings,
but as long as there are no errors then its a good start
10/09/2005 (1:10 am)
Ok what did it error on? cos there is a few posts around that deal with certain errors in linux,couple of easy fixes though to get you going,
1, I expect your getting '-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
fix edit mk/conf.UNIX.mk and look for CFLAGS.GENERAL = and remove -mcpu=i686 on the next line
2,./core/resManager.h & event.h
http://www.garagegames.com/mg/forums/result.thread.php?qt=21521
and
http://www.garagegames.com/mg/forums/result.thread.php?qt=23104
should help
what distro are you using?
also there may be warnings about certain things, when compiling, i do know that some can be ignored, obviously in an ideal world there should be no warnings,
but as long as there are no errors then its a good start
#4
--> 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
[dangel@cm104 Torque]$
10/09/2005 (1:13 am)
[dangel@cm104 Torque]$ make--> Compiling audio/audio.cc
'-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
./core/resManager.h: In member function 'void Resource
./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
./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
./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
[dangel@cm104 Torque]$
#6
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)
[dangel@cm104 ~]$
10/09/2005 (2:02 am)
[dangel@cm104 ~]$ gcc -vUsing built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)
[dangel@cm104 ~]$
#7
I have the same gcc version on Mandriva 2006 powerpack, which i just installed friday, i should have waited as it was working before on Mandriva 2005 LE
I have just read the bottom posts of 1.4 status/problems
and it may be that TGE1.4 from cvs will work,
I'll grab it in a few mins and I'll let you know
10/09/2005 (2:17 am)
Ouch hehe looks like we are in the same boat,I have the same gcc version on Mandriva 2006 powerpack, which i just installed friday, i should have waited as it was working before on Mandriva 2005 LE
I have just read the bottom posts of 1.4 status/problems
and it may be that TGE1.4 from cvs will work,
I'll grab it in a few mins and I'll let you know
#8
10/09/2005 (2:20 am)
Sure! Thanks for the help=)
#9
10/09/2005 (7:28 pm)
Can anyone tell me how I can get the 1.4 code from CVS and compile it?
#10
10/09/2005 (7:48 pm)
Have you ever used CVS before?
#11
10/09/2005 (8:21 pm)
Use the search feature. It is powered by google.
#12
10/09/2005 (8:40 pm)
Yeah search for CVS or Getting torque 1.4 or something. there are instructions you just need to find them.
Torque Owner Chris Jones-Gill
download it then in shell
cd into the dir where u downloaded it then
chmod 755 TorqueGameEngineSDK-1.3.bin
./TorqueGameEngineSDK-1.3.bin
that'll install it like the demo (if you tried that in Linux)
then open /home/yourdir/Torque or where ever you installed it and the source files will all be there
edited to add this link to compiling on linux page
http://www.garagegames.com/docs/tge/general/apbs04.php
hope this helps