anhttran / 3dmm_cnn

Regressing Robust and Discriminative 3D Morphable Models with a very Deep Neural Network
Other
863 stars 254 forks source link

"H5Cpp.h: No such file or directory" error once. #20

Closed ronyuzhang closed 6 years ago

ronyuzhang commented 7 years ago

hi, i have already set "export CPATH=/usr/include/hdf5/serial/**:$CPATH" , but still wrong.

=================== /home/demo/3dmm_cnn/modules/PoseExpr/src/BaselFace.cpp:19:19: fatal error: H5Cpp.h: No such file or directory compilation terminated. modules/PoseExpr/CMakeFiles/PoseExprLib.dir/build.make:110: recipe for target 'modules/PoseExpr/CMakeFiles/PoseExprLib.dir/src/BaselFace.cpp.o' failed make[2]: [modules/PoseExpr/CMakeFiles/PoseExprLib.dir/src/BaselFace.cpp.o] Error 1 CMakeFiles/Makefile2:140: recipe for target 'modules/PoseExpr/CMakeFiles/PoseExprLib.dir/all' failed make[1]: [modules/PoseExpr/CMakeFiles/PoseExprLib.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

anhttran commented 7 years ago

Your HDF5 headers may be in another location. You can run "locate H5Cpp.h" to find the correct path. Best, Anh

wantongtang commented 6 years ago

solved this problem by export CPATH export CPATH=/usr/include/hdf5/serial/

also you can

vim ~/.bashrc add this line export CPATH=/usr/include/hdf5/serial/

source ~/.bashrc