【发布时间】:2016-10-27 08:52:55
【问题描述】:
问题:如何将 NuGet 包添加到 Visual Studio 2013 程序中,用于使用 Cuda 的 OpenCV?
Windows 10 x64 位系统
Visual Studio 2015 从这里使用 Nuget 包安装命令:Opencv CUDA Contrib vc12 Debug Build 3.1.0 和 VS 2015 中的 VS 2013 平台工具集。
程序编译没有任何错误,但是当我运行它时,我收到以下命令行提示错误:
OpenCV Error: No CUDA support (The library is compiled without CUDA support) in throw_no_cuda, file C:\builds\master_PackSlave-win64-vc12-shared\opencv\modules\core\include\opencv2/core/private.cuda.hpp, line 97
Visual Studio 2013 NuGet 包安装失败并返回以下错误:
PM> Install-Package opencvcuda-debug
The source at All [(Aggregate source)] is unreachable. Falling back to NuGet Local Cache at C:\Users\ruffolo\AppData\Local\NuGet\Cache
Install-Package : Unable to find package 'opencvcuda-debug'.
At line:1 char:1
+ Install-Package opencvcuda-debug
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
【问题讨论】:
标签: c++ opencv visual-studio-2013 visual-studio-2015 cuda