Compiling TSE with VS 2005 Express Edition
by Willbkool · in Torque Game Engine Advanced · 11/25/2005 (10:04 am) · 66 replies
This is the error I'm getting when I try to compile:
LINK : fatal error LNK1104: cannot open file 'ljpeg.lib'
Any thoughts on fixing this error?
LINK : fatal error LNK1104: cannot open file 'ljpeg.lib'
Any thoughts on fixing this error?
About the author
#42
if you converted the VC7 project files yourself you need to do two things
07/07/2006 (3:49 am)
Nope i'm using the june version as well. do you use the newest CVS version and the VC8 project files?if you converted the VC7 project files yourself you need to do two things
Quote:
You can simply load the VC7 project files on Visual Studio 2005. It will convert the files to VC8 then.
The Rest is just setting "Character Set" to "Use Unicode Character Set" in "Torque Shader Engine Properties" >> "Configuration Properties" >> "General"
and "Treat wchar_t as Built-In Type" to "No" in "Torque Shader Engine Properties" >> "Configuration Properties" >> "C/C++" >> "Language".
I used Visual C++ 2005 Express Edition, the Windows SDK Beta 2 (Vista SDK) and the June 2006 DirectX to compile.
#43
BSCMAKE: error BK1510 : corrupt .SBR file '..\engine\out.vc8.win32.debug\tsDecal.sbr'
well, at least I'm getting closer.
Edit: Hmmmm... but it didnt make any difference... i got a stable build anyways, go figure :).
07/07/2006 (8:07 am)
Ok. I treid opening VC8 and compiling, I'm getting 2 warnings and 1 error:BSCMAKE: error BK1510 : corrupt .SBR file '..\engine\out.vc8.win32.debug\tsDecal.sbr'
well, at least I'm getting closer.
Edit: Hmmmm... but it didnt make any difference... i got a stable build anyways, go figure :).
#44
07/07/2006 (10:10 am)
The error you mention should be fixed with a clean rebuilt)
#45
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I think it is all linked to one line in the winnt.h file which is line 222 in that file:
typedef void * POINTER_64 PVOID64;
POINTER_64 does not show up defined anywhere in this file. I'm using the x86 version of the platform SDK (I've tried both Windows Server 2003 SP1 and R2)and Visual C++ 2005 Express. Anyone have any ideas?
Edit: Never mind, I found another post that has the fix.
www.garagegames.com/mg/forums/result.thread.php?qt=36800
07/16/2006 (1:32 pm)
I'm trying to build the TSE and I get one set of recurring errors:C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I think it is all linked to one line in the winnt.h file which is line 222 in that file:
typedef void * POINTER_64 PVOID64;
POINTER_64 does not show up defined anywhere in this file. I'm using the x86 version of the platform SDK (I've tried both Windows Server 2003 SP1 and R2)and Visual C++ 2005 Express. Anyone have any ideas?
Edit: Never mind, I found another post that has the fix.
www.garagegames.com/mg/forums/result.thread.php?qt=36800
#46
any ideas what im supposed to do? or where i can get that file?
08/07/2006 (6:58 pm)
Hi everyone, i got almost everything working except that i get one error:c:\documents and settings\thomas\desktop\cvs\shader\tse\engine\platformwin32\windirectinput.h(24) : fatal error C1083: Cannot open include file: 'xinput.h': No such file or directory
any ideas what im supposed to do? or where i can get that file?
#47
Note, if using Win2k you will not be able to install a version of the SDK that has this, and will instead need to rip out the xinput code.
08/07/2006 (7:06 pm)
Your version of the DirectX SDK is not recent enough. xinput.h is the support for XBox360 controllers. Update your DX SDK and you should be OK.Note, if using Win2k you will not be able to install a version of the SDK that has this, and will instead need to rip out the xinput code.
#48
08/08/2006 (8:11 am)
Whats do u mean support for the xbox 360 controller? im already using it with my own code, does that xinput has any special things for the controller?
#49
08/08/2006 (10:27 am)
I don't know, I run Win2k and had to rip it out... all I know is that was what the xinput stuff was labelled as being for in the code base.
#50
my corewin_express.vsprops file looks like this:
where is the additional entries? i tried adding the fiels after kernel 32.lib without success.
can some one plz post there corewin_express.vsprops file? and how its supposed to look???
plz, its probably the last problem that i have
08/08/2006 (10:29 am)
Hmm, ok interesting i got that resoved, but now it seems im having problems with step 3:3) (Change) Using your favorite text editor, change the following file: C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\corewin_express.vsprops Add the following entries to the "Additional Entries" section: user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
my corewin_express.vsprops file looks like this:
<?xml version="1.0"?> <VisualStudioPropertySheet ProjectType="Visual C++" Version="8.00" Name="Core Windows Libraries"> <Tool Name="VCLinkerTool" AdditionalDependencies="kernel32.lib" /> </VisualStudioPropertySheet>
where is the additional entries? i tried adding the fiels after kernel 32.lib without success.
can some one plz post there corewin_express.vsprops file? and how its supposed to look???
plz, its probably the last problem that i have
#51
08/08/2006 (10:31 am)
Ps, the xbox 360 support is amazing, i checked it out by doing a search on mircosoft.com and type in xinput.h, you can get full control of the controller wow
#52
how is that file supposed to look?
plz someone help me
08/08/2006 (1:07 pm)
Aww, plz! someone plz post you corewin_express.vsprops file here, i did everything else, and everything went fine. i only get one error and thats that the libaries in step 3 arent loaded, i tired some variations but they didnt work! how is that file supposed to look?
plz someone help me
#53
08/09/2006 (9:38 am)
Hello?, plz any help at all is welcomed im just stuck at this small but significant problem
#54
08/09/2006 (9:39 am)
....interesting apparently i cant read.... the answere is at the top of this thread :s lol, sry
#55
fatal error LNK1104: cannot open file 'COMCTL32.LIB'
Mark
09/09/2006 (3:16 pm)
I get the following error, I figure I must be doing something stupid as I can't find it on any forum.fatal error LNK1104: cannot open file 'COMCTL32.LIB'
Mark
#56
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
To access the VC++ Directories section, click on Tools->Options, then Projects and Solutions (expand this), click on the rollout to the right that says Show Files .... Executable Files and change it to Library Files.
Then click on the New Line (Folder looking icon) and browse to the Lib folder containing your COMCTL32.LIB file.
If need be, use the arrow icons to bring it to the top of the list. Close the dialog, clean and recompile.
09/09/2006 (7:33 pm)
You need to change your VC++ Directories to point to this. To find where it is, do a search from C:\Program Files. I found mine here which is my Platform SDK.C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
To access the VC++ Directories section, click on Tools->Options, then Projects and Solutions (expand this), click on the rollout to the right that says Show Files .... Executable Files and change it to Library Files.
Then click on the New Line (Folder looking icon) and browse to the Lib folder containing your COMCTL32.LIB file.
If need be, use the arrow icons to bring it to the top of the list. Close the dialog, clean and recompile.
#57
You may want to check it out.
I haven't done a build with it.
09/09/2006 (8:34 pm)
There's been some updates to the tge 1.4 that are available using cvs. There are project files for vs2005You may want to check it out.
I haven't done a build with it.
#58
For some reason I thought this was for TGE, not TSE.
Sorry.
However, I have compiled TSE by just using the vs2005 solution/project file.
09/09/2006 (11:16 pm)
Whoops.For some reason I thought this was for TGE, not TSE.
Sorry.
However, I have compiled TSE by just using the vs2005 solution/project file.
#59
10/05/2006 (7:15 pm)
Well It compiles without error but does not start TSE, what am I doing wrong here?
#60
10/05/2006 (7:35 pm)
You need to click on the executable (in tse\examples).
Torque Owner Mattinn
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(137) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'UTF16 [2048]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(146) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'UTF16 [2048]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(155) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'UTF16 [2048]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(437) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(445) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\seastudios\tsesdk\tse\engine\core\unicode.h(45): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)'
while trying to match the argument list '(WCHAR [260], UTF8 *, unsigned int)'
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(509) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(542) : error C2664: 'CreateDirectoryW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(642) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [4096]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\winfileio.cpp(701) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\windinputdevice.cpp(613) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\seastudios\tsesdk\tse\engine\core\unicode.h(45): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)'
while trying to match the argument list '(WCHAR [260], UTF8 [512], unsigned int)'
c:\seastudios\tsesdk\tse\engine\platformwin32\windinputdevice.cpp(625) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\seastudios\tsesdk\tse\engine\core\unicode.h(45): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)'
while trying to match the argument list '(WCHAR [260], UTF8 [512], unsigned int)'
c:\seastudios\tsesdk\tse\engine\platformwin32\winconsole.cpp(49) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\win32winmgr.cpp(33) : error C2440: 'initializing' : cannot convert from 'UTF16 *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\win32winmgr.cpp(128) : error C2664: 'CreateWindowExW' : cannot convert parameter 3 from 'UTF16 [64]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\platformwin32\dxversionchecker.cpp(149) : warning C4996: '_wsplitpath' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdlib.h(782) : see declaration of '_wsplitpath'
Message: 'This function or variable may be unsafe. Consider using _wsplitpath_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\seastudios\tsesdk\tse\engine\gfx\d3d\screenshotd3d.cpp(66) : error C2664: 'D3DXSaveSurfaceToFileW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\gfx\d3d\gfxd3dtexturemanager.cpp(48) : error C2664: 'DXTraceW' : cannot convert parameter 4 from 'UTF16 [256]' to 'const WCHAR *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\gfx\d3d\gfxd3dtexturemanager.cpp(495) : error C2664: 'D3DXGetImageInfoFromFileW' : cannot convert parameter 1 from 'UTF16 [256]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\gfx\d3d\gfxd3dtexturemanager.cpp(504) : error C2664: 'D3DXCreateTextureFromFileW' : cannot convert parameter 2 from 'UTF16 [256]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\gfx\d3d\gfxd3dtexturemanager.cpp(515) : error C2664: 'D3DXCreateVolumeTextureFromFileW' : cannot convert parameter 2 from 'UTF16 [256]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\seastudios\tsesdk\tse\engine\gfx\d3d\gfxd3ddevice.cpp(1651) : error C2664: 'NVDXDiagWrapper::DXDiagNVUtil::GetDirectXVersion' : cannot convert parameter 3 from 'UTF16 *' to 'TCHAR *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
I'm wondering if its because I installed the DirectX june '06 version?