Yolo_mark icon indicating copy to clipboard operation
Yolo_mark copied to clipboard

LNK1104 cannot open file 'opencv_world411.lib'

Open alpizano opened this issue 4 years ago • 9 comments

I am using (Windows 10 64bit) Visual Studio 2017 version 15.9.15, using the latest opencv downloaded as a .ZIP directly from github https://github.com/opencv/opencv, and I am running Python 3.7.3, Anaconda and CMake 3.15.2 installed.

alpizano avatar Aug 30 '19 04:08 alpizano

Ok, I managed to successfully install openCV4 and I checked that it works, but when opening up yolo_mark.sln to compile in Release x64, I get the error:

LNK1104 cannot open file 'opencv_world411.lib' yolo_mark C:\Users\XxaemaeThxX\Desktop\ML-NN-Chao-Sys\Yolo_mark\LINK Line1

I added the C++ dependencies (D:\OpenCV4\opencv4\install\include) and the Linker dependencies (D:\OpenCV4\opencv4\install\x64\vc15\lib) but I don't have any "opencv_world411.lib" file inside the bin or lib folders.

Where the fudge is this damn file?

alpizano avatar Aug 31 '19 03:08 alpizano

Ugh, solved it. Realized cmake has the option to build a opencv_world.lib -_-

alpizano avatar Aug 31 '19 09:08 alpizano

How did you solved? Error : LNK1104 'opencv_world450d.lib' file can not open

ugurrrn avatar Jun 20 '22 04:06 ugurrrn

@ugurrrn I have the same issue, although I built for version 460. The error message like the following: LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_world460d.lib'

hustc12 avatar Jul 07 '22 02:07 hustc12

@huzq85 @ugurrrn Try adding the paths correctly. Make sure you have added include directories and library directories both under VC++ directories.

saurabh4011 avatar Jul 09 '22 11:07 saurabh4011

Thank you for your information @saurabh4011 ! To me, this time it looks more like a bug because in my previous buildings (like version 4.5), there was no such kind of build error. Besides, I kept the same build configurations as before (I did not modify anything) for building version 4.6 but errors came out.

hustc12 avatar Jul 09 '22 20:07 hustc12

I don't understand, even building opencv_world with cmake correctly, there isn't any opencv_world.lib (mine should be opencv_world460.lib). I tried with other Opencv version and all of them don't have opencv_world.lib

luisdavikp avatar Sep 28 '22 15:09 luisdavikp

@luisdavikp have you solved this problem, I meet this problem when I want to add the opencv-contrib module in the original opencv by compiling.

fatejzz avatar Oct 28 '22 02:10 fatejzz

@luisdavikp have you solved this problem, I meet this problem when I want to add the opencv-contrib module in the original opencv by compiling.

championxx avatar May 22 '23 06:05 championxx