今天运行opencv时出现找不到tbb_debug.dll错误,网上搜了下,看到两种解决方案,都有效,留此笔记以备日后不时之需。
方法一:在opencv-2.3.1uildcommon bbia32vc10的下面有个tbb.dll文件,把它复制到你的工程debug目录下改成tbb_debug即可。
方法二:下载一个Intel Tbb 3.0,下载见http://pan.baidu.com/share/link?shareid=232085&uk=487907638 。下载完成后解压,在bin文件夹下面对应的文件夹里面你就能找到tbb_debug.dll,把tbb_debug.dll拷贝到OpenCV 2.3 的build/common/tbb目录下的对应文件夹里面即可。
OpenCV环境配置:
【Debug模式或Release模式】OpenCV配置:点击右键——属性
一、VC++目录——包含目录加入:
D:Program FilesOpenCV2.3.1uildinclude;D:Program FilesOpenCV2.3.1uildincludeopencv;D:Program FilesOpenCV2.3.1uildincludeopencv2;
二、VC++目录——库目录加入:
D:Program FilesOpenCV2.3.1uildx86vc10lib;
三、链接器——输入选项——附加依赖项下加入:
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;
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2013-01/77922.htm