anhttran / 3dmm_cnn

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

H5Cpp.h #15

Closed xkx0430 closed 6 years ago

xkx0430 commented 7 years ago

I like your paper very much. but.... Can you tell me why?

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

I use ubuntu 16.04, and have installed libhdf5-dev and libhdf5-serial-dev thank you

xkx0430 commented 7 years ago

Hey, I have compiled it, as follows.

Find HDF5

find_package(HDF5 REQUIRED) message("HDF5 information:") message("HDF5_INCLUDE_DIRS: ${HDF5_INCLUDE_DIRS}") message("HDF5_LIBRARIES: ${HDF5_LIBRARIES}") INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIRS}) target_link_libraries(TestVisualization PoseExprLib ${HDF5_LIBRERIES})

Is this right?

anhttran commented 7 years ago

Have you installed libhdf5-dev? Can you check whether H5Cpp.h exists in /usr/include?

tobyclh commented 6 years ago

Hello, this problem also happens to me. and the file is in /usr/include/hdf5/serial/H5Cpp.h

anhttran commented 6 years ago

Dear all,

You can set CPATH before running cmake:

*export CPATH=/usr/include/hdf5/serial/*:$CPATH

Hope it help. Best regards, Anh

On Thu, Sep 7, 2017 at 9:40 PM, Toby the potato notifications@github.com wrote:

Hello, this problem also happens to me. and the file is in /usr/include/hdf5/serial/H5Cpp.h

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_anhttran_3dmm-5Fcnn_issues_15-23issuecomment-2D327997070&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=uWuFHkuJNMJjKNj2bKpEDw&m=DLOUYXG3q7IHaUuuKS4UB3BpTNGZsVaXFrNe0QOT2Wk&s=SCZBzTVEKCHiDer8I58f2IMGz3RDVwLJWFm4F5MdEaU&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AIpm-5FpWqT2iG-5F-5FFKrOL4UubfTW13Td-5Flks5sgMUmgaJpZM4OnYJg&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=uWuFHkuJNMJjKNj2bKpEDw&m=DLOUYXG3q7IHaUuuKS4UB3BpTNGZsVaXFrNe0QOT2Wk&s=4HfD8u3XkspD9HFUp1mZBOcMMGj8XC_KLxJ68Y5OQv4&e= .