AlexeyAB / Yolo_mark

GUI for marking bounded boxes of objects in images for training neural network Yolo v3 and v2
https://github.com/AlexeyAB/darknet
The Unlicense
1.8k stars 680 forks source link

LNK1104 cannot open file 'opencv_world411.lib' #156

Open alpizano opened 5 years ago

alpizano commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

ugurrrn commented 2 years ago

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

hustc12 commented 2 years ago

@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'

saurabh4011 commented 2 years ago

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

hustc12 commented 2 years ago

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.

luisdavikp commented 1 year ago

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

fatejzz commented 1 year ago

@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 commented 1 year ago

@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.