Can't compile WebCamLib

Oct 10, 2008 at 10:57 PM
I'm getting the error Error 3 fatal error C1083: Cannot open include file: 'dxtrans.h': No such file or directory c:\program files\microsoft sdks\windows\v6.0a\include\qedit.h 498 WebCamLib

I've downloaded and installed the DirectX SDK and set the include directory for the Lib dir on the DirectX SDK directory and nothing.

Any thoughts?
Coordinator
Oct 10, 2008 at 11:44 PM
Edited Oct 10, 2008 at 11:44 PM
Hi krees,

Compiling webcamlib is a little tricky right now and that is why we redistribute a build in the release.  The trick is to use the correct version of the DirectX SDK.  The one we are using can be found at: http://www.microsoft.com/downloads/details.aspx?familyid=124552FF-8363-47FD-8F3B-36C226E04C85&displaylang=en
Oct 11, 2008 at 12:25 AM
Hey Moose,

Thanks for the response.
I want to recompile the webcamlib cuz the dll provided can't be used in my projects (using VS2008). I'm getting the error:

A reference to webcamlib.dll cannot be added. Please make sure the file is accesible and that is a valid assembly or COM component.

But I can run the sample ok from the exe file... strange ... any clues?

thanks in advance
Coordinator
Oct 11, 2008 at 1:07 AM
Since its an unmanaged dll you don't actually add it as a reference.  Touchlib refers to it explicitily via a DllImport.  All you need to do is make sure the built webcamlib.dll is in your output directory.
Mar 28, 2011 at 3:10 PM
hypermoose wrote:
   
Compiling webcamlib is a little tricky right now and that is why we redistribute a build in the release.  The trick is to use the correct version of the DirectX SDK.  The one we are using can be found at:   http://www.microsoft.com/downloads/details.aspx?familyid=124552FF-8363-47FD-8F3B-36C226E04C85&displaylang=en

the link you provided doesn't work any longer :(

What version of DirectX SDK is needed to compile WebCamLib?

Is it DirectX 9.0 SDK of August 2005? It is available at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=3904b19a-02b9-447b-ab58-c12e2456e9ba&DisplayLang=en