Game Development Community

Build Errors

by Nicolai Dutka · in Torque Game Engine Advanced · 02/10/2009 (9:34 am) · 11 replies

I am trying to compile a vanilla copy of the T3D example but I am getting errors.

Visual C++ Express
Windows Vista Ultimate 64 (directX 10)

I only have 1 fatal error which I discovered is connected to a couple other errors. I will simply hunt them all down and paste them here in order. The LAST error is the one not letting me build, but it is giving errors due to dependancies having errors. Just by looking at the names of the files, it would seem to be an issue with DirectX 9 and me having DirectX 10... Any help would be greatly appreciated!

c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioVoice.h(13) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory

c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioVoice.h(13) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory

c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioVoice.h(13) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory

c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioBuffer.h(16) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory

..\..\..\..\..\engine\source\platformWin32\getdxver.cpp(20) : fatal error C1083: Cannot open include file: 'dxdiag.h': No such file or directory

c:\torque\tgea_1_8_0\engine\source\gfx\gl\gfxglwindowtarget.cpp(20) : warning C4702: unreachable code
c:\torque\tgea_1_8_0\engine\source\gfx\gl\gfxglwindowtarget.cpp(22) : warning C4702: unreachable code

c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9PrimitiveBuffer.pc.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9EnumTranslate.pc.cpp
gfxD3D9Device.pc.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9VertexBuffer.cpp
gfxD3D9TextureObject.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9TextureManager.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9Target.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9StateBlock.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
gfxD3D9ShaderMgr.cpp
gfxD3D9Shader.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
gfxD3D9QueryFence.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9PrimitiveBuffer.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9Device.regen-states.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9Device.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
gfxD3D9Cubemap.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
gfxD3D9CardProfiler.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
screenshotD3D8.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D8VertexBuffer.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
gfxD3D8TextureObject.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory

..\..\..\..\..\engine\source\gfx\D3D\screenshotD3D.cpp(6) : fatal error C1083: Cannot open include file: 'd3dx9core.h': No such file or directory




Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '..\..\Link\VC2k8.Release.Win32\T3D\screenshotD3D.sbr': No such file or directory

#1
02/10/2009 (10:01 am)
Sounds like you need to download and install the DX9 SDK...
#2
02/10/2009 (10:06 am)
Here's a link to the August 2008 DirectX SDK. Do not get the November 2008 SDK because there are problems with it, stick with the August 2008 DirectX SDK.
#3
02/10/2009 (10:38 am)
Thanks! Downloading now! :D
#4
02/10/2009 (11:25 am)
Ok, well... downloaded and installed the August 2008 DirectX SDK and still got errors, but the error window was smaller, so I can copy/paste the entire thing here:


Output Window      Compiling...
sfxXAudioVoice.cpp
sfxXAudioProvider.cpp
sfxXAudioDevice.cpp
sfxXAudioBuffer.cpp
c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioVoice.h(13) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory
getdxver.cpp
c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioVoice.h(13) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory
c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioVoice.h(13) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory
gfxPCD3D9Device.cpp
gfxD3D9PrimitiveBuffer.pc.cpp
c:\Torque\TGEA_1_8_0\engine\source\sfx/xaudio/sfxXAudioBuffer.h(16) : fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory
gfxD3D9EnumTranslate.pc.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9Device.pc.cpp
gfxD3D9VertexBuffer.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9TextureObject.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9TextureManager.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9Target.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9StateBlock.cpp
..\..\..\..\..\engine\source\platformWin32\getdxver.cpp(20) : fatal error C1083: Cannot open include file: 'dxdiag.h': No such file or directory
gfxD3D9ShaderMgr.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
gfxD3D9Shader.cpp
gfxD3D9QueryFence.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9PrimitiveBuffer.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
gfxD3D9Device.regen-states.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9Device.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9Cubemap.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
gfxD3D9CardProfiler.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
screenshotD3D.cpp
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
..\..\..\..\..\engine\source\gfx\D3D\screenshotD3D.cpp(6) : fatal error C1083: Cannot open include file: 'd3dx9core.h': No such file or directory
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/platformD3D.h(5) : fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
c:\Torque\TGEA_1_8_0\engine\source\gfx/D3D9/gfxD3D9Device.h(11) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '..\..\Link\VC2k8.Release.Win32\TechnoWizard\screenshotD3D.sbr': No such file or directory
#5
02/10/2009 (11:42 am)
I thought I remember having to change a setting somewhere odd because I am using Vista 64.... I did a search and could not locate my old posts about that. Ring any bells?
#6
02/10/2009 (12:12 pm)
Did you add the include and lib paths to your compiler, under Tools/Options/Projects & Solutions/Directories?
#7
02/11/2009 (6:55 am)
Oh, I fixed this but forgot to post how!!!

Simple really... I had been double-clicking my project's SLN file and it had been opening with Visual C++ Express. I closed everything and opened my Visual Studio 2008 full version from the start menu, then choose File->Open from the menu and opened my SLN that way. Ran the build and got 100% success! :D

PS: I never did add any includes.... I did do this once a LONG time ago, but that was a different project. Wouldn't I have to add them to each project?
#8
02/11/2009 (7:00 am)
Verified: The lib and include paths are already added.

I don't know if this was carried over from a previous project or what, but I never added these to the Solution....
#9
05/13/2009 (9:16 pm)
EDIT:

Ok I re-installed to a new location for a third time, created a new project, add DX paths and recompiled. No errors.

Not sure what I was doing wrong, but it didn't like something.
#10
05/13/2009 (9:54 pm)
Are you adding the DX paths to your project/solutions config, or did you add them to VC++ Directories?

If you go to Tools menu->Options->Projects and Solutions->VC++ Directories, and then add the include path under "Show directories for: Include files", and then add the library path under "Library files", it *should* be able to find the files for any new project you create without having to add them to the project config.
#11
05/14/2009 (8:33 am)
Personally I prefer to copy the DirectX SDK libs and headers into my projects' lib folder, that way I don't need to keep the SDKs updated in every machine I use, and I can have multiple projects each one with their own version, so I can go back to older projects without breaking them with a new SDK version.