How I got it to successfully compile and link in VS.NET 2008
by Caolan ODomhnaill · in 3D Isometric Kit · 04/12/2010 (1:36 pm) · 4 replies
Hello everyone,
After much trial, error, pouring through various emails and what not, I finally was able to get the following spec to compile on a Windows 7 machine using VS.NET 2008:
TGEA 1.8.2
AFX Combo Pack for TGEA 1.8.1
3D Isometric kit
VS.NET 2008 Build files for 3D Isometric Kit.
1. Install in this order as it says in the directions: TGEA, AFX, 3D Isometric.
2. Copy the VS.NET 2008 Build files into the Installpath Build Files directory for 3D Isometric kit.
3. Install the DirectX SDK For March 2009 found here: http://www.microsoft.com/downloads.
4. Open up the project in VS.NET 2008 and before you compile, before you link. Before you do anything, do this:
a. Open up the ISKDemo Properties.
b. Go to Configuration Properties of C/C++ -> General -> Additional Include Directories and click the [...] button on the far right of the field. Add a new entry and put in the Inc path to your DirectX March 2009 installation. Mine was this: C:\Torque\DirectX SDK\Include.
c. Repeat Step b except now add the Include directory for Windows SDK. Mine was this: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include.
d. In the same Properties go to Configuration Properties -> Linker -> General -> Additional Library Directories. Now add the installation path of your March 2009 DirectX installation. Mine was this: C:\Torque\DirectX SDK\Lib.
e. Go to Configuration Properties -> Linker -> Input and click the [...] button at the right of the Additional Dependancies field and remove these entries:
dxerr9.lib, x3daudio.lib
f. Click OK to save.
5. Right-click the iskDemo and click Add -> Existing Item and navigate to your DirectX March 2009 SDK installation directory for your libraries. Mine was this: C:\Torque\DirectX SDK\Lib\x86.
6. Insert the following lib's: d3d9.lib, d3dx9.lib, dxerr9.lib, x3daudio.lib.
7. Now compile and it should link as well.
I have reproduced this sequence of events twice now on the same machine.
After much trial, error, pouring through various emails and what not, I finally was able to get the following spec to compile on a Windows 7 machine using VS.NET 2008:
TGEA 1.8.2
AFX Combo Pack for TGEA 1.8.1
3D Isometric kit
VS.NET 2008 Build files for 3D Isometric Kit.
1. Install in this order as it says in the directions: TGEA, AFX, 3D Isometric.
2. Copy the VS.NET 2008 Build files into the Installpath Build Files directory for 3D Isometric kit.
3. Install the DirectX SDK For March 2009 found here: http://www.microsoft.com/downloads.
4. Open up the project in VS.NET 2008 and before you compile, before you link. Before you do anything, do this:
a. Open up the ISKDemo Properties.
b. Go to Configuration Properties of C/C++ -> General -> Additional Include Directories and click the [...] button on the far right of the field. Add a new entry and put in the Inc path to your DirectX March 2009 installation. Mine was this: C:\Torque\DirectX SDK\Include.
c. Repeat Step b except now add the Include directory for Windows SDK. Mine was this: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include.
d. In the same Properties go to Configuration Properties -> Linker -> General -> Additional Library Directories. Now add the installation path of your March 2009 DirectX installation. Mine was this: C:\Torque\DirectX SDK\Lib.
e. Go to Configuration Properties -> Linker -> Input and click the [...] button at the right of the Additional Dependancies field and remove these entries:
dxerr9.lib, x3daudio.lib
f. Click OK to save.
5. Right-click the iskDemo and click Add -> Existing Item and navigate to your DirectX March 2009 SDK installation directory for your libraries. Mine was this: C:\Torque\DirectX SDK\Lib\x86.
6. Insert the following lib's: d3d9.lib, d3dx9.lib, dxerr9.lib, x3daudio.lib.
7. Now compile and it should link as well.
I have reproduced this sequence of events twice now on the same machine.
About the author
#2
04/14/2010 (5:57 am)
this setup procedure is required for any installation of torque. though you should not have to do the setup more than once.
#3
Lame but it worked...
04/14/2010 (7:04 am)
What I have found also is that if I create a brand new project it will not compile. I get a load of errors that I was unable to resolve. So I ended up just copying the iskDemo to another directory and renaming it.Lame but it worked...
#4
Next applied AFX Combo Pack for TGEA 1.8.1 and I am getting the compilation errors I have not been able to solve.
Taking it over there to that forum.
:)
-Caolan.
04/15/2010 (4:41 pm)
Good news, sort of. I decided to build my project in steps as I have run out of ideas. Started off with just TGEA 1.8.2. Followed the steps above for adding incs and libs and it built!Next applied AFX Combo Pack for TGEA 1.8.1 and I am getting the compilation errors I have not been able to solve.
Taking it over there to that forum.
:)
-Caolan.
Torque 3D Owner Caolan ODomhnaill
1. When creating a new project, I have to do it all over again which makes sense.
2. Now getting compilation errors in new projects... Investigating.