Game Development Community

Problems Compiling with TBE

by Gabor Borbely · in Torque Game Builder · 04/25/2005 (9:04 am) · 12 replies

Has anyone had problems compiling the engine using TBE? I've tried compiling the entire T2D engine several times without success; over 80 warnings accompanied by about 29
errors each time. I've followed the provided instructions perfectly and replaced target.torque.mk accordingly, at least as far as I know; has anyone managed to compile successfully?

#1
04/25/2005 (3:34 pm)
Gabor, if you're using the latest release of T2D, there is a problem with the makefile and one of the include directives in the engine. Apologies for these errors. You can see more info on 'em and fixes in the forums here, or wait until tomorrow (hopefully) and we'll update the SDK packages.
#2
04/25/2005 (5:19 pm)
Thank you Josh; I think I'll just wait for the update!:)
#3
04/28/2005 (12:15 pm)
Josh, does a good chance exist that the fixed makefile and include directives for the Windows version of T2D 1.02 are uploaded for downloading sometime this week? I'd really appreciate an answer, thank you!:)
#4
04/28/2005 (12:35 pm)
OK I just got T2D working in TBE...

torque.feylab.com/downloads/T2D4TBE.zip

Extract with directories, and copy to your Torque2D folder (Should be able to extract to C: if you installed T2D to the default directory)

Start Eclipse

Select File -> Import

Select "Existing Project into Workspace"

Then you should be able to right-click on the project folder, select build and sit back and wait.
#5
04/28/2005 (2:27 pm)
Hi Harold and Thank you for the T2D fixes!:) Much appreciated. I am, however, still getting alot of warnings and some errors. Could this be because I have extracted the .project, the .cdtproj and the Makefile files
into the Torque 2D\SDK folder? Where should these files be located here?
#6
04/28/2005 (3:56 pm)
I think my build had 18 errors and 168 warnings.

Those warnings and errors don't really mean anything as the engine will still compile

I did notice my make file does have an error...

In c:\torque2d\sdk\Makefile find:

all: default tools

change that to

all: default
#7
04/28/2005 (7:49 pm)
Harold, I fixed the makefile as you have suggested - it works!:) Your're a life saver Harold, you have actually made this thing compile and run - how can I possibly thank you for this!:) I, nevertheless at least thank you so very much!:) Despite the fact that TBE reported 18 errors and over 80 warnings(mostly in regards to the editor and gui classes and their associated header files), this thing compiled to the finish! TBE refused to run T2D afterwards (I guess because of the errors) but that did not stop me from running it from outside of TBE and seeing the minor changes I made to the engine - just awesome!:)

I can get a little carried away obviously, but in this case, I feel justified since this is actually the very first time I was able to compile the engine and view the changes I have made. Now I can go ahead and implement that A* algorithm in C++ for a small demo I plan to make available to the T2D community! Just fantastic to say the least!:)

Cheers!:)

Gabor
#8
08/22/2005 (10:03 pm)
I know this is an older thread... but I felt I should post to let people know that I updated the TBE4T2D.zip package with the updated make file... so you shouldn't have to make any changes now.
#9
09/01/2005 (1:24 am)
Thanks for posting that download Harold. Are those changes going into the next revision of T2D?

One hint for GCC users- even with RELEASE the exe is little bloated. Run "strip T2D.exe" and it gets down to 1.6 MB.

Couple of random TBE questions:

Anyone know how to get GCC to hide the console window the same as /SUBSYSTEM:WINDOWS does in VC++?

Other than the fancy GUI, is VC++ a better compiler on Windows in any way? I thought that gcc didn't produce very good results on the win32 platform, or was that true once upon a time, or is just something I was confused about?
#10
09/01/2005 (2:58 am)
Quote:Alex Rice: Anyone know how to get GCC to hide the console window the same as /SUBSYSTEM:WINDOWS does in VC++?

See my thread here: www.garagegames.com/mg/forums/result.thread.php?qt=31167
#11
09/01/2005 (9:08 am)
@Philip- thanks I'll try that flag
#12
09/01/2005 (11:08 pm)
Answering own question
Quote:I thought that gcc didn't produce very good results on the win32 platform, or was that true once upon a time, or is just something I was confused about?
according to this site, GCC/MingW kicks some serious butt!