Skip to content
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 not compatible with YOLO #16

Open
sunny-k9 opened this issue Jun 4, 2018 · 3 comments
Open

OpenCV not compatible with YOLO #16

sunny-k9 opened this issue Jun 4, 2018 · 3 comments

Comments

@sunny-k9
Copy link

sunny-k9 commented Jun 4, 2018

OpenCV 3.4.1 had build issues with C compilation mode, there is a new commit in the opencv github repo which solves this, but i am still getting the error

make
gcc -Iinclude/ -Isrc/ -DOPENCV pkg-config --cflags /usr/local/lib/pkgconfig/opencv.pc -DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.o
In file included from /usr/local/include/opencv2/core/types_c.h:59:0,
from /usr/local/include/opencv2/core/core_c.h:48,
from /usr/local/include/opencv2/highgui/highgui_c.h:45,
from include/darknet.h:25,
from ./src/utils.h:5,
from ./src/gemm.c:2:
/usr/local/include/opencv2/core/cvdef.h:485:1: error: unknown type name ‘namespace’
namespace cv {
^
compilation terminated due to -Wfatal-errors.
Makefile:85: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 1

@jetsonhacks
Copy link
Owner

What commit did you add?
What version of L4T are you running?
What version of CUDA?

@sunny-k9
Copy link
Author

sunny-k9 commented Jun 6, 2018

I installed OpenCV 3.4.0 and YOLO is now working
L4T -> 28.2
CUDA -> 9.0
Thank you!

@jetsonhacks
Copy link
Owner

Good to hear! I'll leave this open for a while in case other people run into the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants