Game Development Community

dev|Pro Game Development Curriculum

Install TBE for Code::Blocks

by Eddy · 09/27/2005 (1:35 pm) · 5 comments

features:
- you don't need to install torque SDK to C: drive
- you can build DEBUG or RELEASE version
- for RELEASE version : no DOS window, no warnings
- you can set up the exe icon
- you can run the executable


-----------------------------------------------
How to install
-----------------------------------------------

1 - install MinGW : here
2 - install MSys : here
3 - unzip this file in your torque folder (for example c:\torque\sdk\) : makefile for CodeBlocks
4 - install codeblocks IDE : www.codeblocks.org
5 - open codeblocks IDE and set up the GCC compiler ( it's the default compiler) :

img397.imageshack.us/img397/4057/snap17204ra.png
Look below, I changed the minGW path...

img393.imageshack.us/img393/2750/snap17215bs.png
img393.imageshack.us/img393/4156/snap17226mf.png
Look below, I added an extra path for Msys...

img393.imageshack.us/img393/7895/snap17234bb.png
img393.imageshack.us/img393/5609/snap17244cf.png
6 - open the file SDK/vc6/Torque SDK.dsw or SDK/vc7/Torque SDK.sln
CodeBlocks will ask two questions, reply YES YES.
After all of that, it will import all files of torque project.

7 - open the projects SDK/make DEBUG.cbp and SDK/make RELEASE.cbp
This is the result :
img387.imageshack.us/img387/9246/snap1732ke.png
-----------------------------------------------
How to build project
-----------------------------------------------

right-click on Make DEBUG or Make RELEASE project, select compile menu
DEBUG -> exe icon / dos window / warning
RELEASE -> exe icon / no dos window / no warnings

This is the result :
img222.imageshack.us/img222/1192/snap17110bs.png
-----------------------------------------------
How to change icon
-----------------------------------------------

icon location : SDK/engine/icon.ico

******
tested version : torque SDK 1.3
original forum topic : www.garagegames.com/mg/forums/result.thread.php?qt=34611

About the author

Recent Blogs

• Plan for Ed From Mars

#1
09/30/2005 (2:33 pm)
This is awsome TBE didn't work at all and this does thank you
#2
10/10/2005 (4:06 pm)
Thanks! I have a fellow programming who seems to be hating ms c++.. he has been trying various compilers without much luck (even though i told him to just use visual c++ .net and get it over with)... I'll link him to this :)

Also... there's a free version of the visual c++ .net compiler. It's commandline, but does the trick fine. For anyone who's interrested
#3
10/18/2005 (12:31 pm)
This is cool... I'm using TBE as of now, but Eclipse has some annoying issues and is a bit bloated IMHO. Maybe I'll give this a spin.
#4
01/09/2006 (5:25 am)
@Robin As a matter of fact, the current distributed version of Code::Blocks can use a multitude of compilers (5 or 6 I guess), and the Visual C++ .NET tools are among them. So you can use the Code::Blocks environment without having to forfeit using a standard Microsoft compiler.
The Code::Blocks IDE also supports Source Control, something the Express versions don't.
#5
12/08/2006 (6:51 am)
My build failed:

RELEASE MODE - no DOS window -no warnings
make -f mk/configure.mk OS=WIN32 COMPILER=GCC3 BUILD=RELEASE
make[1]: Entering directory `/c/Torque/SDK'
Current Configuration: this config is VALID
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 OpenBSD FreeBSD Solaris}
COMPILER={CW6 VC6 GCC2 GCC3}
BUILD={DEBUG RELEASE}
optional arguments:
DIR.OBJ={path to store intermediate obj files}
Note: all arguments are case sensitive.
make[1]: Leaving directory `/c/Torque/SDK'
make -k clean all
make[1]: Entering directory `/c/Torque/SDK'
make[2]: Entering directory `/c/Torque/SDK/engine'
make[2]: Leaving directory `/c/Torque/SDK/engine'
make[2]: Entering directory `/c/Torque/SDK/lib'
make[2]: Leaving directory `/c/Torque/SDK/lib'
make[2]: Entering directory `/c/Torque/SDK/tools'
make[2]: Leaving directory `/c/Torque/SDK/tools'
make[2]: Entering directory `/c/Torque/SDK/lib'
--> Compiling lpng/png.c
--> Compiling lpng/pngerror.c
--> Compiling lpng/pnggccrd.c
--> Compiling lpng/pngget.c
--> Compiling lpng/pngmem.c
--> Compiling lpng/pngpread.c
--> Compiling lpng/pngread.c
--> Compiling lpng/pngrio.c
--> Compiling lpng/pngrtran.c
--> Compiling lpng/pngrutil.c
--> Compiling lpng/pngset.c
--> Compiling lpng/pngtrans.c
--> Compiling lpng/pngvcrd.c
--> Compiling lpng/pngwio.c
--> Compiling lpng/pngwrite.c
--> Compiling lpng/pngwtran.c
--> Compiling lpng/pngwutil.c
Creating library out.GCC3.RELEASE/lpng.a
--> Compiling zlib/adler32.c
--> Compiling zlib/compress.c
--> Compiling zlib/crc32.c
--> Compiling zlib/deflate.c
--> Compiling zlib/gzio.c
--> Compiling zlib/inffast.c
--> Compiling zlib/inflate.c
--> Compiling zlib/inftrees.c
--> Compiling zlib/trees.c
--> Compiling zlib/uncompr.c
--> Compiling zlib/zutil.c
Creating library out.GCC3.RELEASE/zlib.a
--> Compiling ljpeg/jcapimin.c
--> Compiling ljpeg/jcapistd.c
--> Compiling ljpeg/jccoefct.c
--> Compiling ljpeg/jccolor.c
--> Compiling ljpeg/jcdctmgr.c
--> Compiling ljpeg/jchuff.c
--> Compiling ljpeg/jcinit.c
--> Compiling ljpeg/jcmainct.c
--> Compiling ljpeg/jcmarker.c
--> Compiling ljpeg/jcmaster.c
--> Compiling ljpeg/jcomapi.c
--> Compiling ljpeg/jcparam.c
--> Compiling ljpeg/jcphuff.c
--> Compiling ljpeg/jcprepct.c
--> Compiling ljpeg/jcsample.c
--> Compiling ljpeg/jctrans.c
--> Compiling ljpeg/jdapimin.c
--> Compiling ljpeg/jdapistd.c
--> Compiling ljpeg/jdatadst.c
--> Compiling ljpeg/jdatasrc.c
--> Compiling ljpeg/jdcoefct.c
--> Compiling ljpeg/jdcolor.c
--> Compiling ljpeg/jddctmgr.c
--> Compiling ljpeg/jdhuff.c
--> Compiling ljpeg/jdinput.c
--> Compiling ljpeg/jdmainct.c
--> Compiling ljpeg/jdmarker.c
--> Compiling ljpeg/jdmaster.c
--> Compiling ljpeg/jdmerge.c
--> Compiling ljpeg/jdphuff.c
--> Compiling ljpeg/jdpostct.c
--> Compiling ljpeg/jdsample.c
--> Compiling ljpeg/jdtrans.c
--> Compiling ljpeg/jerror.c
--> Compiling ljpeg/jfdctflt.c
--> Compiling ljpeg/jfdctfst.c
--> Compiling ljpeg/jfdctint.c
--> Compiling ljpeg/jidctflt.c
--> Compiling ljpeg/jidctfst.c
--> Compiling ljpeg/jidctint.c
--> Compiling ljpeg/jidctred.c
--> Compiling ljpeg/jquant1.c
--> Compiling ljpeg/jquant2.c
--> Compiling ljpeg/jutils.c
--> Compiling ljpeg/jmemmgr.c
--> Compiling ljpeg/jmemnobs.c
Creating library out.GCC3.RELEASE/ljpeg.a
--> Compiling lungif/dgif_lib.c
--> Compiling lungif/egif_lib.c
--> Compiling lungif/gif_err.c
--> Compiling lungif/gifalloc.c
Creating library out.GCC3.RELEASE/lungif.a
make[2]: Leaving directory `/c/Torque/SDK/lib'
make[2]: Entering directory `/c/Torque/SDK/engine'
--> Compiling audio/audio.cc
In file included from audio/audioBuffer.h:21,
from audio/audioDataBlock.h:13,
from audio/audio.h:13,
from audio/audio.cc:6:
audio/vorbisStream.h:25:26: vorbis/codec.h: No such file or directory
In file included from audio/audioBuffer.h:21,
from audio/audioDataBlock.h:13,
from audio/audio.h:13,
from audio/audio.cc:6:
audio/vorbisStream.h:61: 'ogg_int64_t' is used as a type, but is not defined as
a type.
audio/vorbisStream.h:62: 'ogg_int64_t' is used as a type, but is not defined as
a type.
audio/vorbisStream.h:63: 'ogg_sync_state' is used as a type, but is not defined
as a type.
audio/vorbisStream.h:68: syntax error before `*' token
audio/vorbisStream.h:69: syntax error before `*' token
audio/vorbisStream.h:71: syntax error before `*' token
audio/vorbisStream.h:72: syntax error before `*' token
audio/vorbisStream.h:73: syntax error before `*' token
audio/vorbisStream.h:76: 'ogg_int64_t' is used as a type, but is not defined as
a type.
audio/vorbisStream.h:84: 'ogg_stream_state' is used as a type, but is not
defined as a type.
audio/vorbisStream.h:86: 'vorbis_dsp_state' is used as a type, but is not
defined as a type.
audio/vorbisStream.h:87: 'vorbis_block' is used as a type, but is not defined
as a type.
audio/vorbisStream.h:115: parse error before `)' token
audio/vorbisStream.h:116: parse error before `)' token
audio/vorbisStream.h:120: `ogg_int64_t' was not declared in this scope
audio/vorbisStream.h:120: parse error before `)' token
audio/vorbisStream.h:121: `ogg_int64_t' was not declared in this scope
audio/vorbisStream.h:121: parse error before `)' token
audio/vorbisStream.h:125: parse error before `)' token
audio/vorbisStream.h:126: parse error before `)' token
audio/vorbisStream.h:129: syntax error before `*' token
audio/vorbisStream.h:130: syntax error before `*' token
audio/vorbisStream.h:142: `ogg_page' was not declared in this scope
audio/vorbisStream.h:142: `og' was not declared in this scope
audio/vorbisStream.h:142: parse error before `)' token
audio/vorbisStream.h:143: `ogg_page' was not declared in this scope
audio/vorbisStream.h:143: `og' was not declared in this scope
audio/vorbisStream.h:143: invalid data member initialization
audio/vorbisStream.h:143: (use `=' to initialize static data members)
audio/vorbisStream.h:145: `vorbis_info' was not declared in this scope
audio/vorbisStream.h:145: `vi' was not declared in this scope
audio/vorbisStream.h:145: `vorbis_comment' was not declared in this scope
audio/vorbisStream.h:145: `vc' was not declared in this scope
audio/vorbisStream.h:145: parse error before `*' token
audio/vorbisStream.h:151: type specifier omitted for parameter `ogg_int64_t'
audio/vorbisStream.h:151: parse error before `,' token
--> Compiling audio/audioBuffer.cc
make[2]: *** [out.GCC3.RELEASE/audio/audio.obj] Error 1
In file included from audio/audioBuffer.h:21,
from audio/audioBuffer.cc:7:
audio/vorbisStream.h:25:26: vorbis/codec.h: No such file or directory
In file included from audio/audioBuffer.h:21,
--> Compiling audio/audioDataBlock.cc
from audio/audioBuffer.cc:7:
audio/vorbisStream.h:61: 'ogg_int64_t' is used as a type, but is not defined as
a type.
audio/vorbisStream.h:62: 'ogg_int64_t' is used as a type, but is not defined as
a type.
audio/vorbisStream.h:63: 'ogg_sync_state' is used as a type, but is not defined
as a type.
audio/vorbisStream.h:68: syntax error before `*' token
audio/vorbisStream.h:69: syntax error before `*' token
audio/vorbisStream.h:71: syntax error before `*' token
audio/vorbisStream.h:72: syntax error before `*' token
audio/vorbisStream.h:73: syntax error before `*' token
audio/vorbisStream.h:76: 'ogg_int64_t' is used as a type, but is not defined as
a type.
audio/vorbisStream.h:84: 'ogg_stream_state' is used as a type, but is not
defined as a type.
audio/vorbisStream.h:86: 'vorbis_dsp_state' is used as a type, but is not
defined as a type.
audio/vorbisStream.h:87: 'vorbis_block' is used as a type, but is not defined
Could someone help me?