Game Development Community

Topic: Help, Please. Totally confused about compiling TSE

by Edward Finlayson · in Torque Game Engine Advanced · 09/17/2006 (5:40 am) · 6 replies

Hi All,


Fairly new to C++ although I write PHP and Java professionally.
I was bought a copy of Visual Studio 2005 Pro by my employer so I thought that I would use that for compiling TSE; this was after successfully compiling TGE on the same environment.

I followed faithfully the instructions in the article http://tdn.garagegames.com/wiki/Torque/vs2k5 but without success. So, not to be outdone I looked deeper and then also followed the ideas put forward in then post by M-Theory in the forum thread http://www.garagegames.com/mg/forums/result.thread.php?qt=38006

Unfortunately, I still haven't managed to get TSE to compile in VS2005 pro, I get hundreds of the following warning:

1>c:\tse_csv\fin_tse\engine\gfx\gfxtexturemanager.h(201) : warning C4482: nonstandard extension used: enum 'GFXTextureManager::TextureManagerState' used in qualified name


and one FATAL error:

Error 269 error C2440: 'return' : cannot convert from 'const char *' to 'char *' c:\tse\engine\platformWin32\winStrings.cpp 195

I'm really sorry to seem so dumb but I have never managaed to get tse to compile cleanly, what the the hundreds of various warning etc.

Has ANYONE actually managed to compile TSE without either error or warning and also do it on VS2005 Pro? If they have would they please be so very kind as to help a frustrated noob. :)

Sorry, if this sounds a little terse but after the relative ease with which TGE compiled I a more than a little frustrated that after spending more hard-earned money on what looks like a promissing enhancement, I find myself unable to progress with it at all due to the simple fact that I cannot get it to compile!!!


Please All, I waving the white flag here........ Please, give a guy a hand.


Fin.

#1
09/17/2006 (5:59 am)
I'm not sure why you're having a problem. I use VS2005 Team Developer Edition, which I believe is pro+. I'm able to compile directly with the solution file included in the stock download. I did change a few settings later to 'clean up' some things, but nothing was required.
In fact, I've never used any of the posted methods. I simply pre-install directxSDK to the default location, and then compile away.
#2
09/17/2006 (6:30 am)
Nor am I, which is of course why i'm asking for help, but here is the section of the biuld log that reports the error. Perhaps that will make things clearer.


9>winStrings.cpp
9>c:\tse_csv\fin_tse\engine\platformwin32\winstrings.cpp(32) : warning C4996: 'strcat' was declared deprecated
9> c:\program files\microsoft visual studio 8\vc\include\string.h(78) : see declaration of 'strcat'
9> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
9>c:\tse_csv\fin_tse\engine\platformwin32\winstrings.cpp(37) : warning C4996: 'strncat' was declared deprecated
9> c:\program files\microsoft visual studio 8\vc\include\string.h(143) : see declaration of 'strncat'
9> Message: 'This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
9>c:\tse_csv\fin_tse\engine\platformwin32\winstrings.cpp(128) : warning C4996: 'strcpy' was declared deprecated
9> c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
9> Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
9>c:\tse_csv\fin_tse\engine\platformwin32\winstrings.cpp(133) : warning C4996: 'strncpy' was declared deprecated
9> c:\program files\microsoft visual studio 8\vc\include\string.h(156) : see declaration of 'strncpy'
9> Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
9>c:\tse_csv\fin_tse\engine\platformwin32\winstrings.cpp(149) : warning C4996: '_strupr' was declared deprecated
9> c:\program files\microsoft visual studio 8\vc\include\string.h(170) : see declaration of '_strupr'
9> Message: 'This function or variable may be unsafe. Consider using _strupr_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
9>c:\tse_csv\fin_tse\engine\platformwin32\winstrings.cpp(156) : warning C4996: '_strlwr' was declared deprecated
9> c:\program files\microsoft visual studio 8\vc\include\string.h(132) : see declaration of '_strlwr'
9> Message: 'This function or variable may be unsafe. Consider using _strlwr_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
9>c:\tse_csv\fin_tse\engine\platformwin32\winstrings.cpp(195) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
9> Conversion loses qualifiers
9>winSemaphore.cpp
#3
09/17/2006 (6:44 am)
Perhaps this may be something:

Which is the best release to get via cvs??
#4
09/17/2006 (9:38 am)
You need to get HEAD version.


the warnings are normal and just mean that in a future version of VC++ they might be removed.

the error howewer seems familiar i think i had it once. Are you sure you got the most recent version (AKA HEAD)?
#5
09/18/2006 (2:18 am)
Thanks Florian,
yes i am using HEAD, but thanks for the response

Fin
#6
09/19/2006 (4:34 pm)
I assume you are compiling with Express version? Make sure you download the platform libraries. Once you have them and the DirectX SDK installed, make sure that in your VC++ directories setup, the DirectX include and lib files are at the TOP of the dialog. If none of this makes sense, do a search for how to compile with VC2k5 Express.