h5md / VMD-h5mdplugin

This plugin enables VMD to display data stored in h5 files that are structured according to the H5MD specifications (http://nongnu.org/h5md/)
Other
10 stars 9 forks source link

CMake: fix linking against HDF5 HL library #29

Closed fhoefling closed 6 years ago

fhoefling commented 6 years ago

Explicitly link against the high-level API of the HDF5 library. There may be better solutions. Tested with CMake 3.2.0, 3.7.2, and 3.11.1.

Building with CMake ≥ 3.7 and HDF5 ≥ 1.8.16 failed:

libh5md.a(libh5md.c.o): In function h5md_set_author': libh5md.c:(.text+0xcd2): undefined reference toH5LTset_attribute_string' libh5md.c:(.text+0xcf1): undefined reference to H5LTset_attribute_string' libh5md.c:(.text+0xd40): undefined reference toH5LTset_attribute_string' libh5md.a(libh5md.c.o): In function h5md_set_creator': libh5md.c:(.text+0xdb9): undefined reference toH5LTset_attribute_string' libh5md.c:(.text+0xdd8): undefined reference to H5LTset_attribute_string' libh5md.a(libh5md.c.o):libh5md.c:(.text+0xe18): more undefined references toH5LTset_attribute_string' follow collect2: error: ld returned 1 exit status