Visual Studio Setup instructions for VC++ 2010
by David Stocker · in Torque 3D Professional · 09/19/2010 (8:31 pm) · 15 replies
So I’ve just installed beta 3 and I’m at step 5 of configuring Visual Studio*. Then I hit a small roadblock. VC++ Directories is deprecated in VC++ 2010 (which is the current VS Express that Microsift delivers and the one that you get if you follow the links for the dependencies in the T3D documentation). Now I could roll back to VC++ 2008, but I recall Matt Fairfax saying something a while back about beta 3 having a config for VC++ 2010. Given that beta 3 was released over the weekend, I’m not surprised that the instructions are not up.
So this question is for Monday morning. Do you guys have a revised visual studio setup protocol?
(*) http://docs.torquepowered.com/torque-3d/official/index.html?content/documentation/Beginners%20Guide/Getting%20Started/Setup.html
So this question is for Monday morning. Do you guys have a revised visual studio setup protocol?
(*) http://docs.torquepowered.com/torque-3d/official/index.html?content/documentation/Beginners%20Guide/Getting%20Started/Setup.html
#2
You should be able to safely skip that step of the Setup if you are on VS2010.
I am actually a little embarrassed to admit that we should have been doing this all along for the last several years (once the DXSDK starting setting that environment variable) and saving everyone the trouble =P
I figure with VS2010 it is a goo time to test this and if it works we can look at rolling it backwards to the older versions of Visual Studio.
09/20/2010 (6:05 pm)
One thing I changed for VS2010 is that I have it already including the DirectX SDK directories via the environment variable DXSDK_DIR (which should be getting set when you install the DirectX SDK).You should be able to safely skip that step of the Setup if you are on VS2010.
I am actually a little embarrassed to admit that we should have been doing this all along for the last several years (once the DXSDK starting setting that environment variable) and saving everyone the trouble =P
I figure with VS2010 it is a goo time to test this and if it works we can look at rolling it backwards to the older versions of Visual Studio.
#3
"DXSDK_DIR=d:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\"
My work around was to add the following to my buildfiles/config/project.conf:
09/21/2010 (5:49 pm)
I just installed VS2010 express and the June 2010 DirectX SDK. I generated my project afterward but it wasn't finding DirectX libraries and includes. DXDSK_DIR seems to be set correctly on my system to:"DXSDK_DIR=d:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\"
My work around was to add the following to my buildfiles/config/project.conf:
addIncludePath( "D:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Include");
addProjectLibDir( "D:\Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x86");
Torque3D::endConfig();
#4
Quick question: Is this with a new project or a pre-Beta 3 project that you are porting over?
09/21/2010 (5:59 pm)
Hrm...Quick question: Is this with a new project or a pre-Beta 3 project that you are porting over?
#5
09/21/2010 (6:05 pm)
It's a pre-beta 3 project I'm porting. I copied the entire buildFiles folder from the beta 3 Full template over the top of my old buildFiles folder.
#6
Torque.Cpp.Win32.user.props
Torque.Cpp.x64.user.props
If you do that and regenerate the project it should no longer need the additions to your project.conf.
09/21/2010 (6:13 pm)
Ok...I am not sure why they got filtered out of the build but for VS2010 to pick up the DXSDK_DIR correctly you will need to copy these two files into your buildFiles\VisualStudio 2010\projects folder:Torque.Cpp.Win32.user.props
Torque.Cpp.x64.user.props
If you do that and regenerate the project it should no longer need the additions to your project.conf.
#7
I have 2008 and 2010 installed at the min...
EDIT: Not a manual thing, I should say does 2010 have to be the only one installed / default...
09/21/2010 (6:42 pm)
I might be being really stupid here, but how do you open your project in 2010, I can only see 2005 and 2008 as options, or is this still a manual thing? I have 2008 and 2010 installed at the min...
EDIT: Not a manual thing, I should say does 2010 have to be the only one installed / default...
#8
You will need to go into <Your Project>\buildFiles\VisualStudio 2010 and open the <Your Project>.sln file you find there.
09/21/2010 (6:49 pm)
As noted in the Torque3D 1.1 Beta 3 Changelog, the Torque Toolbox doesn't have support for Visual Studio 2010 yet.You will need to go into <Your Project>\buildFiles\VisualStudio 2010 and open the <Your Project>.sln file you find there.
#10
09/21/2010 (7:10 pm)
Thanks Matt, that did the trick.
#11
Edit:
========== Build: 16 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Thanks Matt!
09/23/2010 (11:18 am)
Ahhh... I created a new project and was getting build errors, mostly related to DX and audio. I was going to post them, but looking at Matt's tip above, I think I should try copying those two files first. I'll try it tonight.Edit:
========== Build: 16 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Thanks Matt!
#12
09/26/2010 (5:27 pm)
@ Matt Fairfax -- Note that those property sheet files have names that end with .user.props. They're probably getting filtered out along with other .user files when the installer is built.
#13
[Edit]:
I added the two files in mats post above straight to the template folders, and built a new project... and they got added ... so it seems GG have just forgotten to include them (or their publish system missed them).
05/19/2011 (3:38 pm)
I still get a build error when trying to build a clean project: 18>c:torquetorque 3d pro 1.1 previewmy projectshelioswebsourceactivexstdafx.h(19): fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory[Edit]:
I added the two files in mats post above straight to the template folders, and built a new project... and they got added ... so it seems GG have just forgotten to include them (or their publish system missed them).
#14
05/19/2011 (3:53 pm)
@Mikael: u use the VS/VC Express Edition? The ATL ins'nt included in the express edition.
#15
05/21/2011 (9:57 am)
yea .. after doing another google hunt i found it and deactivated the IE plug. Won't need it any way ...
Torque 3D Owner Daniel Eden