【问题标题】:Cannot open include file: 'iProxyTrans.h' - old Directshow project?无法打开包含文件:'iProxyTrans.h' - 旧的 Directshow 项目?
【发布时间】:2011-11-01 15:06:45
【问题描述】:

我继承了一个使用旧的 opencv、directx 和 directshow 库的项目,我正在尝试能够在当前的 Windows 7 VS 2010 机器上编译它。

导致问题的两个包含如下:

#include <iProxyTrans.h>
#include <ProxyTransuids.h>

如何编译?这些文件现在根本不存在吗?我试图搜索我的电脑,但我找不到它。我有最新的 DirectX SDK 和 Windows SDK。我也在使用 OpenCV 2.3.1。

edit 如果我将这些注释掉,我会得到如下内容:

1>someclass.cpp(126): error C2065: 'CLSID_ProxyTransform' : undeclared identifier
1>someclass.cpp(132): error C2065: 'IProxyTransform' : undeclared identifier
1>someclass.cpp(132): error C2065: 'pProxyTrans' : undeclared identifier
1>someclass.cpp(133): error C2065: 'IID_IProxyTransform' : undeclared identifier

【问题讨论】:

  • 注释掉并发布编译器错误将会得到。我不记得它们与DirectShow 相关,我在DirectX SDK 中也没有看到它们。看起来那些与OpenCV有关。
  • @Roman R. 可能也是如此。这是一个opencv项目。我只是不记得在 opencv 中看到它们 :) 我在这个问题中添加了错误

标签: c++ visual-studio-2010 opencv directx directshow


【解决方案1】:

这里是它的来源:ProxyTransuids.h,来自 OpenCV

//                        Intel License Agreement
//                For Open Source Computer Vision Library

【讨论】:

  • 为什么标准 OpenCV 包含找不到它?我正在使用在 opencv 网站上找到的适用于 Windows 的 OpenCV 2.3.1 'superpack'。
  • 猜测,它可能是一个非常旧的版本 - 文件已有 7 年以上的历史。
  • 谢谢,这正是我所期望的。这些文件没有明显的替代品吗?我宁愿不要被旧版本的 opencv 卡住。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-09-28
  • 2012-07-10
  • 2016-06-17
  • 2019-10-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多