今天運行opencv時出現找不到tbb_debug.dll錯誤,網上搜了下,看到兩種解決方案,都有效,留此筆記以備日後不時之需。
方法一:在opencv-2.3.1\build\common\tbb\ia32\vc10的下面有個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 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;