Game Development Community

Build TGE with VS 2005 Pro

by Justin Mosiman · in Torque Game Engine · 05/06/2006 (4:54 pm) · 6 replies

Hello,

How do you build the TGE with VS 2005 Pro? I've seen the guides for the express edition of VS, but can that also be applied to the Pro version?

Thanks,
Justin

#1
05/06/2006 (4:54 pm)
Yes the express edition instructions work the same.

Dave
#2
05/06/2006 (10:23 pm)
Open TGE_VS2005.zip
select all files (Ctrl - A)or menu option
Extract with paths to C:\YOUR_TORQUE_PATH\SDK\
(same as the TGE)
you should get 5 pop up messages asking for permission
to overwrite a file
if you dont 2 possible reasons
you have it set to auto overwrite
you dont have the right path on extract
======

lets bring up a working torqueDemo_DEBUG.exe under VS2005
Highlight / select Torque Demo (3rd from bottom under solution pane)
right click select last "properties"
-Configuration Properties
General
Debugging <=== this one
in Configuration(textbox) select Active(Debug)
under Working Directory set to:: ../example
move mouse pointer to elsewhere and hit apply
in Configuration(textbox) select Release
under Working Directory set to:: ../example
move mouse pointer to elsewhere and hit apply
now hit OK

if you build Torque Demo now you'll get 9 warnings
one of which is
GLU2D3D.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
glu2d3d - 0 error(s), 1 warning(s)

under solution pane select(highlight) glu2d3d
right click choose properties
select Linker in left pane
under Enable Incremental Linking choose Yes(/Incremental) from drop down text box
click Apply then Ok

now select (highlight) Torque Demo in solution pane
from Build select Build Torque Demo (right under clean solution)

you'll get these warnings

c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(17) : warning C4068: unknown pragma
c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(33) : warning C4068: unknown pragma
c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(44) : warning C4068: unknown pragma
c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(48) : warning C4068: unknown pragma
c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(51) : warning C4068: unknown pragma
c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(63) : warning C4068: unknown pragma
c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(198) : warning C4068: unknown pragma
c:\YOUR_TORQUE_PATH\sdk\engine\core\unicode.cc(334) : warning C4068: unknown pragma
Torque Demo - 0 error(s), 8 warning(s)

double click on any of these eight lines and unicode.cc will open at the warning line reference you select
now just make a blank line and type
#pragma m
you will notice that there is no #pragma mark option in autocomplete

the compiler will suggest [make_public] [managed] or [message]
it doesnt recoginize mark as valid at this point in the command
hence it doesnt recoginize it the build
if you search the web you'll notice that articles about #pragma mark
are for apple computers
microsoft's knowledge base has 0 articles about #pragma mark

if your are using a PC with Win XP don't expect to fix this one

=======


oh you have finished the build 8 warnings from unicode.cc
but its built
refer to :
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9611
Click and view Suggest right click Open in New Window :)
for some basics about starting a new project
it was written for use with VC7 so some items are outdated
but it is easy to make changes to suit the VC8(VC2005)
#3
05/06/2006 (10:54 pm)
Thanks for all of the help, I was able to get it built successfully
#4
05/19/2006 (10:04 pm)
Hi there... maybe someone can help me with this one. ive just installed a fresh copy of TGE in the default folder. i then downloaded VSExpress. installed it and followed this instruction set along with the instuctions on the TDN. from some reason it will not compile and i get this error:



------ Build started: Project: opengl2d3d, Configuration: Debug Win32 ------
Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.
Build log was saved at "file://c:\Torque\SDK\lib\out.VC8.DEBUG\opengl2d3d\BuildLog.htm"
opengl2d3d - 1 error(s), 0 warning(s)
------ Build started: Project: glu2d3d, Configuration: Debug Win32 ------
Compiling manifest to resources...
Linking...
Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.
Build log was saved at "file://c:\Torque\SDK\lib\out.VC8.DEBUG\opengl2d3d\BuildLog.htm"
glu2d3d - 1 error(s), 0 warning(s)
------ Build started: Project: Torque Demo, Configuration: Debug Win32 ------
Performing Custom Build Step
Project : error PRJ0003 : Error spawning 'cmd.exe'.
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '..\engine\out.VC8.DEBUG\abstractPolyList.sbr': No such file or directory
Build log was saved at "file://c:\Torque\SDK\engine\out.VC8.DEBUG\BuildLog.htm"
Torque Demo - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 3 failed, 4 up-to-date, 0 skipped ==========


can someone help me out? thanx a lot!
#5
05/21/2006 (6:46 pm)
@ Marc

Perhaps these links will help you out. This is a general VC++ 2005 issue, not a TGE issue. There are a few different solutions proposed that worked.

www.interact-sw.co.uk/iangblog/2005/09/12/cmdspawnerror
forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3147&SiteID=1
forums.microsoft.com/MSDN/ShowPost.aspx?PostID=378842&SiteID=1
#6
05/21/2006 (9:05 pm)
Hmmm.. this is interesting... after reading these posts i did the following... i copied my cmd.exe from system32 to the "C:\Program Files\Microsoft Visual Studio 8\VC\bin" folder and now it seems to be compiling.

apparently there is path reading issue with VC... so if u change %SystemRoot%\system32 to C:\WINDOWS\system32 you should be ok. or just copy the file over!

thanx a lot Shyam!

now if only i could get rid of this list of projects in my Start Page in VC that were made in attempts to fix the problem! :)