ChenYingpeng / caffe-yolov3

A real-time object detection framework of Yolov3/v4 based on caffe
473 stars 231 forks source link

caffe problem? #6

Open job2003 opened 6 years ago

job2003 commented 6 years ago

I run make command and face these problem, I don't know how to fix it.

file included from /home/user/workspace/caffe-yolov3/box.h:9:0, from /home/user/workspace/caffe-yolov3/box.cpp:1: /home/user/workspace/caffe-yolov3/yolo_layer.h:9:27: fatal error: caffe/caffe.hpp: No such file or directory compilation terminated. CMakeFiles/sysDetectSpeed.dir/build.make:341: recipe for target 'CMakeFiles/sysDetectSpeed.dir/box.cpp.o' failed make[2]: [CMakeFiles/sysDetectSpeed.dir/box.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sysDetectSpeed.dir/all' failed make[1]: [CMakeFiles/sysDetectSpeed.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

thanks

job2003 commented 6 years ago

I have install caffe correctly and I can import caffe successfully in python. Thanks a lot.

HilmiK commented 5 years ago

How did you install caffe ? From master or directly this one ?

z00389191 commented 5 years ago

have you fix it? I also have faced this problem

buptlj commented 5 years ago

modify the include_directories of caffe in CMakeLists.txt

zeyuDai2018 commented 5 years ago

This is not a problem of caffe, The problem is about the path. Check the CmakeList.txt file in caffe-yolo3-master directory you shall find in line 36/37 the path is set to caffe/build/include. I believe some of you have installed caffe without build directory. In this case you should change it to caffe/include. There are several places you should make these changes. Check the make file in the build directory as well.