CMake Error: HDF5_LIB
Hi, i'm working on Ubuntu 15.10. On compilation I got this error:
"CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: HDF5_LIB linked by target "linscan" in directory /home/servidor-utfsm/mih linked by target "mih" in directory /home/servidor-utfsm/mih"
How can I solve it?
Most likely you just need to install hdf5 library.
That's what I thought but I already got it installed to use h5py.
I believe HDF5_LIB maybe a different package including header files and stuff.
hello,can you please tell me how to solve this problem?thank you!!!
You need to install hdf5 library.
On Sun, Apr 29, 2018, 3:22 AM 1453183774 [email protected] wrote:
hello,can you please tell me how to solve this problem?thank you!!!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/norouzi/mih/issues/6#issuecomment-385241075, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvzZ-oM7Jq_G-768LNRMmRGLulQZ-ojks5ttZRfgaJpZM4L89Ej .
Thank you~
Hi,jevanio,we should pay attention to CMakeList.txt, find_library (HDF5_LIB hdf5 /usr/local/hdf5/lib)
log:
- install hdf5 : https://blog.csdn.net/qq_16735297/article/details/76228259
- cp -r hdf5 /usr/local/
- cp hdf5/include/* xxxx/mih/include/
- change this line
find_library (HDF5_LIB hdf5 /usr/local/hdf5/lib)
Finally it works.