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

Error when making with OPENCV=1 #3

Open
oreilc16 opened this issue Jan 31, 2018 · 1 comment
Open

Error when making with OPENCV=1 #3

oreilc16 opened this issue Jan 31, 2018 · 1 comment
Labels

Comments

@oreilc16
Copy link

Hi,

I can make with OPENCV=0 (GPU, CUDNN=1 also). I successfully ran images through YOLO. I also successfully ran make darknet-cpp (from another project) with OPENCV=1 inside the same container. But when I run make with opencv=1 here I get the following error:

gcc -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv`  -DGPU -I/usr/local/cuda/include/ -DCUDNN  -Wall -fpermissive -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.o
cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 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/highgui/highgui_c.h:139:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 CVAPI(cv::Rect)cvGetWindowImageRect(const char* name);
 ^
./src/gemm.c: In function 'gemm_gpu':
./src/gemm.c:178:20: warning: unused variable 'handle' [-Wunused-variable]
     cublasHandle_t handle = blas_handle();
                    ^
Makefile:88: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 1


Any help is much appreciated

@loretoparisi
Copy link
Owner

@oreilc16 Happy that you were able to run make with both OPENCV. The reasons could be several. In this specific case it seems to me this very issue: pjreddie/darknet#200

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

No branches or pull requests

2 participants