C ++ tbb_debug.dll丢失 [英] C++ tbb_debug.dll missing
问题描述
我是openCV的新手,我尝试了一些教程。一切正常,直到我包括:opencv2 / imgproc / imgproc.hpp并使用filter2D函数。当我启动我的程序时,我收到以下错误:
I'm new with openCV and I tried followed some tutorials. Everything worked fine until I included: opencv2/imgproc/imgproc.hpp and used the filter2D function. I got the following error when I start my program:
程序无法启动,因为您的计算机中缺少tbb_debug.dll。
"The program can't start because tbb_debug.dll is missing from your computer."
在互联网上,我发现这个错误与dll的32位和64位版本有关。
On the internet I have found that this error has something to do with 32 and 64 bit versions of dlls.
我正在使用64位版本的Windows,并在VS2010中创建了一个32位控制台应用程序,该应用程序使用32位版本的openCV dll。
当我启动程序dependency walker时,我可以看到我的程序使用所有系统dll的64位版本(在C:\windows\system32 ....)。只有opencv的dll是32位。
I'm using the 64bit version of windows and created a 32bit console application in VS2010 and the application uses the 32 bit version of the openCV dll's. When I start the program "dependency walker", I can see that my program uses the 64bit version of all system dll's (in C:\windows\system32....). Only the dll's of opencv are 32bit.
depenency walker的屏幕截图:
screenshot of depenency walker:
谢谢
推荐答案
我假设你使用的是预编译的OpenCV 2.3二进制文件。由于某种原因,该软件包随附了tbb DLL,而不是调试文件(即用tbb.dll表示但不是tbb_debug.dll)。您需要从英特尔此处或作为英特尔软件 suite (如果你想买/尝试)。一旦你得到这个,所有你需要做的是将dll放在您的程序的可执行文件可以找到的路径。最简单的方法是将所有tbb * _debug.dll复制到OpenCV bin文件夹.... / build / common / tbb / intel64 / vc10 /
I assume that you are using pre-compiled OpenCV 2.3 binaries. The package, for some reason, ships with tbb dlls but not the debug ones (i.e., say with tbb.dll, but not tbb_debug.dll). You need to get that from Intel here or as part of an Intel software suite (if you want to buy/try). Once you get this, all you need to do is put the dlls in path where your program's executable can find it. Easiest way is to copy all tbb*_debug.dll to the OpenCV bin folder ..../build/common/tbb/intel64/vc10/
更新[ 12]:OpenCV 2.4现在出现,它与所有必需的DLL一起发送!
UPDATE [May '12]: OpenCV 2.4 is out now, and it does ship with all the requisite dlls!
这篇关于C ++ tbb_debug.dll丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!