Compiling Torque with Eclipse
by mm · in Torque Game Engine · 01/02/2004 (9:05 am) · 82 replies
I have been compiling my TGE project with MSYS and minGW. After I saw the dev shot that Ron posted I took a further look at Eclipse. I must say that running through Eclipse when compiling is far more reliable and much less frustrating.
I would really like to see Eclipse used more since it really is a valuable tool for the community. While looking into Eclipse I really didn't see any tutorials on how to get it set up. And while a large portion of the community should be able to get it set up without any problems I thought I would write a step-by-step tutorial for those who might have trouble compiling.
The method I used to set up may not be the most efficient method but it hasn't given me any trouble thus far and the TGE compiles every time. Below I have laid out the steps that I used when setting up Eclipse. Thanks Ron and all those that got this resource up and running!
I would really like to see Eclipse used more since it really is a valuable tool for the community. While looking into Eclipse I really didn't see any tutorials on how to get it set up. And while a large portion of the community should be able to get it set up without any problems I thought I would write a step-by-step tutorial for those who might have trouble compiling.
The method I used to set up may not be the most efficient method but it hasn't given me any trouble thus far and the TGE compiles every time. Below I have laid out the steps that I used when setting up Eclipse. Thanks Ron and all those that got this resource up and running!
#22
01/06/2004 (8:57 am)
Hey guys, on windows, there is a little exe in the Eclipse directory to get it started. No need to do it from the command line :)
#23
Yes there is a "little exec in the Eclipse directoty to get it started".
I played with that option (running eclipse from windows) and ended up with numerous issues/errors. The only resolution I could come up with to eliminate all of my compiler errors and headachs was to launch eclipse from witnin MSYS, this will setup your env etc and enable eclipse to find all of the exe's, headers and libs it needs.
-Ron
01/06/2004 (9:16 am)
@Nicolas,Yes there is a "little exec in the Eclipse directoty to get it started".
I played with that option (running eclipse from windows) and ended up with numerous issues/errors. The only resolution I could come up with to eliminate all of my compiler errors and headachs was to launch eclipse from witnin MSYS, this will setup your env etc and enable eclipse to find all of the exe's, headers and libs it needs.
-Ron
#24
Weird, I didn't run into any paths errors in the small tests I ran from Eclipse. Granted, haven't tried to build TGE with it yet, so the same probs might spring up on me :)
01/06/2004 (9:58 am)
Oh, I see (and actually suspected you were starting it from the cli because of problems...;)). Weird, I didn't run into any paths errors in the small tests I ran from Eclipse. Granted, haven't tried to build TGE with it yet, so the same probs might spring up on me :)
#25
Like you said it will be in player.cs or someplace , ill find it. O_O
@James , Thanks , didnt know it ment that,,Id like to know how they got the demo.exe size down under 1000 KB
01/06/2004 (10:11 pm)
@Matt ,I wanted to know how/what activates the foot step smoke emmitters. Like you said it will be in player.cs or someplace , ill find it. O_O
@James , Thanks , didnt know it ment that,,Id like to know how they got the demo.exe size down under 1000 KB
#26
have a look at upx to reduce the .exe size, there is a install_build dir with some minor tweaks you can get it working for the wintel platform.
-Ron
01/07/2004 (4:15 am)
@Brian,have a look at upx to reduce the .exe size, there is a install_build dir with some minor tweaks you can get it working for the wintel platform.
-Ron
#27
01/07/2004 (9:04 pm)
Thanks Ron ,,Ill look it up.
#28
cd /c
start.bat
example_Start.bat
01/08/2004 (9:25 pm)
I guess you know this allready but I just found you can combine steps 7 & 8 into a .bat file to speed things up. So all you need to type is;cd /c
start.bat
example_Start.bat
cd /c/bazzengine make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3 cd /c/eclipse ./eclipse &
#29
*** [default] Error 2
*** [engine.a] Error 2
*** [out.GCC3.RELEASE/audio/audio.obj] Error 127
*** [out.GCC3.RELEASE/audio/audioBuffer.obj] Error 127
*** [out.GCC3.RELEASE/audio/audioDataBlock.obj] Error 127
*** [out.GCC3.RELEASE/audio/audioFunctions.obj] Error 127
etc etc for a good 400 lines, then the last line is
*** [tools] Error 2
Any ideas on what I messed up on and how I could fix it? Thanks for any help anyone could give me with this.
Troy
01/08/2004 (9:34 pm)
Newbie here, just bought torque this afternoon, I'm trying to get it compiled with Eclipse (this thread has been very helpful btw) but I keep getting a bunch of errors when I try to compile, they look like this:*** [default] Error 2
*** [engine.a] Error 2
*** [out.GCC3.RELEASE/audio/audio.obj] Error 127
*** [out.GCC3.RELEASE/audio/audioBuffer.obj] Error 127
*** [out.GCC3.RELEASE/audio/audioDataBlock.obj] Error 127
*** [out.GCC3.RELEASE/audio/audioFunctions.obj] Error 127
etc etc for a good 400 lines, then the last line is
*** [tools] Error 2
Any ideas on what I messed up on and how I could fix it? Thanks for any help anyone could give me with this.
Troy
#30
Troy
01/09/2004 (1:23 pm)
Well, I tried uninstalling and then reinstalling everything and it works mostly great! I get the executable and everything but I am getting about 100 warnings or so, mostly of argument to 'int' from 'float' and that type of thing, is that going to cause any problems down the road or should i just ignore it?Troy
#31
to
-Ron
01/30/2004 (11:05 am)
Those are conversion errors that gcc is spitting out. For the most part they can be ignored, if you want you can look at the conf.GCC3.WIN32.mk file and changeCFLAGS.GENERAL = -mwin32 -Wno-conversion -MD -march=i586 -fno-exceptions -fpe rmissive
to
CFLAGS.GENERAL = -mwin32 -Wno-conversion -MD -march=i586 -fno-exceptions -fpe rmissive [b]-w[/b]
-Ron
#32
01/30/2004 (1:46 pm)
Anbody try this on Mac OS X? I have Eclipse for Java Development and I know I have a GCC compiler.
#33
-Ron
01/30/2004 (2:18 pm)
I had asked Davis R.S to give it a whirl a month or so ago; but he has been to swamped to give it a go. It should work (in theory)-Ron
#34
"Step 11:
Build the engine via Project -> Rebuild All"
Something happens here, but I get a quick flash on the screen (it runs by to quickly to read)>
Edit: Alright after spending a few minutes with Neopaint and PrintScreen I was able to capture the message. It reads: "Progress Information: Operation in Progress". No additional information held in windo.
> and no report down below. (Most complilers do something at this point). I am sure I have done something wrong. Nothing seams to get compiled, no executable assemebled. Then again I am not 100% for sure what I am suppose to be looking at.
I tried to rebuild the Demo Engine. I don't seam to be getting any results. I don't think the compiler is linked correctly, but I am not for sure.
Also when I tried to start a new project, the Elcipse seams happy to pull up a Java Project, Plug in Project or Simple...
What else do I need to link into the Elcipse to get it going. What about this "External Tools Builder" Option under Project > Properties.
When looking at it reads "Missing Builder:(org.eclipse.cdlt.make.core.makeBuilder)
I think something should be there...
Edit: Just a after thought, I import the Project Directory is there a Specific Project I should try to Import just for testing purposes is there anything that the SDK includes that I can compile.
03/16/2004 (11:05 pm)
Newby Question.... Thanks for putting up this tutorial, I got about 90% of it done (I think correctly)"Step 11:
Build the engine via Project -> Rebuild All"
Something happens here, but I get a quick flash on the screen (it runs by to quickly to read)>
Edit: Alright after spending a few minutes with Neopaint and PrintScreen I was able to capture the message. It reads: "Progress Information: Operation in Progress". No additional information held in windo.
> and no report down below. (Most complilers do something at this point). I am sure I have done something wrong. Nothing seams to get compiled, no executable assemebled. Then again I am not 100% for sure what I am suppose to be looking at.
I tried to rebuild the Demo Engine. I don't seam to be getting any results. I don't think the compiler is linked correctly, but I am not for sure.
Also when I tried to start a new project, the Elcipse seams happy to pull up a Java Project, Plug in Project or Simple...
What else do I need to link into the Elcipse to get it going. What about this "External Tools Builder" Option under Project > Properties.
When looking at it reads "Missing Builder:(org.eclipse.cdlt.make.core.makeBuilder)
I think something should be there...
Edit: Just a after thought, I import the Project Directory is there a Specific Project I should try to Import just for testing purposes is there anything that the SDK includes that I can compile.
#35
make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3
ERROR: COMPILER variable not set or is an illegal value
Current Configuration: this config is INVALID
OS: WIN32
COMPILER: GCC3
BUILD: RELEASE
DIR.OBJ: out
To change the current configuration type:
make -f mk/configure.mk {arguments, ...}
required arguments:
OS={WIN32 BEOS LINUX}
COMPILER={CW6 VC6 GCC}
BUILD={DEBUG RELEASE}
Any and all help will be greatly appreciated. Thanks!
04/03/2004 (9:15 pm)
OK, need some help here. I followed these directions to the letter--even using all the same version numbers of the required software. When I get to step #7, this is what I get:make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3
ERROR: COMPILER variable not set or is an illegal value
Current Configuration: this config is INVALID
OS: WIN32
COMPILER: GCC3
BUILD: RELEASE
DIR.OBJ: out
To change the current configuration type:
make -f mk/configure.mk {arguments, ...}
required arguments:
OS={WIN32 BEOS LINUX}
COMPILER={CW6 VC6 GCC}
BUILD={DEBUG RELEASE}
Any and all help will be greatly appreciated. Thanks!
#36
make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3
ERROR: COMPILER variable not set or is an illegal value
Current Configuration: this config is INVALID
OS: WIN32
COMPILER: GCC3
BUILD: RELEASE
DIR.OBJ: out
To change the current configuration type:
make -f mk/configure.mk {arguments, ...}
required arguments:
OS={WIN32 BEOS LINUX}
COMPILER={CW6 VC6 GCC}
BUILD={DEBUG RELEASE}
Any and all help will be greatly appreciated. Thanks!
04/03/2004 (9:30 pm)
OK, need some help here. I followed these directions to the letter--even using all the same version numbers of the required software. When I get to step #7, this is what I get:make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3
ERROR: COMPILER variable not set or is an illegal value
Current Configuration: this config is INVALID
OS: WIN32
COMPILER: GCC3
BUILD: RELEASE
DIR.OBJ: out
To change the current configuration type:
make -f mk/configure.mk {arguments, ...}
required arguments:
OS={WIN32 BEOS LINUX}
COMPILER={CW6 VC6 GCC}
BUILD={DEBUG RELEASE}
Any and all help will be greatly appreciated. Thanks!
#37
I got Eclipse set up based on the above instructions and it *looked* like it worked... but the log that was created (at the bottom of the GUI) showed alot of !'s and X's..
Now.. when I had rebuilt it from the command-line, I got alot of warnings.. but no actual errors. The first few seemed to relate directly to the different folders, "tools", etc..
Anyone else have this happen to them or know how to fix it?
Edit: I think I know one reason why it won't work.. I don't have two files needed for the DayToNight patch imported into the makefile yet.. I have to get that done first.. Doh!
Thanks!
Mike
04/04/2004 (9:17 am)
Hmm... I got Eclipse set up based on the above instructions and it *looked* like it worked... but the log that was created (at the bottom of the GUI) showed alot of !'s and X's..
Now.. when I had rebuilt it from the command-line, I got alot of warnings.. but no actual errors. The first few seemed to relate directly to the different folders, "tools", etc..
Anyone else have this happen to them or know how to fix it?
Edit: I think I know one reason why it won't work.. I don't have two files needed for the DayToNight patch imported into the makefile yet.. I have to get that done first.. Doh!
Thanks!
Mike
#38
I wanted to thank you for your post because I have been trying to figure out why the heck I couldn't compile with MinGW and I kept getting the same error you talked about but when you said you had the same problem if you installed msys before MinGW, then I decided to reinstall them both but MinGW first and IT WORKED YES!!! So thanks to you and your post I now can compile and I wanted to thank everyone who mentioned about MinGW and MSYS and how to compile with them.
Thanks again Ron for this
"The only issue I have ever run into was installing MSYS before MinGW, which can cause some errors seeing the MSYS will be clueless as to where the compiler (GCC) is"
04/07/2004 (6:48 pm)
Ron,I wanted to thank you for your post because I have been trying to figure out why the heck I couldn't compile with MinGW and I kept getting the same error you talked about but when you said you had the same problem if you installed msys before MinGW, then I decided to reinstall them both but MinGW first and IT WORKED YES!!! So thanks to you and your post I now can compile and I wanted to thank everyone who mentioned about MinGW and MSYS and how to compile with them.
Thanks again Ron for this
"The only issue I have ever run into was installing MSYS before MinGW, which can cause some errors seeing the MSYS will be clueless as to where the compiler (GCC) is"
#39
Installing the components in this order: (1) MinGW; (2) MSys; (3) Eclipse; (4) Ron's files; then getting the update from the Eclipse website worked. One point tho: all the tutorials, read-me's etc say to use "/cd/c:/torque" in MinGW, but it doesn't recognize that, but it does recognize this: "cd c:/torque", just as if you were in DOS. But that's a minimal tiny typo in an otherwise 100% on target post/tutorial. Thanks.
Lloyd
04/18/2004 (5:55 pm)
Ron & Matt: Thanks a million for the post and the tutorial. I've been pulling out my hair, trying to figure out a compiler that I don't have to spend $200 (to upgrade to XP-Pro) in order to use. This works great. Followed the directions, fumbled a bit, read the "read-me" files, un-installed a couple of times, but once it was already, it worked fine. Compiled the demo without a sneeze, just the warning lines about the audio files. Demo-game worked without the audio just fine. Next is the tools, but I'll save that for tomorrow.Installing the components in this order: (1) MinGW; (2) MSys; (3) Eclipse; (4) Ron's files; then getting the update from the Eclipse website worked. One point tho: all the tutorials, read-me's etc say to use "/cd/c:/torque" in MinGW, but it doesn't recognize that, but it does recognize this: "cd c:/torque", just as if you were in DOS.
Lloyd
#40
I've got MinGW setup first, then MSYS, then finally setup Eclipse.
Same problem with no compliation and same flash of the pop-up as he experienced...
05/31/2004 (5:37 pm)
I am experiencing the same problem as Donny's post above (on 17th of March). Did anyone figure out that problem?I've got MinGW setup first, then MSYS, then finally setup Eclipse.
Same problem with no compliation and same flash of the pop-up as he experienced...
Associate Ron Yacketta
Yes, you can do that. I did not detail the installation instructions enough. Not sure which way is better or worse. I've always installed application to there default install location:
- MinGW into c:\MingW
- MSYS into c:\MSYS
- Eclipse into c:\Program Files\eclipse
-Ron