Build solution failed: Cannot open opencv_core340d.lib

asked 2018-03-14 04:40:40 -0600

zeshaoaaa gravatar image

updated 2018-03-14 10:12:06 -0600

berak gravatar image

System information

  • OpenCV => 3.4
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2017

Detailed description

I configured and generate CMake configuration succeed. When I trying to build the solution, following errors will occur, I didn't find opencv_core340d.lib on my computer. Is there anyone know how to fix this problem? If my description is not clear enough, please tell me. Thanks in advance!

Visual Studio Error Info

Severity Code Description Project File Line Suppression State

Error MSB6006 "cmd.exe" exited with code 1. opencv_core d:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171

Error LNK1104 cannot open file '....\lib\Debug\opencv_core340d.lib' opencv_flann D:\Program Files\opencv\build\modules\flann\LINK 1

Error LNK1104 cannot open file '....\lib\Debug\opencv_core340d.lib' opencv_ml D:\Program Files\opencv\build\modules\ml\LINK 1

Error LNK1104 cannot open file '....\lib\Debug\opencv_flann340d.lib' opencv_surface_matching D:\Program Files\opencv\build\modules\surface_matching\LINK 1

Error MSB6006 "cmd.exe" exited with code 1. opencv_cudaarithm d:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171

Error LNK1104 cannot open file '....\lib\Debug\opencv_core340d.lib' opencv_imgproc D:\Program Files\opencv\build\modules\imgproc\LINK 1

Error LNK1104 cannot open file '....\lib\Debug\opencv_imgproc340d.lib' opencv_objdetect D:\Program Files\opencv\build\modules\objdetect\LINK 1

Error LNK1104 cannot open file '....\lib\Debug\opencv_imgproc340d.lib' opencv_video D:\Program Files\opencv\build\modules\video\LINK 1

Error LNK1104 cannot open file '....\lib\Debug\opencv_video340d.lib' opencv_shape D:\Program Files\opencv\build\modules\shape\LINK 1

Error LNK1104 cannot open file '....\lib\Debug\opencv_imgproc340d.lib' opencv_plot D:\Program Files\opencv\build\modules\plot\LINK 1

Steps to reproduce

Configure CMake.

Generate CMake files.

build 'ALL_BUILD'.

edit retag flag offensive close merge delete

Comments

it seems, there are errors missing at the beginning here, can you look at it again ?

basically those are all complaints, that dependant libs could not link against core, we need to see the reason, why the core module failed to build before.

maybe you should try to clean your build folder, and start all over with cmake

berak gravatar imageberak ( 2018-03-14 09:18:14 -0600 )edit