这个怎么解决:error LNK1104: 无法打开文件"opencv_calib3d2410d.lib"

2020-05-31 科技 52阅读
方法/步骤
打开运行出错INK : fatal error LNK1104: 无法打开文件“opencv_calib3d300.lib;”的项目文件
选中项目文件右击弹出属性配置页面,选择“链接器”——“附加依赖项”,在页面中可以看到下图红色框内的内容
在下图中可以看到opencv_calib3d300.lib这个库文件,由于现在电脑配置的是Opencv2.4.10,所以应该把opencv_calib3d300.lib改成opencv_calib3d2412.lib
得到下面库文件到下图的编辑框中,并取消“从低级或项目默认设置继承”这一项
opencv_calib3d2410d.lib
opencv_contrib2410d.lib
opencv_core2410d.lib
opencv_features2d2410d.lib
opencv_flann2410d.lib
opencv_gpu2410d.lib
opencv_highgui2410d.lib
opencv_imgproc2410d.lib
opencv_legacy2410d.lib
opencv_ml2410d.lib
opencv_nonfree2410d.lib
opencv_objdetect2410d.lib
opencv_photo2410d.lib
opencv_stitching2410d.lib
opencv_ts2410d.lib
opencv_video2410d.lib
opencv_videostab2410d.lib
opencv_calib3d2410.lib
opencv_contrib2410.lib
opencv_core2410.lib
opencv_features2d2410.lib
opencv_flann2410.lib
opencv_gpu2410.lib
opencv_highgui2410.lib
opencv_imgproc2410.lib
opencv_legacy2410.lib
opencv_ml2410.lib
opencv_nonfree2410.lib
opencv_objdetect2410.lib
opencv_photo2410.lib
opencv_stitching2410.lib
opencv_ts2410.lib
opencv_video2410.lib
opencv_videostab2410.lib
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib
完成上面配置后,单击确定,保存设置。
再次编译该项目文件,将不会出现库文件错误了,可以正确的执行,执行结果如下图。
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com