New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Darknet Start Problem #382
Comments
Had the same issue as you on 17.10. After running both below, I was able to run darknet:
|
Thank you, |
having this error , please help ./darknet: error while loading shared libraries: libopencv_highgui.so.3.1: cannot open shared object file: No such file or directory |
@rachana88 you shall do the same as @guerillagorilla 's solution but replace the /usr/local/lib with the actual location of where you have installed the opencv |
I have the same problem. I have 4.0 version in /usr/local/lib : libopencv_highgui.so.4.0 but the error is about libopencv_highgui.so.3.3. So even after trying your solution it doesn't work because there isn't the libopencv_highgui.so.3.3 there's only libopencv_highgui.so.4.0. |
I too had this issue but was able to re-install with |
@mouradbelo |
I think you need to update your pkgconfig path file and compile again darknet. I don't have my computer in front of me now, i'll tell you how tomorrow. However if you want to install the old OpenCV library here's the link: https://opencv.org/releases.html. Hope this helps ! |
for noobs (me) solution: Install libs: search for installed file |
For miniconda/annaconda users, the libopencv_highgui.so.3.2 is located in : miniconda/envs/env_namexxx/lib |
I am a MacOS 10.14 user and opencv-contrib-python version is 4.1.2.30 , I tried to import Darknet on python in terminal the error message was |
Thanks to your post fixed a similar issue! My fix was slightly different and am noting here so I don't forget :). Due to using an Azure Deep Learning Virtual Machine on Ubuntu 18.04 the OpenCV library files we're in the anaconda environment directories. My error: error while loading shared libraries: libopencv_dnn.so.3.4: cannot open shared object file: No such file or directory Used similar steps to you:
Note to be safe I also deleted the darknet repo folder and rebuilt using CMake as per readme. |
thank you @guerillagorilla you saved my day |
What about this situation? |
I hade OpenCV 4.0 and then I removed it and installed OpenCV 3.4 from the source. After that, I got the same issue. I followed the above instructions but none of them worked except reinstalling darknet. After reinstalling darknet the problem was solved. |
using make clean and then make ,it has solved! |
it works! you saved my life |
Just running the second command was also enough for me. Thanks a lot. |
Hello there,
I am a Ubuntu 16.04 user. I started the system first with OpenCV (2.4.0) and then started the yolo setup with OpenCV support. When I finish the process, I get an error about the following library when I write ./darknet. How can I solve my problem?
./darknet ./darknet: error while loading shared libraries: libopencv_highgui.so.3.4: cannot open shared object file: No such file or directory
./darknet detect cfg/yolo.cfg yolo.weights data/dog.jpg ./darknet: error while loading shared libraries: libopencv_highgui.so.3.4: cannot open shared object file: No such file or directory
The text was updated successfully, but these errors were encountered: