yankailab / OpenKAI

OpenKAI: A modern framework for unmanned vehicle and robot control
GNU Affero General Public License v3.0
230 stars 93 forks source link

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

Open cudnn opened 5 years ago

cudnn commented 5 years ago

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 commented 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

widedh commented 5 years ago

did you fix it? I have the same issue

widedh commented 5 years ago

how did you fix it? I have the same issue

cudnn commented 4 years ago

yankai lost some file