# DX11 Getting NVIDIA SDK Samples to Compile

This topic is 2158 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi,

I've been trying to compile examples from the NVIDIA Graphics SDK 11 (http://developer.nvi...graphics-sdk-11). I have Visual Studio 2010 Ultimate, but was getting tons of linker errors. The SDK says it wants to be statically linked, but when I changed the Linker Input from /MD to /MT, I got even more linker problems.

I read (in the context of the CUDA SDK) that (the CUDA SDK at least) depends on the older compiler in Visual Studio 2008. I downloaded and installed Visual Studio 2008, and after correcting some superficial problems, I get linking errors in various projects. The main ones seem to be:LINK : fatal error LNK1104: cannot open file 'd3dx11effectsd.lib'andLINK : fatal error LNK1104: cannot open file 'DXUT10d.lib'
The examples run just fine on my computer--but from the precompiled binaries. I need to be able to compile them myself to make changes and understand how they work. Help!

Thanks,
-G

##### Share on other sites
Those 2 libs should be included with the sample. Or if you installed the full SDK, they're in ProgramData\NVIDIA Corporation\NVIDIA Direct3D SDK 11\Lib. Just set up your project's linker settings to include that directory and you should be good.

##### Share on other sites
Those 2 libs should be included with the sample. Or if you installed the full SDK, they're in ProgramData\NVIDIA Corporation\NVIDIA Direct3D SDK 11\Lib. Just set up your project's linker settings to include that directory and you should be good.
Awesome, that solves a huge part of it! It wants DXUT10d.lib, not DXUT10.lib, so it only compiles in release mode. Do the debug versions of these libraries just not exist?

Thanks,
-G

##### Share on other sites

[quote name='MJP' timestamp='1306219916' post='4814950']Those 2 libs should be included with the sample. Or if you installed the full SDK, they're in ProgramData\NVIDIA Corporation\NVIDIA Direct3D SDK 11\Lib. Just set up your project's linker settings to include that directory and you should be good.
Awesome, that solves a huge part of it! It wants DXUT10d.lib, not DXUT10.lib, so it only compiles in release mode. Do the debug versions of these libraries just not exist?

Thanks,
-G
[/quote]

Sorry, I have no idea. I can't find them either.

##### Share on other sites

[quote name='Geometrian' timestamp='1306246805' post='4815128']
[quote name='MJP' timestamp='1306219916' post='4814950']Those 2 libs should be included with the sample. Or if you installed the full SDK, they're in ProgramData\NVIDIA Corporation\NVIDIA Direct3D SDK 11\Lib. Just set up your project's linker settings to include that directory and you should be good.
Awesome, that solves a huge part of it! It wants DXUT10d.lib, not DXUT10.lib, so it only compiles in release mode. Do the debug versions of these libraries just not exist?

Thanks,
-G
[/quote]

Sorry, I have no idea. I can't find them either.
[/quote]

They do but they are part of the DX sdk and not the NVidia SDK I assume that they tell you somewhere in there release notes that you should have the latest DX SDK installed and where to find it if you haven't installed that.

##### Share on other sites

[quote name='MJP' timestamp='1306259096' post='4815214']
[quote name='Geometrian' timestamp='1306246805' post='4815128']
[quote name='MJP' timestamp='1306219916' post='4814950']Those 2 libs should be included with the sample. Or if you installed the full SDK, they're in ProgramData\NVIDIA Corporation\NVIDIA Direct3D SDK 11\Lib. Just set up your project's linker settings to include that directory and you should be good.
Awesome, that solves a huge part of it! It wants DXUT10d.lib, not DXUT10.lib, so it only compiles in release mode. Do the debug versions of these libraries just not exist?

Thanks,
-G
[/quote]

Sorry, I have no idea. I can't find them either.
[/quote]

They do but they are part of the DX sdk and not the NVidia SDK I assume that they tell you somewhere in there release notes that you should have the latest DX SDK installed and where to find it if you haven't installed that.
[/quote]

The SDK only comes with source + projects for DXUT and Effects11, it doesn't have any precompiled static libs.

##### Share on other sites
They do but they are part of the DX sdk and not the NVidia SDK I assume that they tell you somewhere in there release notes that you should have the latest DX SDK installed and where to find it if you haven't installed that.
Well, I have had the (latest) DirectX SDK installed for some time now. Any clues on where it might be in the SDK--I didn't see them?

Thanks,

##### Share on other sites
Source for the libraries you need are in \NVIDIA Direct3D SDK 11\source\Common

As per usual, if building with 2008 you will need to add $(DXSDK_DIR)/include; to all of the front of all the Additional Include Directories for each project. Build debug and the 'd' versions of the libs will show up in NVIDIA Direct3D SDK 11\Lib #### Share this post ##### Link to post ##### Share on other sites Source for the libraries you need are in \NVIDIA Direct3D SDK 11\source\Common As per usual, if building with 2008 you will need to add$(DXSDK_DIR)/include; to all of the front of all the Additional Include Directories for each project.

Build debug and the 'd' versions of the libs will show up in NVIDIA Direct3D SDK 11\Lib

Which version of Directx SDK do I need? It don't work with "Microsoft DirectX SDK (March 2009)", I get errors:
 error C2065: "D3D11_BUFFER_UAV_FLAG_COUNTER": undeclared identifier ...... 

##### Share on other sites
Is there any good reason not to have the newest SDK, which is June 2010?

1. 1
Rutin
23
2. 2
3. 3
JoeJ
20
4. 4
5. 5

• 9
• 33
• 41
• 23
• 13
• ### Forum Statistics

• Total Topics
631745
• Total Posts
3002003
×