Game Development Community

No compile TOrque SDK on SuSE 10.0 x86

by Rick Whitehouse · in Technical Issues · 04/20/2006 (9:32 pm) · 3 replies

Make gives following error

--> Compiling audio/audio.cc
'-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
./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.GCC2.RELEASE/audio/audio.obj] Error 1
make: *** [default] Error 2

anyone any ideas on fixing this

Rick

About the author

Recent Threads


#1
04/22/2006 (8:38 am)
Do you have downlaod the source from the torque cvs repository ?

If not, do it , because the source deliver with torque package is not easy to compile.

for more information : eviwo.free.fr/torque/compile.html
#2
04/22/2006 (9:10 pm)
Thanks for your help .
I had already downloaded the cvs and couldn't compile that either .
However found other references to your website and other people's instructions.
Applied the patches from your site and appropriate packages and it compilked!! ( Using GCC4 instead of GCC3 on the make configure command seemed to do the trick)

However the packages are differently named on SuSE to ubuntu and the nvidia driver needs to be re-installed after any of the xorg or xorg-devel packages are installed.

However have been running through the tutorial and it seems at present I can't save my mission !

Any ideas on that ?

Rick
#3
04/23/2006 (3:47 am)
On linux the mission are saved by default under ~/.torque , but it does not work well .

Also launch the torquedemo.bin with the option -nohomedir => the mission is now saved where you decide to save it.

:)