2 lcmliao LCMliao 于 2013.10.17 09:39 提问

在qtcreator下出现LINK : fatal error LNK1104: 无法打开文件“opencv_core.lib”

在网上找了好多解决方法都没能把问题解决~在debug下出现这种问题,查看qtcreator的opencv配置也没有什么问题啊
配置添加如下:
INCLUDEPATH+=D:\OpenCV\opencv\build\include\opencv2\
D:\OpenCV\opencv\build\include\opencv\
D:\OpenCV\opencv\build\include
CONFIG(release,debug|release)
{
LIBS+=D:\OpenCV\opencv\build\x86\vc10\lib\opencv_calib3d246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_contrib246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_core246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_features2d246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_flann246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_gpu246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_highgui246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_imgproc246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_legacy246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_ml246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_objdetect246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_ts246.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_video246.lib
}
CONFIG(debug,debug|release)
{
LIBS+=D:\OpenCV\opencv\build\x86\vc10\lib\opencv_calib3d246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_contrib246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_core246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_features2d246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_flann246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_gpu246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_highgui246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_imgproc246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_legacy246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_ml246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_objdetect246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_ts246d.lib\
D:\OpenCV\opencv\build\x86\vc10\lib\opencv_video246d.lib
}

3个回答

chenhongwu666
chenhongwu666   2014.12.31 08:12

我昨晚在我家电脑上配置时也出现类似情况,您可将缺少文件复制到C:\window\system32下,或者注销一次系统即可,您可以试试

weixin_34959222
weixin_34959222 试了一下,还是没能解决,注销真的没问题吗?
一年多之前 回复
weixin_34959222
weixin_34959222   2016.05.17 15:38

我最近才开始学,运行的时候也是这种情况图片说明

chenhongwu666
chenhongwu666   2016.05.19 12:26

还是配置的问题,链接器也配置了吧?

Csdn user default icon
上传中...
上传图片
插入图片