提示缺少Qedit.h问题
来源:互联网 发布:h5 ar 案例源码 编辑:程序博客网 时间:2024/05/17 08:40
From: http://blog.csdn.net/jsmiler/article/details/6495763
DirectX 9.0 SDK 开发包以及扩展包下载(February 2005) http://dev.csdn.net/article/62/62941.shtm。直接到微软官网下的话,需要validation确认。
http://download.microsoft.com/download/7/b/9/7b92308a-ec8d-4016-8d45-2f91dd130bf2/dxsdk_feb2005.exe
http://download.microsoft.com/download/d/9/1/d91c44b9-fbac-4e8e-bee1-4a75777923ec/dxsdk_feb2005_extras.exe
dshow.h找不到,下个dxsdk extras就可以了。
qedit.h里面dxtrans.h missing的问题很诡异,March2008的版本依然存在这个问题,看看这篇文章http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2617687&SiteID=1
①Remove anything to do with "dxtrans.h" and "IDXEffect" .
Say, for file "qedit.h"
//#include "dxtrans.h" -- Line 498
// IDxtCompositor //: public IDXEffect -- Line 837
// IDxtAlphaSetter //: public IDXEffect -- Line 1151
// IDxtJpeg //: public IDXEffect -- Line 1345
// IDxtKey //: public IDXEffect -- Line 1735
Now, everything compiles and works fine.
②
这篇介绍direcX的配置: http://hi.baidu.com/rain_yx/blog/item/f98d9112695a8fcac2fd782c.html
You can get by with less edits of qedit.h (commenting out the missing interfaces can be error prone).
Comment out the include of dxtrans.h.
Before you include qedit.h, add the following #defines:
#define
__IDxtCompositor_INTERFACE_DEFINED__#define
__IDxtAlphaSetter_INTERFACE_DEFINED__#define
__IDxtJpeg_INTERFACE_DEFINED__#define
__IDxtKey_INTERFACE_DEFINED__#include
<qedit.h>
=====================================================================
以下为个人整理:
最初提示缺少Qedit.h, 这个需要安装DirectX SDK Extra, 下载后解压到一个临时目录,里面的主要内容是一个文件夹:Extras。我将它与我的DirectX SDK中的Extras对比了下,发现就是多了一个目录:DirectShow,将里面的DirectShow复制到DirectX SDK安装目录下的Extras下,里面就有qedit.h文件。将“D:\opensource\DirectXSDK\Extras\DirectShow\Include”加入到工程的include目录中,提示变为:无法找到dxtrans.h文件,经网上搜索,找到答案:
在#include <Qedit.h>前加上以下内容:
#pragma include_alias( "dxtrans.h", "qedit.h" )#define __IDxtCompositor_INTERFACE_DEFINED__#define __IDxtAlphaSetter_INTERFACE_DEFINED__#define __IDxtJpeg_INTERFACE_DEFINED__#define __IDxtKey_INTERFACE_DEFINED__
再编译,提示:
1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _IID_ISampleGrabberCB1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _IID_ICreateDevEnum1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _CLSID_SystemDeviceEnum1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _CLSID_VideoInputDeviceCategory1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _CLSID_SampleGrabber1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _MEDIATYPE_Video1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _MEDIASUBTYPE_RGB241>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _PIN_CATEGORY_PREVIEW1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _PIN_CATEGORY_CAPTURE1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _IID_IBaseFilter1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _IID_IGraphBuilder1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _CLSID_FilterGraph1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _IID_ICaptureGraphBuilder21>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _CLSID_CaptureGraphBuilder21>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _IID_IMediaControl1>CaptureVideo.obj : error LNK2001: 无法解析的外部符号 _IID_IVideoWindow1>D:\program\vc2010\testa\testa.exe : fatal error LNK1120: 16 个无法解析的外部命令
很明显,是缺少相应的lib库文件,随便找一个如“_IID_ISampleGrabberCB” 进行百度搜索,即可发现需要加上“strmiids.lib”。不过,添加这个lib文件前,需要将其库目录(D:\opensource\DirectXSDK\Extras\DirectShow\Lib\x86)添加到项目属性中。
- 提示缺少Qedit.h问题
- opencv vs2013提示缺少Qedit.h问题
- Qedit.h问题
- VS2012使用DirectShow时找不到qedit.h的问题
- qedit.h錯誤
- 解决缺少apue.h的问题
- qedit.h中dxtrans.h找不到错误解决方法
- qedit.h中dxtrans.h找不到错误解决方法
- qedit.h中dxtrans.h找不到错误解决方法
- centos6.6安装yaws提示缺少pam_appl.h文件
- 如何安装psutil以及提示缺少python.h头文件
- 'qedit.h' missing in current Windows SDK v7.0
- 编译的时候提示缺少头文件 mmzone.h ....bounds.h
- 解决centos下缺少sasl.h的问题
- 解决ubuntu下缺少sasl.h的问题
- 编译otad时缺少selinux.h的问题及解决
- 编译otad时缺少selinux.h的问题及解决
- 缺少 H.264解码器
- IOS开发之带返回值的函数应不应加autorelease
- Mysql数据库引擎类型与特性对比
- 【玩转Ubuntu】07. Ubuntu进入系统后工具栏和任务栏消失解决办法
- 求和为某个值得全部序列
- JTattoo下载及使用方法
- 提示缺少Qedit.h问题
- Android 中input event的分析
- iOS ARC机制 weak strong
- 十二:Page分页加带过滤器的按条件查询
- 在 Linux 下用户空间与内核空间数据交换的方式,第 2 部分: procfs、seq_file、debugfs和relayfs
- hdu(4349) Xiao Ming's Hope
- 浅谈协方差矩阵
- uva 10720 Graph Construction
- Uboot详细启动流程