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

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

Open
cudnn opened this issue Nov 19, 2018 · 4 comments
Open

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

cudnn opened this issue Nov 19, 2018 · 4 comments

Comments

@cudnn
Copy link

cudnn commented Nov 19, 2018

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
Copy link
Author

cudnn commented Nov 20, 2018

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
Copy link

widedh commented Mar 22, 2019

did you fix it? I have the same issue

@widedh
Copy link

widedh commented Mar 22, 2019

how did you fix it? I have the same issue

@cudnn
Copy link
Author

cudnn commented Nov 3, 2019

yankai lost some file

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

No branches or pull requests

2 participants