vc2010自己也不带dshow sdk吧?
那么就要自己安装dshow sdk开发包。从网上down,看陆其明的《directshow开发指南》,一堆事情要做。
vs2010 没法打开包括文件:“streams.h”: No such file or directory
You need DirectShow SDK that is now a part of Platform SDK
(Windows Server 2003 SP1 SDK or later),
and DirectX SDK (2006 April or later).
1. Download the Platform SDK from
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
and DirectX SDK from msdn.microsoft.com/directx/
(They are huge, but you can download it by parts).
If it doesn't work for you, consider HighGUI that can capture video via VFW or MIL
2. Install Platform SDK together with DirectShow SDK.
Install DirectX (with or without sample code).
3. Build baseclasses.
See <PlatformSDKInstallFolder>\samples\multimedia\directshow\readme.txt.
4. Copy the built libraries (called strmbase.lib and strmbasd.lib
in Release and Debug versions, respectively) to
<PlatformSDKInstallFolder>\lib.
5. In Developer Studio add the following paths:
<DirectXSDKInstallFolder>\include
<PlatformSDKInstallFolder>\include
<PlatformSDKInstallFolder>\samples\multimedia\directshow\baseclasses
to the includes' search path
(at Tools->Options->Directories->Include files in case of Visual Studio 6.0,
at Tools->Options->Projects and Solutions->VC++ Directories->Include files in case
of Visual Studio 2005)
Add
<DirectXSDKInstallFolder>\lib
<PlatformSDKInstallFolder>\lib
to the libraries' search path (in the same dialog, ...->"Library files" page)
NOTE: PUT THE ADDED LINES ON THE VERY TOP OF THE LISTS, OTHERWISE YOU MAY STILL GET
COMPILER OR LINKER ERRORS. This is necessary, because Visual Studio
may include older versions of the same headers and libraries.
VS2010配置DirectShow
![](http://static.blog.csdn.net/images/category_icon.jpg)
下载地址: http://download.csdn.net/detail/yangalbert/4184472
2、编译 DXSDK\Samples\C++\DirectShow\BaseClasses工程;
3、配置
(1)将DirectShow解压至C盘(获其他指定位置),此时所在目录为C:\DirectShow
(2)配置VS2010的(如何配置参见: http://blog.csdn.net/yangalbert/article/details/7405346)
在“VC++目录”的“包含目录”中添加
C:\DirectShow\include
在“VC++目录”的“库目录”中添加
C:\DirectShow\lib
在“VC++目录”的“库文件”中添加
在“链接”->“输入”->“附加依赖项”中添加strmiids.lib
4、修改winNT.h
以管理员身份打开C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include目录
在winNT.h文件第290行左右的如下两行
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;
之前添加:
#define POINTER_64 __ptr64
否则在使用DirectShow会出现“ERROR:winnt.h error C2146: 语法错误: 缺少';'(在标识符'PVOID64'的前面)”的错误。
-
顶
- 0
-
踩
- 0
我的同类文章
用VS2010编译射手播放器的源码,出现错误fatal error C1083: 无法打开包括文件:“streams.h”,求问各路大神是要安装windows SDK吗?安装了之后怎么操作呢??
引用 1 楼 VisualEleven 的回复:
http://blog.csdn.net/tanmengwen/article/details/8884176
那个上面说的第三步是怎么个意思?还有DirectX SDK不是已经包含在windows SDK中了么?