Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Tags in this Discussion

Problems trying to compile/link Direct3D 10 SDK Smoke sample
  • I've been trying to compile this sample (http://developer.download.nvidia.com/SDK/10/Samples/Smoke.zip) that's included with the set of samples from the Direct3D 10 SDK so that I can experiment with it, but I've been having a lot of trouble trying to make it work. I have installed the Direct3D 10 SDK, Cg 3.0, Microsoft DirectX SDK (February 2010), and am attempting to compile the sample on Visual Studio 2008. I've encountered a number of issues so far which I've documented below, but I'm stuck on how to fix a linker error with the .lib file nvutd.lib. Any help would be very much appreciated!

    Problem 1: FXC custom build step fails as "'fxc.exe' is not recognized as an internal or external command.
    - FXC.rules file modified to include the path where the x86 FXC executable is, in particular:
    CommandLine=""$(DXSDK_DIR)Utilities\bin\x86\fxc.exe" [output] [target] [strict] [compat] [perf] [noopt] [nopre] [child] [Inputs]"

    Problem 2: Voxelizer.fx(281,19): error X4580: emitting a system-interpreted value which is not written in every execution path of the shader
    - Fixed by forcing default values onto the GsGenVelOutput object before Appending it to the TriangeStream object.

    Problem 3:smoke\direct3d\include\dxut\core\dxut.h(93) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
    - Fixed by adding "$(DXSDK_DIR)\Include;" to the Additional Include Directories of the project.

    Problem 4: 1>LINK : fatal error LNK1104: cannot open file 'dxerr9.lib'
    - dxerr9.lib doesn't exist anymore; it's been deprecated and replaced with dxerr.lib (see: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23549). Change the reference to it in the Linker accordingly.

    Problem 5: DirectX library files still not found
    - Fixed by adding "$(DXSDK_DIR)\Lib\x86;" to the additional library directories of the Linker.

    Problem 6: 1>nvutd.lib(nvutmedia.obj) : error LNK2001: unresolved external symbol "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA)
    - I don't know what the correct resolution to this problem is.
    Adding the line "#include " to the precompiled header file Smoke.h results in a big stream of errors from the project's fcollada\futils\fuerror.h. If I add the file atls.lib and the path "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\atlmfc\lib" (which is where atls.lib is located) to the Linker, I get link errors with various DXUT obj files, all claiming that "LNK4099: PDB 'vc80.pdb' was not found", followed by the linker crashing out.
  • 3 Comments sorted by
  • Have you slove the issue??
  • I think I have solved this issue by rewrite the function NVUTFindDXSDKMediaFileCch
  • [removed cg tag, probably isn't Cg related]

    - Nigel