OpenKAI icon indicating copy to clipboard operation
OpenKAI copied to clipboard

_YOLO.h里面的包含的api.h找不到

Open cudnn opened this issue 5 years ago • 4 comments

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()

cudnn avatar Nov 19 '18 19:11 cudnn

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

cudnn avatar Nov 20 '18 07:11 cudnn

did you fix it? I have the same issue

widedh avatar Mar 22 '19 14:03 widedh

how did you fix it? I have the same issue

widedh avatar Mar 22 '19 14:03 widedh

yankai lost some file

cudnn avatar Nov 03 '19 01:11 cudnn