vs2010 没法打开包括文件:“streams.h”

109 篇文章 0 订阅
16 篇文章 0 订阅

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


标签: 2010microsoftwindowsincludec
5305人阅读 评论(1) 收藏 举报
本文章已收录于:


分类:


http://blog.csdn.net/yangalbert/article/details/7408747
http://blog.163.com/wuyuanhere@126/blog/static/1733237282011819111560/
 
 
1、下载DirectShow
下载地址: http://download.csdn.net/detail/yangalbert/4184472

2、编译 DXSDK\Samples\C++\DirectShow\BaseClasses工程;
      1:vc6,直接编译debug和release;
      2:vc2008编译debug和release+ Unicode debug和 Unicode release,要做如下步骤的错误修改;
      3:vc2010编译debug和release+ Unicode debug和 Unicode release,如果按照vc2008,修改好错误,编译release+ Unicode debug没有问题,
            但是在编译Unicode版本会提示:无法打开包括文件:“streams.h”: No such file or directory;
            这时,你可以右键BaseClasses- >属性->包含目录->添加“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

注:和vc6配置路径一样,参考陆其名的书,或者直接网上百度就可以了;


4、修改winNT.h

这个问题这样修改:
在VC2010中添加完成路径后, 还是将 “包含路径”添加中的路径放到 $(IncludePath); 后面就可以了;

以管理员身份打开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中了么?


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值