编译caffe遇到的问题

1. failed to see hdf5.h

https://askubuntu.com/questions/629654/building-caffe-failed-to-see-hdf5-h

 

2.找不到 -lhdf5_hl, -lhdf5

https://github.com/BVLC/caffe/issues/4333

++ +INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
++ +LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/

只需要加入 /usr/lib/x86_64-linux-gnu/hdf5/serial/,不需要像上面的网址那样做软链接.

posted @ 2018-04-21 19:51  笨笨coding  阅读(301)  评论(0编辑  收藏  举报