Game Development Community

Help, Please. Totally confused about compiling TSE

by Edward Finlayson · in Torque Game Engine · 09/17/2006 (5:04 am) · 5 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 (10:28 am)
I suggest you give up on TSE right now, and concentrate on learning C++ (given that your expertise is PHP and Java -- C++ is quite a different language). Once you understand the language (which would allow you to diagnose that error message), you'll be able to fix whatever problems you'll run into.
#2
09/17/2006 (12:18 pm)
Warnings are fine. Ignore them. (We're working on cutting them down for future releases, but they don't impair the functioning of the engine, so... ignore them.)

For that error, add a cast! (char *) is what you need to add.

Also, please don't crosspost. Once is enough.
#3
09/18/2006 (2:35 am)
Thanks For the suggestions Ben,

Very helpful, which is more than I can say for J \"hplus\" W, so much for the indie frat eh? I've always been in the firm opinion that most languages share a common structure, and particularly when java was originally derived from C and is also object orientated I feel that your rather superior posting might well be made to someone without any coding skills here is just rather trite, supercilious and moot. I have a great deal of professional programming experience in serveral languages, including C I'm just quite new to C++. If you would like to post something constructive, as Ben has, then please do....

FYI there are a number of people who have encountered this same issue, I feel the most constructive approach would be to share your wealth of knowledge with you fellow indie developers and get out of the 'Microsoft mindset' - one reason I also use a Mac and linux machines and don't just depend on Gates Corp.

Considering that VS2005 is the full blown version of the compiler, I find it a little odd that very few people seem to be using it and that I have to edit the TSE source - which is available only for Microsoft compilers - in order to get it to compile.

Thanks Again Ben


Fin.
#4
09/18/2006 (5:30 am)
What he said was constructive, from what I gather; if you are familiar with C++, that is quite an easy error message to diagnose -- don't make my mistake and just jump into Torque with no training in C++, otherwise the world closes in on our pretty darn quickly....
#5
09/18/2006 (6:03 am)
I agree. Dont pick on people because they are giving you their honest opinion. Crossposting certainly wont help, either.