构建 ceplayit 时出错(directshow 播放器示例)
我尝试构建 CEPlayit 文件(DirectShow 播放器示例)。我将它们添加到基于我的设备的 sdk 的智能设备项目(名为 TEMP)。我在 Visual Studio 2005 中使用 MFC。但是发生了以下错误:
错误 1 错误 LNK2001:无法解析的外部符号 IID_IBasicAudio vidwindow.obj
错误 2 错误 LNK2001:无法解析的外部符号 CLSID_OverlayMixer ceplayit.obj
错误 3 错误 LNK2001:无法解析的外部符号 IID_IBaseFilter ceplayit.obj
错误 4 错误 LNK2001:无法解析的外部符号 IID_IMediaEventEx ceplayit.obj
错误 5 错误 LNK2001:无法解析的外部符号 IID_IBasicVideo ceplayit.obj
错误 6 错误 LNK2001:无法解析的外部符号 IID_IVideoWindow ceplayit.obj
错误 7 错误 LNK2001:无法解析的外部符号 IID_IMediaPosition ceplayit.obj
错误 8 错误 LNK2001:无法解析的外部符号 IID_IMediaSeeking ceplayit.obj
错误 9 错误 LNK2001:无法解析的外部符号 IID_IMediaControl ceplayit.obj
错误 10 错误 LNK2001:无法解析的外部符号 CLSID_FilterGraph ceplayit.obj
错误 11 错误 LNK2001:无法解析的外部符号 IID_IGraphBuilder ceplayit.obj
错误 12 致命错误 LNK1120:11 无法解析的外部 TEMP
我读到我需要将 strmbase.lib
链接到我的项目,但我认为我无法正确执行此操作,并且错误仍然存在。 请帮忙!
I tried to build the CEPlayit files (of DirectShow player samples). I added them to a smart device project based on the sdk for my device (named TEMP). I am using MFC in visual Studio 2005. However the following errors occurred:
Error 1 error LNK2001: unresolved external symbol IID_IBasicAudio vidwindow.obj
Error 2 error LNK2001: unresolved external symbol CLSID_OverlayMixer ceplayit.obj
Error 3 error LNK2001: unresolved external symbol IID_IBaseFilter ceplayit.obj
Error 4 error LNK2001: unresolved external symbol IID_IMediaEventEx ceplayit.obj
Error 5 error LNK2001: unresolved external symbol IID_IBasicVideo ceplayit.obj
Error 6 error LNK2001: unresolved external symbol IID_IVideoWindow ceplayit.obj
Error 7 error LNK2001: unresolved external symbol IID_IMediaPosition ceplayit.obj
Error 8 error LNK2001: unresolved external symbol IID_IMediaSeeking ceplayit.obj
Error 9 error LNK2001: unresolved external symbol IID_IMediaControl ceplayit.obj
Error 10 error LNK2001: unresolved external symbol CLSID_FilterGraph ceplayit.obj
Error 11 error LNK2001: unresolved external symbol IID_IGraphBuilder ceplayit.obj
Error 12 fatal error LNK1120: 11 unresolved externals TEMP
I read that I need to link strmbase.lib
to my project but I think I am unable to correctly do this and the errors persist.
Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了这个问题,.libs strmiids.lib 和 strmbase.lib 必须链接。我不知道该怎么做,以防有其他人和我一样:
在项目属性->配置属性->链接器->常规...其他库目录中,添加.lib文件所在的路径,对我来说是C:\Program Files\Windows CE Tools\wce600\TEMP \Lib\ARMV4I,其中 TEMP 是我正在使用的 SDK 的名称。
在项目属性->配置属性->链接器->输入->附加依赖项中,添加所需的.lib并用空格分隔:strmbase.lib strmiids.lib
,构建成功!
I solved the problem, the .libs strmiids.lib and strmbase.lib had to be linked. I did not not know how to do this and in case there is anyone else like me:
in project properties->configuration prop->linker->general... additional library directories, add the path where the .lib files are, which for me was C:\Program Files\Windows CE Tools\wce600\TEMP\Lib\ARMV4I, where TEMP was the name of the SDK i was using.
In project properties->configuration prop->linker->input->additional dependencies, add the .libs you require separated by a space: strmbase.lib strmiids.lib
and it built successfully!