Can't compile with TBE (Eclipse)
by Randy Hearn - Magnum · in Torque Game Engine · 11/27/2005 (2:02 pm) · 49 replies
Download the SDK 1-4 and the TBE and tried compiling the stock game. Got well over 100 errors.
Here is the ending ...
--> Compiling buildWad/palQuantization.cc
buildWad/palQuantization.cc: In member function 'void
PalQuantizer::reduceTree()':
buildWad/palQuantization.cc:231: warning: initialization of negative value '-1'
to 'U32'
buildWad/palQuantization.cc:231: warning: argument of negative value '-1' to '
unsigned int'
make[1]: *** No rule to make target 'texture2bm8', needed by 'all'.
make[1]: Target 'all' not remade because of errors.
make: *** [tools] Error 2
make: Target 'all' not remade because of errors.
The main problem is when it starts it builds the out.GCC.RELEASE directory, but it does not build the gui directory and I think that may be part. However, I have not compiled in C++ in years and new to Eclipse.
I will try and work some of the warnings out, right now the errors compile at the front and so the error description is outside the console buffer. I will see if I can capture them.
Any hep would be appreciated.
Here is the ending ...
--> Compiling buildWad/palQuantization.cc
buildWad/palQuantization.cc: In member function 'void
PalQuantizer::reduceTree()':
buildWad/palQuantization.cc:231: warning: initialization of negative value '-1'
to 'U32'
buildWad/palQuantization.cc:231: warning: argument of negative value '-1' to '
unsigned int'
make[1]: *** No rule to make target 'texture2bm8', needed by 'all'.
make[1]: Target 'all' not remade because of errors.
make: *** [tools] Error 2
make: Target 'all' not remade because of errors.
The main problem is when it starts it builds the out.GCC.RELEASE directory, but it does not build the gui directory and I think that may be part. However, I have not compiled in C++ in years and new to Eclipse.
I will try and work some of the warnings out, right now the errors compile at the front and so the error description is outside the console buffer. I will see if I can capture them.
Any hep would be appreciated.
About the author
Technical Product Designer (Mechanical Design) for Boeing for over 25 years working with CAD and PLM systems. I have a Associates Degree in Business and a partial B.S. in Game and Simulation, just couldn't see paying the costs for some of the classes.
#22
yet -:))
11/29/2005 (4:43 am)
The '_allshr' is the same error Chris is getting, so I would think it is from the TBE files... I haven' changed anything else.yet -:))
#23
Rather than posting another link about The 2005 Express Edition I did get a little futher with it, thanks to the poast on this board.
Still got one error....
I like the interface, but not sure I am going to like the price once they start charging for it.
Compiling resources...
Linking...
LINK : fatal error LNK1181: cannot open input file 'kernel32.libuser32.lib'
11/29/2005 (5:17 pm)
Well no luck tonight on the Eclipse.Rather than posting another link about The 2005 Express Edition I did get a little futher with it, thanks to the poast on this board.
Still got one error....
I like the interface, but not sure I am going to like the price once they start charging for it.
Compiling resources...
Linking...
LINK : fatal error LNK1181: cannot open input file 'kernel32.libuser32.lib'
#24
11/29/2005 (6:21 pm)
@Ben - Thanks for the VS2005 link. I have been having compile issues and totally missed that.
#25
Sorry for not posting any help on TBE today, reason being I didn't get any farther than you did. :-( Spent some hours on it though. The problems with that are deep and ugly.
I did, however, get success out of VC Express Edition, which I recommend to anyone who wants a free compiler, I think it's going to be pretty darn cheap when it does come out for sale.
Did you tell it about the Microsoft Platform SDK/Lib directory and the Include directory, in the appropriate places? (Under project properties, C/C++ General, and Linker General)
You may have to do this for more than one project.. I had to tell the opengl2d3d and glu2d3d projects about these directories.
11/29/2005 (6:25 pm)
Hey Randy,Sorry for not posting any help on TBE today, reason being I didn't get any farther than you did. :-( Spent some hours on it though. The problems with that are deep and ugly.
I did, however, get success out of VC Express Edition, which I recommend to anyone who wants a free compiler, I think it's going to be pretty darn cheap when it does come out for sale.
Did you tell it about the Microsoft Platform SDK/Lib directory and the Include directory, in the appropriate places? (Under project properties, C/C++ General, and Linker General)
You may have to do this for more than one project.. I had to tell the opengl2d3d and glu2d3d projects about these directories.
#26
Yea, I kinda like the feel of VC EE.. If it's cheap then I will like it..
No I may not have it completely defined will try again before bedtime
11/29/2005 (6:44 pm)
No problem....Yea, I kinda like the feel of VC EE.. If it's cheap then I will like it..
No I may not have it completely defined will try again before bedtime
#27
11/30/2005 (12:03 am)
...
#28
11/30/2005 (1:21 am)
...
#29
11/30/2005 (1:21 am)
...
#30
11/30/2005 (2:29 am)
...
#31
EXCELENT WORK! I started to look at this lastnight after a few e-mails from Chris. I too came to the conclusion that the theora, ogg and vorbis files were corrupt/bogus in some way.
I am not sure what version GG uses for theora, ogg and vorbis libs. I went out and grabbed source for those to add to the 1.4 svn repo.
-Ron
11/30/2005 (4:32 am)
@Joseph,EXCELENT WORK! I started to look at this lastnight after a few e-mails from Chris. I too came to the conclusion that the theora, ogg and vorbis files were corrupt/bogus in some way.
I am not sure what version GG uses for theora, ogg and vorbis libs. I went out and grabbed source for those to add to the 1.4 svn repo.
-Ron
#32
On the _other_ track, for those wanting to use Visual Studio Express, (recommended: the debugger works, among other things!) -- I did a little strip-down of that bloated Microsoft Platform SDK. This is NOT recommended for people wanting to make the full range of windows software with their new free compiler. However, for those people with slow connections or full hard drives, or who just want to compile Torque and hate bloat, I've got a seven-meg download that only has the includes and the ten necessary libraries. It still comes out to 40 megs, because it was too much trouble to figure out which includes are necessary so I grabbed the whole bunch, but it should save people some time anyway.
Download it here.
11/30/2005 (11:57 am)
WOo Hoo!! Great job Joseph!! Sorry about that "fix", it seemed like a good idea at the time!On the _other_ track, for those wanting to use Visual Studio Express, (recommended: the debugger works, among other things!) -- I did a little strip-down of that bloated Microsoft Platform SDK. This is NOT recommended for people wanting to make the full range of windows software with their new free compiler. However, for those people with slow connections or full hard drives, or who just want to compile Torque and hate bloat, I've got a seven-meg download that only has the includes and the ten necessary libraries. It still comes out to 40 megs, because it was too much trouble to figure out which includes are necessary so I grabbed the whole bunch, but it should save people some time anyway.
Download it here.
#33
Speaking of which I installed VSE 2005 on my laptop and followed the instructions from the link above, combining some comments in the thread and IT COMPILED! Only on my laptop no errors.. just warnings, and I feel dumb but this is the first C++ compile I have done in probably 12 years, so I will have to re-train on where to find the .exe - I know dumb..
Anyway, now that I have it compiled on my laptop I will start fresh on my computer. One thing I noticed is I may have to re-install everything.. after I have completely removed the programs (SDK VSE2005 ect..) and also removed the registry settings.
But ... IT did compile on VSE2005 and I think I am with you Chris.. It may be the tool I go with...
Thanks...
12/01/2005 (4:14 am)
Still have not gotten it to work myself, will try to do it on my laptop.Speaking of which I installed VSE 2005 on my laptop and followed the instructions from the link above, combining some comments in the thread and IT COMPILED! Only on my laptop no errors.. just warnings, and I feel dumb but this is the first C++ compile I have done in probably 12 years, so I will have to re-train on where to find the .exe - I know dumb..
Anyway, now that I have it compiled on my laptop I will start fresh on my computer. One thing I noticed is I may have to re-install everything.. after I have completely removed the programs (SDK VSE2005 ect..) and also removed the registry settings.
But ... IT did compile on VSE2005 and I think I am with you Chris.. It may be the tool I go with...
Thanks...
#34
Finally a good compiled EXE from VSE 2005.... If I figure out what I did to get it to compile will post it.
But just ran the torquedemo EXE and so far so good.
12/02/2005 (2:00 pm)
YAHOO!!!!Finally a good compiled EXE from VSE 2005.... If I figure out what I did to get it to compile will post it.
But just ran the torquedemo EXE and so far so good.
#35
12/02/2005 (5:40 pm)
I do hope someone still intends to setup TBE to work with 1.4 . I've not a clue how to setup compiling for something like TGE, but I have been able to program in the engine just fine thanks to TBE removing that starting block for me with 1.3 . 1.4 has some stuff I'd like to use, and if I could compile a clean build of that I could work on porting my code over. I just hope the plan here isn't to tell everyone to use VSE and then pay for it later. I think having a free and easy to setup solution for the engine is very important.
#36
I do know (thanks to an earlier post and some of my own investigation) that the theora, ogg and vorbis libs need to be recompiled. Someone will have to look into a generic set of libs (or a non VS.NET set) that allows compilation with GCC and VS
-Ron
12/03/2005 (6:44 am)
Some of the fixes to get TBE to compile 1.4 will happen during our TGE Linux stabilization effort. The major issues are the mk files as well as other little things. If time permits, once TGE Linux is stable I will crack open TBE on my XP box and see whats what.I do know (thanks to an earlier post and some of my own investigation) that the theora, ogg and vorbis libs need to be recompiled. Someone will have to look into a generic set of libs (or a non VS.NET set) that allows compilation with GCC and VS
-Ron
#37
thanks
-Jeff P
12/05/2005 (1:46 am)
Can anyone tell me where I could download version 1.3 of Torque? I would really like to play around with it and for the past week all I have done is try to get 1.4 to compile. I am not qualified to debug 1.4 so I would really like to just use 1.3 for now. thanks
-Jeff P
#38
12/05/2005 (3:16 am)
Uhh... It may still be on the CVS
#39
Hello, first let me say thank you for your help, I have just about figured this 1.4 compile problem out, but I am stuck at the point you were at on 11/30/2005. You posed the following:
"I went out and grabbed the sources for ogg, vorbis, and theora and compiled them with MinGW/Msys"
I have two questions if you don't mind helping me a bit.
First, why didn't you use the newer versions of ogg, vorbis, and theora?
Second, I have never worked on a project of this size before and really don't have a clue as to how to compile the ogg, vorbis, and theora sources. Can you please post a little more detail on that subject?
I opened the ogg.dsw file in Code Blocks but am not sure what do do next? Is there an easier way to compile these? My Code Block program uses MinGW and Msys so I thought I could just open the ogg.dsw file and compile. I guess I need to learn a bit more though. It's been a long time since I have done any C++ work and I don't even have the compiler that I used back then. If I did, I'd know what to do.
Thanks
-Jeff P
12/06/2005 (6:44 pm)
@Joseph,Hello, first let me say thank you for your help, I have just about figured this 1.4 compile problem out, but I am stuck at the point you were at on 11/30/2005. You posed the following:
"I went out and grabbed the sources for ogg, vorbis, and theora and compiled them with MinGW/Msys"
I have two questions if you don't mind helping me a bit.
First, why didn't you use the newer versions of ogg, vorbis, and theora?
Second, I have never worked on a project of this size before and really don't have a clue as to how to compile the ogg, vorbis, and theora sources. Can you please post a little more detail on that subject?
I opened the ogg.dsw file in Code Blocks but am not sure what do do next? Is there an easier way to compile these? My Code Block program uses MinGW and Msys so I thought I could just open the ogg.dsw file and compile. I guess I need to learn a bit more though. It's been a long time since I have done any C++ work and I don't even have the compiler that I used back then. If I did, I'd know what to do
Thanks
-Jeff P
#40
have a look int the '\libtheora-1.0alpha5\libtheora-1.0alpha5\win32' directory (after you unzip the file) there is a 'build_theora_static.bat' file. Just dbl click that file and it should build the libs for yah. I am not sure if this the process Joseph used.
-Ron
12/06/2005 (6:57 pm)
@Jeff,have a look int the '\libtheora-1.0alpha5\libtheora-1.0alpha5\win32' directory (after you unzip the file) there is a 'build_theora_static.bat' file. Just dbl click that file and it should build the libs for yah. I am not sure if this the process Joseph used.
-Ron
Associate Kyle Carter