Game Development Community

Cannot Build TSE

by Charles Wolfsandle · in Torque Game Engine Advanced · 12/01/2005 (2:06 pm) · 9 replies

I have been trying to Build TSE now without much luck. I have followed all of the problems documented and implemented the fixes they contained, but this persists...

5>Linking...
5>gfxInit.win32.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "public: static void __cdecl GFXInit::createDevice(struct GFXAdapter)" (?createDevice@GFXInit@@SAXUGFXAdapter@@@Z)
5>gfxD3DDevice.obj : error LNK2001: unresolved external symbol _Direct3DCreate9@4
5>gfxD3DCubemap.obj : error LNK2019: unresolved external symbol _D3DXLoadSurfaceFromSurface@32 referenced in function "private: void __thiscall GFXD3DCubemap::fillCubeTextures(class GFXTexHandle *,struct IDirect3DDevice9 *)" (?fillCubeTextures@GFXD3DCubemap@@AAEXPAVGFXTexHandle@@PAUIDirect3DDevice9@@@Z)
5>atlasTQTFileD3D.obj : error LNK2001: unresolved external symbol _D3DXLoadSurfaceFromSurface@32
5>gfxD3DCubemap.obj : error LNK2019: unresolved external symbol _D3DXMatrixPerspectiveFovRH@20 referenced in function "public: virtual void __thiscall GFXD3DCubemap::updateDynamic(class Point3F &)" (?updateDynamic@GFXD3DCubemap@@UAEXAAVPoint3F@@@Z)
5>screenshotD3D.obj : error LNK2001: unresolved external symbol _D3DXMatrixPerspectiveFovRH@20
5>gfxD3DDevice.obj : error LNK2019: unresolved external symbol _D3DXMatrixOrthoOffCenterLH@28 referenced in function "public: virtual void __thiscall GFXD3DDevice::setClipRect(class RectI const &)" (?setClipRect@GFXD3DDevice@@UAEXABVRectI@@@Z)
5>gfxD3DDevice.obj : error LNK2019: unresolved external symbol _D3DPERF_BeginEvent@8 referenced in function "public: virtual void __thiscall GFXD3DDevice::enterDebugEvent(class ColorI,char const *)" (?enterDebugEvent@GFXD3DDevice@@UAEXVColorI@@PBD@Z)
5>gfxD3DDevice.obj : error LNK2019: unresolved external symbol _D3DPERF_EndEvent@0 referenced in function "public: virtual void __thiscall GFXD3DDevice::leaveDebugEvent(void)" (?leaveDebugEvent@GFXD3DDevice@@UAEXXZ)
5>gfxD3DDevice.obj : error LNK2019: unresolved external symbol _D3DPERF_SetMarker@8 referenced in function "public: virtual void __thiscall GFXD3DDevice::setDebugMarker(class ColorI,char const *)" (?setDebugMarker@GFXD3DDevice@@UAEXVColorI@@PBD@Z)
5>gfxD3DDevice.obj : error LNK2019: unresolved external symbol _D3DXVec3Project@24 referenced in function "public: virtual void __thiscall GFXD3DDevice::project(class Point3F &,class Point3F &,class MatrixF &,class MatrixF &,class RectI &)" (?project@GFXD3DDevice@@UAEXAAVPoint3F@@0AAVMatrixF@@1AAVRectI@@@Z)
5>gfxD3DDevice.obj : error LNK2019: unresolved external symbol _D3DXVec3Unproject@24 referenced in function "public: virtual void __thiscall GFXD3DDevice::unProject(class Point3F &,class Point3F &,class MatrixF &,class MatrixF &,class RectI &)" (?unProject@GFXD3DDevice@@UAEXAAVPoint3F@@0AAVMatrixF@@1AAVRectI@@@Z)

#1
12/01/2005 (2:06 pm)
5>gfxD3DShader.obj : error LNK2019: unresolved external symbol _D3DXAssembleShaderFromFileA@24 referenced in function "private: void __thiscall GFXD3DShader::initVertShader(char *,char *)" (?initVertShader@GFXD3DShader@@AAEXPAD0@Z)
5>gfxD3DShader.obj : error LNK2019: unresolved external symbol _D3DXCompileShaderFromFileA@36 referenced in function "private: void __thiscall GFXD3DShader::initVertShader(char *,char *)" (?initVertShader@GFXD3DShader@@AAEXPAD0@Z)
5>gfxD3DTextureManager.obj : error LNK2019: unresolved external symbol _D3DXCreateTexture@32 referenced in function "private: void __thiscall GFXD3DTextureManager::innerCreateTexture(class GFXD3DTextureObject *,unsigned int,unsigned int,unsigned int,enum GFXFormat,class GFXTextureProfile *,unsigned int,bool)" (?innerCreateTexture@GFXD3DTextureManager@@AAEXPAVGFXD3DTextureObject@@IIIW4GFXFormat@@PAVGFXTextureProfile@@I_N@Z)
5>gfxD3DTextureManager.obj : error LNK2019: unresolved external symbol _D3DXCreateVolumeTexture@36 referenced in function "private: void __thiscall GFXD3DTextureManager::innerCreateTexture(class GFXD3DTextureObject *,unsigned int,unsigned int,unsigned int,enum GFXFormat,class GFXTextureProfile *,unsigned int,bool)" (?innerCreateTexture@GFXD3DTextureManager@@AAEXPAVGFXD3DTextureObject@@IIIW4GFXFormat@@PAVGFXTextureProfile@@I_N@Z)
5>gfxD3DTextureManager.obj : error LNK2019: unresolved external symbol _D3DXLoadSurfaceFromMemory@40 referenced in function "protected: virtual bool __thiscall GFXD3DTextureManager::_loadTexture(class GFXTextureObject *,class GBitmap *)" (?_loadTexture@GFXD3DTextureManager@@MAE_NPAVGFXTextureObject@@PAVGBitmap@@@Z)
5>atlasTQTFileD3D.obj : error LNK2001: unresolved external symbol _D3DXLoadSurfaceFromMemory@40
5>gfxD3DTextureManager.obj : error LNK2019: unresolved external symbol _D3DXLoadVolumeFromMemory@44 referenced in function "protected: virtual bool __thiscall GFXD3DTextureManager::_loadTexture(class GFXTextureObject *,void *)" (?_loadTexture@GFXD3DTextureManager@@MAE_NPAVGFXTextureObject@@PAX@Z)
5>gfxD3DTextureManager.obj : error LNK2019: unresolved external symbol _D3DXCreateVolumeTextureFromFileA@12 referenced in function "protected: virtual class GFXTextureObject * __thiscall GFXD3DTextureManager::_loadDDSHack(char const *,class GFXTextureProfile *)" (?_loadDDSHack@GFXD3DTextureManager@@MAEPAVGFXTextureObject@@PBDPAVGFXTextureProfile@@@Z)
5>gfxD3DTextureManager.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileA@12 referenced in function "protected: virtual class GFXTextureObject * __thiscall GFXD3DTextureManager::_loadDDSHack(char const *,class GFXTextureProfile *)" (?_loadDDSHack@GFXD3DTextureManager@@MAEPAVGFXTextureObject@@PBDPAVGFXTextureProfile@@@Z)
5>gfxD3DTextureManager.obj : error LNK2019: unresolved external symbol _D3DXGetImageInfoFromFileA@8 referenced in function "protected: virtual class GFXTextureObject * __thiscall GFXD3DTextureManager::_loadDDSHack(char const *,class GFXTextureProfile *)" (?_loadDDSHack@GFXD3DTextureManager@@MAEPAVGFXTextureObject@@PBDPAVGFXTextureProfile@@@Z)
5>screenshotD3D.obj : error LNK2019: unresolved external symbol _D3DXSaveSurfaceToFileA@20 referenced in function "public: virtual void __thiscall ScreenShotD3D::captureStandard(void)" (?captureStandard@ScreenShotD3D@@UAEXXZ)
5>atlasTQTFileD3D.obj : error LNK2019: unresolved external symbol _D3DXSaveTextureToFileA@16 referenced in function "public: unsigned int __thiscall AtlasTQTFile::writeLeafTile(unsigned char *,class FileStream &,unsigned int,class Point2I)" (?writeLeafTile@AtlasTQTFile@@QAEIPAEAAVFileStream@@IVPoint2I@@@Z)
#2
12/01/2005 (2:07 pm)
5>atlasTQTFileD3D.obj : error LNK2019: unresolved external symbol _D3DXSaveTextureToFileInMemory@16 referenced in function "public: unsigned int __thiscall AtlasTQTFile::writeLeafTile(unsigned char *,class FileStream &,unsigned int,class Point2I)" (?writeLeafTile@AtlasTQTFile@@QAEIPAEAAVFileStream@@IVPoint2I@@@Z)
5>atlasTQTFileD3D.obj : error LNK2019: unresolved external symbol _D3DXLoadSurfaceFromFileInMemory@36 referenced in function "void __cdecl getTileSurface(class AtlasTQTFile *,class FileStream &,unsigned int,class Point2I,struct IDirect3DSurface9 *,struct tagRECT *)" (?getTileSurface@@YAXPAVAtlasTQTFile@@AAVFileStream@@IVPoint2I@@PAUIDirect3DSurface9@@PAUtagRECT@@@Z)
5>../example/TSE.exe : fatal error LNK1120: 22 unresolved externals
5>Build log was saved at "file://v:\TSE\engine\out.vc7.win32.release\BuildLog.htm"
5>Torque Shader Engine - 27 error(s), 1 warning(s)
========== Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

This is in Options-->Projects and Solutios-->VC++ Directories

(Executable files)
$(VCInstallDir)bin
$(VCInstallDir)PlatformSDK\bin
$(VSInstallDir)Common7\Tools\bin
$(VSInstallDir)Common7\tools
$(VSInstallDir)Common7\ide
$(ProgramFiles)\HTML Help Workshop
$(FrameworkSDKDir)bin
$(FrameworkDir)$(FrameworkVersion)
$(VSInstallDir)
C:\WINDOWS\system32

(Include Files)
C:\Program Files (x86)\Microsoft DirectX 9.0 SDK (October 2005)\Include
$(VCInstallDir)include
$(VCInstallDir)PlatformSDK\include
$(FrameworkSDKDir)include
C:\Program Files\Microsoft Platform SDK\Include
C:\Program Files\Microsoft Platform SDK\Include\mfc

(Library Files)
C:\Program Files (x86)\Microsoft DirectX 9.0 SDK (October 2005)\Lib\x64
C:\Program Files (x86)\Microsoft DirectX 9.0 SDK (October 2005)\Lib\x86
$(VCInstallDir)lib
$(VCInstallDir)PlatformSDK\lib
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib
C:\Program Files\Microsoft Platform SDK\Lib

Here are my Linker Input Additional Dependencies:

ljpeg.lib
lpng.lib
lungif.lib
zlib.lib
d3d9.lib
dxerr9.lib
d3dx9.lib
COMCTL32.LIB
COMDLG32.LIB
USER32.LIB
ADVAPI32.LIB
GDI32.LIB
WINMM.LIB
WSOCK32.LIB
vfw32.lib
ole32.lib-------------------------------------------------------->I Added
oleaut32.lib---------------------------------------------------->I Added
../lib/vorbis/win32/ogg_static.lib
../lib/vorbis/win32/vorbis_static_mt.lib

I am using Visual C++ 2005 Express Edition
#3
12/01/2005 (2:07 pm)
Thanks in Advance for any help you could provide!

Charlie
#4
12/01/2005 (6:13 pm)
Looks like it didn't like your directX libraries. Well I use VC6 so I wish I could help more...

What video card are you running btw??
#5
12/01/2005 (6:26 pm)
You need to get latest DirectX SDK and put the it in include path
#6
12/01/2005 (8:46 pm)
Got it to work!

used these instructions primarily:
www.garagegames.com/mg/forums/result.thread.php?qt=36953

When I ran it though it seems to just have a tech demo...is there some equivalent to the FPS demo of TGE?
#7
12/01/2005 (10:28 pm)
Grats on your build. For FPS there is an example work in progress by Joseph Nutt. It's on the front page of
"Getting Started" forum. Welcome to the TSE EA club.
#8
12/03/2005 (10:09 am)
Thanks...Kind of makes me mad though since I was able to compile it on my laptop, but not on my Win XP 64 Bit Dual Xeon Workstation....ARRg!

Oh well, I guess that will give me something to work on this weekend!
#9
12/03/2005 (10:14 am)
It figures that As soon as I posted the last message it compiled...I have found that TSE does not like Direct X X64 stuff