ChenYingpeng / caffe-yolov3

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

无法编译是我caffe环境的问题?caffe是按照常规流程编译安装 #4

Open qingshutie opened 6 years ago

qingshutie commented 6 years ago

In file included from /home/u16/work/caffe-yolov3/box.h:9:0, from /home/u16/work/caffe-yolov3/box.cpp:1: /home/u16/work/caffe-yolov3/yolo_layer.h:9:27: fatal error: caffe/caffe.hpp: 没有那个文件或目录 compilation terminated. CMakeFiles/sysDetectSpeed.dir/build.make:389: 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

qingshutie commented 6 years ago

如果我需要将这个移植到pc端,那我应该将cmakelist.txt中target_link_libraries改成哪些对应的文件?

hangxu124 commented 5 years ago

@qingshutie hi, I'd like to know if you have solved this problem? Because I met the same error.

mayidu commented 5 years ago

I also met the same error, how to solve it?

hangxu124 commented 5 years ago
      I also met the same error, how to solve it?

use docker caffe...

mayidu commented 5 years ago

OK, I solved it, Thank you!

z00389191 commented 5 years ago

I also met the same error, how to solve it?@mayidu@hangxu124@qingshutie

hangxu124 commented 5 years ago

I also met the same error, how to solve it?@mayidu@hangxu124@qingshutie

Then I use caffe with docker...

wangzilu commented 5 years ago

@hangxu124 modify the cmakelist include_directories(${PROJECT_INCLUDE_DIR}/ here_is_your_caffe_path/include here_is_your_caffe_path/build/include)

TerenceChen95 commented 4 years ago

I met the same problem as well. My understanding of this cmake is to copy the required head files to the project path(x86_64/include) but some head files are not found (even if you modify the include_directories). So I just copy those head files to the project path and it works for me!