转自:https://www.linuxidc.com/Linux/2013-01/77922.htm
亲测方法一有效
今天运行opencv时出现找不到tbb_debug.dll错误,网上搜了下,看到两种解决方案,都有效,留此笔记以备日后不时之需。
方法一:在opencv-2.3.1\build\common\tbb\ia32\vc10的下面有个tbb.dll文件,把它复制到你的工程debug目录下改成tbb_debug即可。(若你的工程位x64工程,上面路径中的 ia32 换为 intel64)
方法二:下载一个Intel Tbb 3.0,下载见http://pan.baidu.com/share/link?shareid=232085&uk=487907638 。(或者:https://www.threadingbuildingblocks.org/uploads/77/151/3.0/tbb30_20100406oss_win.zip)下载完成后解压,在bin文件夹下面对应的文件夹里面你就能找到tbb_debug.dll,把tbb_debug.dll拷贝到OpenCV 2.3 的build/common/tbb目录下的对应文件夹里面即可。
OpenCV环境配置:
【Debug模式或Release模式】OpenCV配置:点击右键——属性
一、VC++目录——包含目录加入:
D:\Program Files\OpenCV2.3.1\build\include;D:\Program Files\OpenCV2.3.1\build\include\opencv;D:\Program Files\OpenCV2.3.1\build\include\opencv2;
二、VC++目录——库目录加入:
D:\Program Files\OpenCV2.3.1\build\x86\vc10\lib;
三、链接器——输入选项——附加依赖项下加入:
opencv_calib3d231d.lib;opencv_contrib231d.lib;opencv_core231d.lib;opencv_features2d231d.lib;opencv_flann231d.lib;opencv_gpu231d.lib;opencv_highgui231d.lib;opencv_imgproc231d.lib;opencv_legacy231d.lib;opencv_ml231d.lib;opencv_objdetect231d.lib;opencv_ts231d.lib;opencv_video231d.lib;