Game Development Community

Cannot Build TSE

by Charles Wolfsandle · in Torque Game Engine · 12/01/2005 (12:47 pm) · 10 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)

#1
12/01/2005 (12:48 pm)
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)
#2
12/01/2005 (12:49 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)
#3
12/01/2005 (12:49 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 ==========


Thanks for any help you can provide!

Charlie
#4
12/01/2005 (12:51 pm)
I don't own TSE so I am not the best person to answer this but it looks like problem with DirectX SDK library..maybe you didn't setup path or something like that?
#5
12/01/2005 (1:15 pm)
Charles...

Isn't there a private TSE forum for license holders?

I'd think this would be more appropriately placed there.
#6
12/01/2005 (1:19 pm)
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
#7
12/01/2005 (1:27 pm)
I haven't seen a private TSE forum.
#8
12/01/2005 (1:34 pm)
@Charles, TSE Private Forum
#9
12/01/2005 (1:35 pm)
Yep, you will probably get your answer there much faster ;)

As I said I could only guess.