Sign in to follow this  
??????? ?????

What can cause visual studio to be unable to compile a Directx11 project?

Recommended Posts

??????? ?????    143
[color=#000000][font=arial, helvetica, sans-serif][size=3]When I played around with sample Directx9 projects from tutorial sites,they would run with no problem,but whenever I try to compile a Directx11 project,I get [/size][/font][/color]
[quote]error MSB6006: "cmd.exe" exited with code 9009[/quote]
Is there a way to fix this?Do I need some kind of patch for VS?
(I'm using Visual Studio 2010 on Windows 7 64 bit.)

Share this post


Link to post
Share on other sites
mhagain    13430
Don't assume that VS is broken and needs patching - it's most likely your code and/or project settings. Why are you running it under a command shell? You'll need to post some code so that people can see what you're doing and comment further.

Share this post


Link to post
Share on other sites
??????? ?????    143
[quote name='mhagain' timestamp='1339060195' post='4946986']
Don't assume that VS is broken and needs patching - it's most likely your code and/or project settings. Why are you running it under a command shell? You'll need to post some code so that people can see what you're doing and comment further.
[/quote]

I'm using Frank Luna's directx11 sample: [url="http://www.d3dcoder.net/d3d11.htm"]http://www.d3dcoder.net/d3d11.html[/url]

Pretty much all of them give me this error,I'm trying to compile the GeometryShader example right now in Part1.

Share this post


Link to post
Share on other sites
BitFactoryAS    103
This is most likely caused by missing executables under the build phase. Probably fxc.exe which is the DirectX effects compiler.

Do the following in VS2010:

Project -> Properties -> Configuration Properties -> VC++ Directories.

In "Executable Directories", add the path to the DirectX utilities bin folder, which is typically: "\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86". Be sure to check what it is exactly for your installation of DirectX. This folder contains fxc.exe and much more.
Apply changes and re-compile.

Other possible causes:
- Include directories
- Library directories
- Platform Toolset under Configuration Properties -> General, should be v100 or Windows7.1SDK.

All of the latter three possible causes have similar fixes to the first one described above, namely to specify the correct paths. Edited by amandip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this