DirectShow camera demo

我在编译SDK自带的Cameracapture的例子时,出现 
==========   生成:   0   已成功,   1   已失败,   0   最新,   0   已跳过   ========== 
1> ------   已启动生成:   项目:   CameraCapture,   配置:   Release   Windows   Mobile   5.0   Pocket   PC   SDK   (ARMV4I)   ------ 
1> 正在链接... 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   IID_IMediaEvent 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   PIN_CATEGORY_STILL 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   CLSID_IMGSinkFilter 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   MEDIATYPE_Video 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   PIN_CATEGORY_CAPTURE 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   MEDIASUBTYPE_Asf 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   DMOCATEGORY_VIDEO_ENCODER 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   CLSID_DMOWrapperFilter 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   CLSID_VideoCapture 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   CLSID_FilterGraph 
1> graphmanager.obj   :   error   LNK2001:   无法解析的外部符号   CLSID_CaptureGraphBuilder 
1> Windows   Mobile   5.0   Pocket   PC   SDK   (ARMV4I)/Release/CameraCapture.exe   :   fatal   error   LNK1120:   11   个无法解析的外部命令 
1> 生成日志保存在“file://d:/Program   Files/Windows   CE   Tools/wce500/Windows   Mobile   5.0   Pocket   PC   SDK/Samples/CPP/Win32/Cameracapture/Windows   Mobile   5.0   Pocket   PC   SDK   (ARMV4I)/Release/BuildLog.htm” 
1> CameraCapture   -   12   个错误,0   个警告 
==========   生成:   0   已成功,   1   已失败,   0   最新,   0   已跳过   ========== 

加上

#include   <dshow.h> 
#pragma   comment(lib, "Strmiids.lib ")在mobiel5 dubug下调试不出错,但是其他情况还出现这样的错误:

错误 1 error LNK2001: 无法解析的外部符号 DMOCATEGORY_VIDEO_ENCODER EricCamera.obj Camera

再加上

#include <Dmoreg.h>
#pragma comment(lib,"Dmoguids.lib")
 

 

调试成功。

 

参考:

http://topic.okbase.net/200809/2008090913/3446616.html

http://topic.csdn.net/u/20070424/23/79aca4e4-dcb1-425d-b36c-cf426e12493e.html

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值