配置环境中遇到的问题:
1.depth2depth.cpp:11:18: fatal error: hdf5.h: No such file or directory
确保hdf5安装成功
sudo apt-get install libhdf5-10
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libhdf5-dev
sudo apt-get install libhdf5-cpp-11
find /usr -iname "*hdf5.h*"
export CPATH="/usr/include/hdf5/serial/"
2.出现问题:Compilation fails: cannot find lhdf5
change "USER_LIBS=-lhdf5"
to "'USER_LIBS=-L/usr/lib/x86_64-linux-gnu/hdf5/serial/lib -lhdf5'"
or to USER_LIBS = -L/usr/include/hdf5/serial/ -lhdf5
完成
重点是看自己的lhdf5 libhdf5 在哪。