Compile Effects11_*.sln

Started by
1 comment, last by osiris11 12 years, 1 month ago
Hey.

I want to use a complete effect file, and from what I read about loading effect files, I need the library Effects11.lib to do this.
Next, I found out, I have to compile this library myself (as stated here: http://msdn.microsof...3(v=vs.85).aspx , Section "Requirements").

So I pay a visit to the DirectX SDK directory ( which is in my case located at "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)") and open .\Samples\C++\Effects11\Effects11_2010.sln , as I am using Visual Studio 2010.

Then I just try to compile, but I get a bunch of errors (Should I get errors at all, when compiling Microsoft's Sources???), see the complete output listed below.



1>------ Erstellen gestartet: Projekt: Effects11, Konfiguration: Release Win32 ------
1>Der Buildvorgang wurde am 10.03.2012 01:49:21 gestartet.
1>InitializeBuildStatus:
1> Aktualisieren des Timestamps von "Release\Effects11.unsuccessfulbuild".
1>ClCompile:
1> d3dx11dbg.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> d3dxGlobal.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectAPI.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectLoad.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectNonRuntime.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectReflection.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectRuntime.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1>
1>Fehler beim Erstellen
1>
1>Verstrichene Zeit 00:00:01.33
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========


While I don't understand these completely, my investigation has shown that I was missing the Windows 7 SDK. Ouch. So I downloaded it, still in the hope these errors might vanish. No luck. Being on a x64 System, I additionaly gave the x64 WINDOWS 7 SDK a try, nothing improved.

So what is it, I'm missing? Can anyone help me here? Or can anyone point me to the compiled library?

Maybe my system information can be helpful here:
IDE: Visual Studio 2010;
OS: Server 2008R2 SP1;
Advertisement
Copy that Effects11 folder to Visual Studio 2010 Project folder or you will need to run VS 2010 will elevated privilege; then try to compile it again and did you set the path to Dx 11 header files in your project?
I finally got it working.
Not quite the way you suggested, but here's how:

I reinstalled the Windows sdk. That is, I first removed all Windows SDK components, then reinstalled it using the x86 package.
Then I opened the Effects11_2010.sln and modified the include and library paths to explicitely provide the Windows SDK path before the DirectX SDK path.

And somehow it worked.
Thanks for your efforts anyway.

This topic is closed to new replies.

Advertisement