Game Development Community

Error when building a new project

by kyle buffaloe · in Torque 3D Beginner · 12/23/2012 (4:08 pm) · 6 replies

Hello, I am quite new to torque3D and have almost everything setup. when I try to build my games in VS 2010 I get the error:

:userskyledocumentsgithubtorque3denginesourcesfxxaudiosfxxaudiobuffer.h(26): fatal error C1083: Cannot open include file: 'xaudio2.h': No such file or directory

I can tell this is due to DX but I don't know how to re-install because the current DX installer tells me I have the current version.

any suggestions?

About the author

Recent Threads


#1
12/23/2012 (4:56 pm)
You need to install the DirectX SDK - your runtimes are already up to date but the engine needs more than that to build.

The June 2010 release of the DXSDK 9.0c:

http://www.microsoft.com/en-us/download/details.aspx?id=6812

This SDK is now rolled in with the Platform SDK as far as I know, so in theory installing the latest version of that should work, too.
#2
12/23/2012 (7:03 pm)
Ok so I did did alot of trial and error, and eventually installed it, but now I get these errors

4>c:\users\kyle\documents\github\torque3d\my projects\tagame2\web\source\activex\stdafx.h(41): fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory
3>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
2> Creating library ../../../game/NP TAgame2 Plugin_DEBUG.lib and object ../../../game/NP TAgame2 Plugin_DEBUG.exp
2>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
#3
12/23/2012 (8:09 pm)
by the way this is a very recent install of windows
#4
12/23/2012 (8:38 pm)
You'll need to remove the "IE" part of the solution from the build.
It's an Internet Explorer project for Web deployment.
The file "atlbase.h" doesn't exist but is referenced in the stdafx header file.

As an alternative to compiling the source code, you can download the engine as a compiled file.
mit.garagegames.com/Torque3D-2.0.zip
#5
12/23/2012 (9:09 pm)
ok well I fixed that problem by doing the first part, the latter did not work but that problem is solved.

the new problem that something is misplaced or corrupt

1>------ Build started: Project: TAmmo DLL, Configuration: Debug Win32 ------
1> Creating library ../../../game/TAmmo_DEBUG.lib and object ../../../game/TAmmo_DEBUG.exp
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
2>------ Build started: Project: TAmmo, Configuration: Debug Win32 ------
2>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 2 failed, 14 up-to-date, 0 skipped ==========
#6
12/24/2012 (2:18 am)
I had that problem, installing Visual Studio 2010 service pack 1 fixed it.

www.microsoft.com/en-us/download/details.aspx?id=23691