Game Development Community

Errors compiling debug of TGB 1.7.2

by Wenceslao Villanueva Jr. · in Torque Game Builder · 02/19/2008 (1:08 am) · 26 replies

I'm trying to compile a debug version of TGB 1.7.2 using Visual C++ 2008 Express Edition and I'm getting errors while compiling that I'm not sure how to solve. The errors occur while compiling TGBGame. I was able to compile 1.5 and 1.6 but 1.7.2 isn't working. rose of #garagegames suggested that there may be problems with my UNICODE settings but I'm unsure on how to solve it.

The output can be found at:
rafb.net/p/hIO4dE26.html

The first couple of lines (incase the paste goes away) are:
1>------ Skipped Build: Project: TorqueGameBuilder, Configuration: Debug Win32 ------
1>Project not selected to build for this solution configuration
2>------ Build started: Project: TGBGame, Configuration: Debug Win32 ------
2>Compiling...
2>win32MsgBox.cpp
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\nativedialogs\win32msgbox.cpp(76) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR'
2> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2>win32DirectoryResolver.cpp

Any help or insights would be helpful. Thanks!
Page«First 1 2 Next»
#21
05/07/2008 (3:52 am)
2>winD3DVideo.cc
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wind3dvideo.cc : error C2471: cannot update program database 'c:\program files\garagegames\torquegamebuilder-1.7.2\engine\link\debug.win32\tgbgame.pdb'
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wind3dvideo.cc(734) : fatal error C1903: unable to recover from previous error(s); stopping compilation
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wind3dvideo.cc(734) : error C2418: cannot delete browser file: ../../Link/Debug.Win32/TGBGame\winD3DVideo.sbr
2>winCPUInfo.cc
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wincpuinfo.cc : error C2471: cannot update program database 'c:\program files\garagegames\torquegamebuilder-1.7.2\engine\link\debug.win32\tgbgame.pdb'
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wincpuinfo.cc(242) : fatal error C1903: unable to recover from previous error(s); stopping compilation
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wincpuinfo.cc(242) : error C2418: cannot delete browser file: ../../Link/Debug.Win32/TGBGame\winCPUInfo.sbr
2>winConsole.cc
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winconsole.cc : error C2471: cannot update program database 'c:\program files\garagegames\torquegamebuilder-1.7.2\engine\link\debug.win32\tgbgame.pdb'
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winconsole.cc(45) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
2>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winconsole.cc(299) : fatal error C1903: unable to recover from previous error(s); stopping compilation
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winconsole.cc(299) : error C2418: cannot delete browser file: ../../Link/Debug.Win32/TGBGame\winConsole.sbr
2>cardProfile.cpp
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\cardprofile.cpp : error C2471: cannot update program database 'c:\program files\garagegames\torquegamebuilder-1.7.2\engine\link\debug.win32\tgbgame.pdb'
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\cardprofile.cpp(59) : fatal error C1903: unable to recover from previous error(s); stopping compilation
2>c:\program files\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\cardprofile.cpp(59) : error C2418: cannot delete browser file: ../../Link/Debug.Win32/TGBGame\cardProfile.sbr
2>Generating Code...
2>Creating browse information file...
2>Microsoft Browse Information Maintenance Utility Version 9.00.21022
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>BSCMAKE: error BK1506 : cannot open file '..\..\Link\Debug.Win32\TGBGame\cardProfile.sbr': No such file or directory
2>Build log was saved at "file://c:\Program Files\GarageGames\TorqueGameBuilder-1.7.2\engine\Link\Debug.Win32\TGBGame\BuildLog.htm"
2>TGBGame - 156 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 1 skipped ==========
#22
05/07/2008 (3:56 am)
These are the errors I am getting while I made a built (Yes in this I have Moidified the macro line(#define ) to "0x0501" as you said).

I have post the complete problem so, You can get the idea exactly.

Thanks Melv for reply,
#23
05/07/2008 (4:29 am)
Pratik, for the love of all that is holy, stop posting this stuff everywhere. You MUST install the Windows Platform SDK. You *will not* be able to compile TGB in VS without it.
#24
05/07/2008 (4:54 am)
Ya sure

Thanks Phillip for help & suggestion.........
#25
06/10/2008 (4:58 am)
Just to bump this

If you upgrade to 1.7.3 and have Visual C++ 2008 and the new platform SDK (as per the tutorial page on compiling a debug copy of Torque) you will get approx 8 or so errors BUT if you follow the advice given by Melv May and find the platform32.h file and change to "0x0501" then you shouldn't have any errors. All 8 projects should compile properly if you followed the instructions exactly.

The only difference is that the newly compiled files will be in your install\tgb folder.

Thanks to Melv for that fix :)
#26
06/18/2008 (1:02 pm)
Just confirmed the last post ..... thanks guys
Page«First 1 2 Next»