在win10上安装了系统自带的APP,ubuntu18, 其上编译caffe,不容易啊!!
遇到问题如下:
src/caffe/layers/hdf5_output_layer.cpp:3:18: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^
compilation terminated.
Makefile:552: recipe for target '.build_release/src/caffe/layers/hdf5_output_layer.o' failed
make: *** [.build_release/src/caffe/layers/hdf5_output_layer.o] Error 1
make: *** Waiting for unfinished jobs....
src/caffe/layers/hdf5_data_layer.cpp:13:18: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
似乎是找不到hdf5.h
于是在整个计算机中寻找, 终于找到C:\Users\yh\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindow\LocalState\rootfs\usr\include\hdf5\serial
于是,到src/caffe/layers/hdf5_output_layer.cpp中,将#include "hdf5.h" 改为#include "/usr/include/hdf5/serial/hdf5.h",注意斜杠方向!完美解决!
另一个问题,见我另一个博文有写。