실습/오류 해결

caffe make 시 : fatal error: hdf5.h: no such file or directory #include "hdf5.h"

gldmg 2017. 11. 29. 15:47

To get the build to pass on Debian Jessie, I had to (in addition to the above)

  1. modify INCLUDE_DIRS in Makefile.config

    INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
    
  2. create symlinks as instructed here

    cd /usr/lib/x86_64-linux-gnu
    sudo ln -s libhdf5_serial.so.8.0.2 libhdf5.so
    sudo ln -s libhdf5_serial_hl.so.8.0.2 libhdf5_hl.so
    
  3. Work around #337 by installing g++-4.6 from the Wheezy repo and adding to Makefile.config:

    CUSTOM_CXX := g++-4.6




출처 : https://github.com/BVLC/caffe/issues/2347