2

我从这个站点下载了控制 AR Drone 的项目:

https://github.com/Ruslan-B/AR.Drone

这个项目很旧。然后我从这个站点下载了 ffmpeg.autogen 库

https://sourceforge.net/projects/ffmpeg-autogen/?source=typ_redirect

这是旧版本的 ffmpeg,因为旧版本 AR.Drone。我必须是.NET Framework 4.0 版本。

项目已编译,但是当我运行应用程序时出现错误:

"Unable to load DLL 'avcodec': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

错误发生在这一行:

FFmpegInvoke.avcodec_register_all();
4

1 回答 1

0

我建议克隆包括子模块的项目。这是来自 README.md 的引用:

git clone http://github.com/Ruslan-B/AR.Drone.git   
cd AR.Drone   
git submodule update --init   

它不仅应该下载源代码,还应该下载兼容的 ffmpeg 二进制文件。

作为下一步,您需要使用 VS2012+ 构建 AR.Drone 解决方案,它将为您构建所有依赖项,然后您将能够启动 AR.Drone.WinApp 项目。按照惯例,它将自动拾取 ffmpeg 二进制文件。

于 2018-02-08T22:05:12.103 回答