且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

OpenCV错误LNK1104:无法打开文件'opencv_core231.lib'

更新时间:2022-10-25 21:26:27

确保你包含和链接正确的目录,这可以在Visual Studio解决方案属性中进行(右键单击解决方案,选择 / code>)。例如(这是在Visual Studio 2010,但它应该类似于Visual Studio 2013)。



设置包含路径




设置库路径






设置库依赖





Hi i have a problem running the OpenCV application using Visual Studio 2013 and Windows 8.1 x64.

I followed this guide: http://www.***.com/watch?v=cgo0UitHfp8 I did everything as said in the guide except the changes: x64 instead of x86 and vs11 instead of vs10 in file paths.

Im trying to run it on OpenCV 2.4.6 (where file names are like 'opencv_core246.lib' and not 'opencv_core231.lib' like in the error.

Can you help me?

Make sure that you are including and linking the correct directories. This can be done in Visual Studio solution properties (right click on the solution and select Properties). For example (this is in Visual Studio 2010, but it should be similar in Visual Studio 2013)..

Set include path

Set library path

Set library dependencies