rafaelpadilla / darknet

Useful functionalities added on the original darknet public repository.
Other
36 stars 17 forks source link

recipe for target 'obj/gemm.o' failed #12

Closed colorfuldarkgray closed 5 years ago

colorfuldarkgray commented 5 years ago

gcc -Iinclude/ -Isrc/ -DOPENCV pkg-config --cflags opencv -DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -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/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/core/types_c.h: In function ‘cvIplImage’: /usr/local/include/opencv2/core/types_c.h:370:12: error: incompatible types when returning type ‘int’ but ‘IplImage {aka struct _IplImage}’ was expected return _IplImage(); ^~~ compilation terminated due to -Wfatal-errors. Makefile:85: recipe for target 'obj/gemm.o' failed make: *** [obj/gemm.o] Error 1

rafaelpadilla commented 5 years ago

Please, provide more details on your doubt.