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

compile h5mdtest.c with -fPIC #30

Closed mkuron closed 5 years ago

mkuron commented 5 years ago

Needed on Ubuntu 18.04. Otherwise we get errors like

/usr/bin/ld: h5mdtest.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: h5mdplugin.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC

with clang or

/usr/bin/ld: h5mdplugin.o: relocation R_X86_64_PC32 against symbol `H5T_NATIVE_FLOAT_g@@HDF5_SERIAL_1.8.7' can not be used when making a shared object; recompile with -fPIC

with gcc.