Open cudnn opened 5 years ago
i find api.h in your https://github.com/yankailab/darknet.but have error in make.i use x86 gtx960m.
make
gcc -Iinclude/ -Isrc/ -DOPENCV pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -fopenmp -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.o
In file included from /usr/include/opencv2/core/core_c.h:48:0,
from /usr/include/opencv2/highgui/highgui_c.h:45,
from include/darknet.h:25,
from ./src/utils.h:5,
from ./src/gemm.c:2:
/usr/include/opencv2/core/types_c.h: In function ‘cvIplImage’:
/usr/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:86: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 1
did you fix it? I have the same issue
how did you fix it? I have the same issue
yankai lost some file
extern "C" {
include "api.h"
}
在Darknet里面也没有api这个目录和文件,我是git clone https://github.com/pjreddie/darknet.git自己编译darknet。
if(USE_DARKNET) add_definitions(-DUSE_DARKNET)
set(Darknet_root "/home/yuzq/darknet" CACHE STRING "") set(OpenKAI_libDir ${OpenKAI_libDir} ${Darknet_root}) set(OpenKAI_include ${OpenKAI_include} "${Darknet_root}/api") set(OpenKAI_lib ${OpenKAI_lib} darknet) endif()