-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
No package 'opencv' found #2280
Comments
Had you changed the |
Yes, i changed in Makefile |
I also meet the same problem with you!do you solve? |
@xwr96 Yes, You should try. Then let me know the result. |
@AnhPC03 I did, it response "libopencv-dev is already the newest version (3.2.0+dfsg-4ubuntu0.1). |
Had you changed the two lines of the Makefile to: |
@AnhPC03 Yes. I already changed, but it error. In fact, it can run properly. but I think it use CPU,not a GPU, because it cost 21seconds |
if it can run properly but on CPU, change in Makefile to |
when I change the 'GPU'=1, opencv=1, it cause error above what I said. So I confused |
What will be output when you run |
@AnhPC03 the output is |
@xwr96 check your opencv package, if exist, uninstall it. Then run |
@xwr96 When you install OpenCV manually, you should install with release.
And libopencv will be installed to /usr/lib So, confirm it by:
|
@ck196 it turns out |
ok, I have a try. Thanks! |
Hi dear,
i hop you solve it |
I have same problem, tried everything above. What to set in path by the way ? |
Thanks to the comments of @AnhPC03 and @essanhaji, I solved my problem on a Droplet created in "Digitalocean".
I hope this would help to anyone. |
I just had the same problem,
|
That applies to me too. I just run sudo apt install libopencv-dev |
it is working |
|
This is working for me |
Hi all, on my local machine (ubuntu) I had the same error (even though I already had opencv installed using pip) which was solved with installing libopencv-dev using apt install. However, now I am trying to run the code on another machine (also ubuntu) in which I only have a virtual environment. When I install libopencv-dev using apt install I will install it system-wide, which might mess up other users of the machine. So now I tried "conda install -c anaconda libopencv" as conda is supposed to install it only on my virtual environment. However, after succesfull installation (now both with pip and conda) it still gives me the same error: "No package 'opencv' found" when I am trying to 'make' darknet. Can someody help? |
@zarraozaga maybe we could shift to another repo, like AlexeyAB's repo. |
I just found out that the OpenCV package that installed from So to overcome this problem when you change the All the thing you need to do is just change on the line 45, 46
to
Conclusion: Just install OpenCV by |
this does not work for me. |
Works but needs C++11 !!! |
Hi, I have the same problem but in mac, you know how to solve it, it mac is not posible to use apt-get, but the issue is the same |
Check here #2505 (comment) |
(tutorial-env) apdebian@ap:~/Music/darknet$ make
chmod +x *.sh
g++ -std=c++11 -std=c++11 -Iinclude/ -I3rdparty/stb/include -DOPENCV
pkg-config --cflags opencv4 2> /dev/null || pkg-config --cflags opencv
-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -c ./src/image_opencv.cpp -o obj/image_opencv.oPackage opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
./src/image_opencv.cpp:16:10: fatal error: opencv2/core/version.hpp: No such file or directory
16 | #include <opencv2/core/version.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:174: obj/image_opencv.o] Error 1
i aleady download opencv from github
The text was updated successfully, but these errors were encountered: