-
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
OpenCV 4.x+ requires enabled C++11 support #1754
Comments
Just use 3.4.0 |
I have got the same issue on Ubuntu 18.04. Symlink is done also for pkg-config. Kinda downgrade of opencv is needed.
|
As I tested most of them, I suggest to use 3.4.0. |
@Liedermaus Thanks a lot for the help. I'm already compiling with 3.4.0. But it would be great to make 4.1.1 working with darknet. Trackers and things that are going to be added in the future OpenCV releases would be great to have compatible with GPU Yolo |
The problem is, that Yolo uses a C-Interface and (theoretically) beginning of 4.x OpenCV only does support c++. Theoretically because beginning with 3.4.1 the C-interface is still there, but it is not working correctly anymore. |
I managed to use darknet with opencv4 by using a branch of darknet, present in this answer: issue |
@AntonioRamalho96 your solution is incorrect. I still get the same error when I run make
My makefile:
|
@iAmJuan550 did you resolve this issue. |
Hi everyone, please use this forked version of darknet instead of this one. It is currently maintained and supports the latest version of everything. |
I'm trying to compile darknet with OpenCV on my macOS 10.14.3 (Mojave). Here is basically what I did:
I installed OpenCV via
brew install opencv
and it gave me version 4.1.0 (confirmed viaopencv_version
../darknet imtest data/eagle.jpg
works fine so I know OpenCV installed somewhat successfully. Next, I try tomake
darknet again.At first it complained about not finding
opencv.pc
, but I made a symlinkopencv.pc
to point toopencv4.pc
in/usr/local/lib/pkgconfig/
.But now it complains about the following:
What do I need to do next?
The text was updated successfully, but these errors were encountered: