c++ - ofxFaceTracker(开放框架)示例的问题

标签 c++ visual-studio-2015 openframeworks

我一直在尝试让 ofxFaceTracker ( https://github.com/kylemcdonald/ofxFaceTracker) 运行几天。我已经安装了 ofxCv,示例运行正常。

但是,当我尝试运行 ofxFaceTracker 示例时,我收到以下错误消息:

ContourFinder.obj: error LNK2019:? Unresolved external symbol "float __cdecl ofxCv :: trackingDistance (class cv :: Rect_ const &, class cv :: Rect_ const &)" (trackingDistance @ ofxCv @@ ? YAMABV $ Rect_ @ H @ cv @@ 0 @ Z) is a function "public: virtual class std :: vector > const & __thiscall ofxCv :: Tracker > :: track (class std :: vector , class std :: allocator >> const &) "(track @? $ Tracker @ V? $ Rect_ @ H @ cv @@@ ofxCv @@ UAEABV? $ vector @ IV? $ allocator @ I @ std @@@ std @@ ABV? $ vector @ V? $ Rect_ @ H @ cv @ @V? $ allocator @ V? $ Rect_ @ H @ cv @@@ std @@@ was referenced in 4 @@ Z).

ObjectFinder.obj: error LNK2001:? External symbol "" float __cdecl ofxCv :: trackingDistance (class cv :: Rect_ const &, class cv :: Rect_ const &) "(trackingDistance @ ofxCv @@ YAMABV? $ Rect_ @ H @ cv @@ 0 @ Z) "is unresolved.

简而言之,它的 LNK2019 和 LNK2001 错误消息。关于这个问题,我在网上进行了大量搜索,以下是我的发现。

以下网站都给出了相同的解决方法,就是在Configuration Properties -> C/C++ -> Output File -> Object File中将$(IntDir)替换为$(IntDir)/%(RelativeDir)/姓名。

https://github.com/kylemcdonald/ofxFaceTracker/issues/115

Visual Studio 2010 & 2008 can't handle source files with identical names in different folders?

Visual Studio 2010's strange "warning LNK4042"

问题是 C/C++ 选项不适合我。我做了更多的挖掘,发现只有在项目中有 .cpp 文件时才会出现该选项。问题是,我没能在项目中添加一个。另外,让我烦恼的是,根据这个网站(http://taka-say.hateblo.jp/entry/2016/02/24/200941,抱歉,它不是英文的,我使用基本的 Google Chrome 页面翻译器来翻译它。无论如何,图像很重要)当我做完全相同的事情时示例并单击解决方案资源管理器中的示例项目,然后单击属性,唯一显示的属性是代码分析。没有 C/C++ 或任何其他选项。

我在 Windows 8.1 64 位、Visual Studio Community 2015、ofxFaceTracker 1.1 和最新版本的 openFrameworks 上运行。我还使用 openFrameworks 项目生成器将项目导入 Visual Studio。

最佳答案

找到解决方案,我不得不完全卸载并重新安装 Visual Studio。

关于c++ - ofxFaceTracker(开放框架)示例的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37142296/

相关文章:

c++ - 警告 C4003 : not enough actual parameters for macro 'max' - Visual Studio 2010 C++

c++ - 在定义它的函数之外操作局部静态指针变量

bower - Visual Studio 2015 RTM - bower_components 去哪儿了?

c++ - arm-none-eabi-g++ 忽略表达式 stm32f4 中的无效字符 `#'

xamarin - Visual Studio : Error occurred while restoring nuget packages : There are duplicate packages

visual-studio - 为 Unity 5.3.1f1 安装 Visual Studio 2015 工具时出错

c++ - 无法解析基于模板的标识符 "get".Netbeans 8.1

c++ - 在 cv::Mat 和 Eigen::Matrix 之间转换矩阵

c++ - 没有 "new"的多态性