mih icon indicating copy to clipboard operation
mih copied to clipboard

CMake Error: HDF5_LIB

Open jevanio opened this issue 8 years ago • 8 comments

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?

jevanio avatar Feb 10 '17 03:02 jevanio

Most likely you just need to install hdf5 library.

norouzi avatar Feb 11 '17 02:02 norouzi

That's what I thought but I already got it installed to use h5py.

jevanio avatar Feb 17 '17 03:02 jevanio

I believe HDF5_LIB maybe a different package including header files and stuff.

norouzi avatar Feb 17 '17 03:02 norouzi

hello,can you please tell me how to solve this problem?thank you!!!

PixelDoodle avatar Apr 29 '18 10:04 PixelDoodle

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 .

norouzi avatar Apr 29 '18 15:04 norouzi

Thank you~

PixelDoodle avatar Apr 29 '18 16:04 PixelDoodle

Hi,jevanio,we should pay attention to CMakeList.txt, find_library (HDF5_LIB hdf5 /usr/local/hdf5/lib)

PixelDoodle avatar May 13 '18 07:05 PixelDoodle

log:

  1. install hdf5 : https://blog.csdn.net/qq_16735297/article/details/76228259
  2. cp -r hdf5 /usr/local/
  3. cp hdf5/include/* xxxx/mih/include/
  4. change this line
find_library (HDF5_LIB hdf5 /usr/local/hdf5/lib)

Finally it works.

ywz978020607 avatar May 07 '22 12:05 ywz978020607