2014-04-12 199 views
-1

我正在使用OpenCV 2.4.8開發VS 2010。我是新來的,做一個簡單的圖像顯示程序。我還在C/C++目錄中包含了所有庫 「properties-> linker-> input-> additional dependencies」&。我也提供了路徑,但我仍然收到以下錯誤:LINK:致命錯誤LNK1104:無法打開文件'opencv_calib3d248d.obj'

LINK : fatal error LNK1104: cannot open file 'opencv_calib3d248d.obj'

我發現在網上沒有解決方案,有人可以幫我嗎?

+0

是否遵循這些步驟[設立OpenCV的爲Visual Studio(HTTP ://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html)? – Hadi

回答

0

添加下面的庫名的項目屬性 - >連接器 - >輸入 - >附加依賴關係

Ofcourse最後* 248指的是特定應用程序的版本。我的是248,所以這些文件看起來像opencv_features2d248d.lib,如果你的版本是249的值更改爲opencv_features2d249d.lib


opencv_features2d248d.lib

opencv_flann248d.lib

opencv_gpu248d.lib

opencv_highgui248d.lib

opencv_imgproc248d.lib

opencv_legacy248d.lib

opencv_ml248d.lib

opencv_nonfree248d.lib

opencv_objdetect248d.lib

opencv_ocl248d.lib

opencv_photo248d.lib

opencv_stitching248d.lib

opencv_superres248d.lib

opencv_ts248d.lib

opencv_video248d.lib

opencv_videostab248d.lib

相關問題