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.
#42
It never hurts to have both compilers on your system. Download MVS2005 Express and try it.
Then you can wait until they get all the rough stuff working on the TBE...
I haven't given up on the TBE and Eclipse yet-:)..
And I will have to say, I have noticed the quick reply's on this topic. Very good support..
12/06/2005 (11:09 pm)
@Jeff,It never hurts to have both compilers on your system. Download MVS2005 Express and try it.
Then you can wait until they get all the rough stuff working on the TBE...
I haven't given up on the TBE and Eclipse yet-:)..
And I will have to say, I have noticed the quick reply's on this topic. Very good support..
#44
12/07/2005 (1:51 am)
...
#45
Thanks I missed that, however I do understand where Chris is coming from.
I would rather see them working on the AI upgrade myself. -:))
12/07/2005 (4:22 am)
@SamThanks I missed that, however I do understand where Chris is coming from.
I would rather see them working on the AI upgrade myself. -:))
#46
12/07/2005 (2:46 pm)
[removed; managed to get Eclipse to compile, but still can't get a working executable due to unicode problems that should have been solved from the above *.cc modifications...]
#47
-Jeff P
12/07/2005 (6:33 pm)
I want to thank you all for all the GREAT help you have provided. I am going to set up MVS 2005 as per Sam's post above and see how that works out. I agree that it would be best if we are all on the same boat so that they can work on things like AI etc. Thank you all again and I'll let you know how it goes.-Jeff P
#48
-Jeff P
12/08/2005 (12:27 am)
OK, I installed MVS 2005, followed the instructions of the above blog and sure enough, I am finally all set and can now compile with no problems. Strange, but hey, as long as it works I am happy. Thank you again to all of you.-Jeff P
#49
Here's what I did:
09/06/2007 (1:22 pm)
I just wanted to say thanks to everyone who worked on this. I finally got TGE 1.4.2 to compile.Here's what I did:
If there's any confusion go to step 9 and view the compile errors (or lack thereof) yourself. 1) can't make directories: -p switch in MKDIR line, see above. 2) "must have UNICODE defined": put -DUNICODE into conf.GCC3.WIN32.mk, under CFLAGS.GENERAL 3) (I Skipped this one) winRedbook.cc 396: can't convert MIXERCONTROL* to tagMIXERCONTROLW* change this: MIXERCONTROL volumeControl; to this: tagMIXERCONTROLW volumeControl; 4) winWindow.cc:34 -- "invalid initializer" changed this: static UTF16 windowName[256] = L"Darkstar Window"; to this: static UTF16 windowName[256]; 5) targets.torque.mk CHECK_LINK_FILE=../lib/xiph/linux/checklinks.sh to this: CHECK_LINK_FILE=sh ../lib/xiph/linux/checklinks.sh 6) install theora vorbis and ogg ...One of these doesn't compile right unless you comment out a line ( forgot which one and what line) make sure you compile them in order too. extract the archive: (if you don't know how to use tar or don't have tar get 7-zip) tar -xvvzf libogg-1.1.3.tar.gz change to the dir containing the sources: cd libogg-1.1.3 Call configure with your mingw install dir as prefix: ./configure --prefix=C:\msys.0\mingw --disable-shared compile the sources: make and install them: make install afterwards go back to your msys home dir: cd now install libvorbis in a similar way tar -xvvzf libvorbis-1.2.0.tar.gz cd libvorbis-1.2.0 ./configure --prefix=c:/mingw --disable-shared make make install cd compile libtheora in the same manner tar -xvvzf libtheora-1.0alpha7.tar.gz cd libtheora-1.0alpha7 ./configure --disable-encode --prefix=C:/mingw --disable-shared make make install cd copy libs from libtheora-1.0alpha7/lib/.libs/ to /c/Torque/SDK/lib/xiph/win32/ copy libs from libogg-1.1.3/src/.libs/ to /c/Torque/SDK/lib/xiph/win32/ copy libs from libvorbis-1.2.0/lib/.libs/ to /c/Torque/SDK/lib/xiph/win32/ 7)modify the conf.gcc3.win32.mk file add a # like so: #LINK.LIBS.VORBIS = ../lib/vorbis/win32/libogg.a ../lib/vorbis/win32/libvorbis.a ../lib/vorbis/win32/libogg.a ../lib/xiph/win32/ogg_static.lib add these lines below the above line: LINK.LIBS.VORBIS = ../lib/xiph/win32/libtheora.a ../lib/xiph/win32/libvorbis.a ../lib/xiph/win32/libogg.a LINK.LIBS.IMM = ../lib/MSPlatformSDK/lib/Imm32.lib add # sign: #LINK.LIBS.GENERAL = -lcomdlg32 -luser32 -ladvapi32 -lgdi32 -lwinmm -lwsock32 -lvfw32 $(LINK.LIBS.VORBIS) paste the following lines below the above line: #-mwindows is in the following line instead of -lgdi -luser32 because it keeps an empty console from popping up LINK.LIBS.GENERAL = -lcomdlg32 -ladvapi32 -lwinmm -lwsock32 -lvfw32 -mwindows $(LINK.LIBS.IMM) $(LINK.LIBS.VORBIS) 8) comment out the dStrlen() function that conflicts in winStrings.cc... (the second one) 9) make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3 make
Torque Owner Jeff Paden
Thank you for the quick reply, however that .bat file uses Microsoft Visual Studio and I am using MinGW and Msys. I think I might just get MVS since it seems to be what a lot of others are using for this.
-Jeff P