0

我正在尝试在 Visual Studio 2012 中使用 opencvsharp v2.4 64x 构建一个项目。该项目是使用 .net 4.5 和 x64 目标构建的。我已经安装了 VS08+VS10 sp1 先决条件。我已经在我的项目中包含了所有 opencv dll(版本 2.4.0 64x),以复制到包括 TBB.dll 在内的可执行目录(并检查它们是否最终位于正确的文件夹中)。

但是,在运行该软件时出现错误:由于 P/Invoke 发生了异常。请检查以下内容... System.DllNotFoundException: Unable to load DLL 'opencv_core204' ... etc

任何想法为什么会这样?也许 VS2012 不支持构建 opencvsharp 2.4?

4

1 回答 1

1

似乎我仍然错过了一些code204所依赖的本机dll。这是所需的完整列表。它现在可以在 64 位和 .net 4.5 的 Visual Studio 2012 中运行 - 但是一些示例无法使用 4.5 运行(delaunay),但只能在 3.5 中运行。不知道为什么...

OpenCvSharpExtern.dll
OpenCvSharpExternGpu.dll
opencv_calib3d240.dll
opencv_calib3d240d.dll
opencv_contrib240.dll
opencv_contrib240d.dll
opencv_core240.dll
opencv_core240d.dll
opencv_features2d240.dll
opencv_features2d240d.dll
opencv_ffmpeg240.dll
opencv_ffmpeg240_64.dll
opencv_flann240.dll
opencv_flann240d.dll
opencv_gpu240.dll
opencv_gpu240d.dll
opencv_highgui240.dll
opencv_highgui240d.dll
opencv_imgproc240.dll
opencv_imgproc240d.dll
opencv_legacy240.dll
opencv_legacy240d.dll
opencv_ml240.dll
opencv_ml240d.dll
opencv_nonfree240.dll
opencv_nonfree240d.dll
opencv_objdetect240.dll
opencv_objdetect240d.dll
opencv_photo240.dll
opencv_photo240d.dll
opencv_stitching240.dll
opencv_stitching240d.dll
opencv_ts240.dll
opencv_ts240d.dll
opencv_video240.dll
opencv_video240d.dll
opencv_videostab240.dll
opencv_videostab240d.dll
QtCore4.dll
QtGui4.dll
tbb.dll
tbbmalloc.dll
tbbmalloc_debug.dll
tbbmalloc_proxy.dll
tbbmalloc_proxy_debug.dll
tbb_debug.dll
tbb_preview.dll
tbb_preview_debug.dll
于 2013-04-30T17:50:26.597 回答