Hi, I had a similar problem on Windows. I needed to link the LZF plugin against the hdf5 library (as expected) to get it to compile, and it worked fine with C++, but it wouldn’t work with the Java H5 libraries. Attempting to link it against the jhdf5 2.11 library instead failed. I couldn’t figure out what I was doing wrong, so in the end I rebuilt jhdf5 with the plugin sources built in.
Cheers, Dan From: Hdf-forum [mailto:hdf-forum-boun...@lists.hdfgroup.org] On Behalf Of Ümit Seren Sent: 23 November 2015 14:10 To: hdf-forum@lists.hdfgroup.org Subject: [Hdf-forum] Problem with a filter as shared library in Java-HDF5 and HDF5View I have been trying to compile the lzf compressor as a shared library (not linked against hdf5) to be used as a filter plugin for HDF5. Basically I was following this: https://github.com/h5py/h5py/tree/master/lzf I compiled lzf as a shared library using this compile command: gcc -O2 -fPIC -shared lzf/*.c lzf_filter.c -o liblzf_filter.so This will create a lzf filter plugin that I copied into the /usr/local/hdf5/lib/plugin folder. The normal command line tools (h5ls, h5dump) work fine with lzf compressed dataset, so the plugin seems to work. However when I try to read the same lzf compressed dataset using Java HDF5 or HDFView (2.11), I get the error that the lzf filter plugin can not be found. The only workaround is to link it against the hdf5 library: gcc -O2 -fPIC -shared lzf/*.c lzf_filter.c -lhdf5 -o liblzf_filter.so Is this a known issue ? This was on Ubuntu 14.04 and HDF5 1.8.15patch1 thanks in advance cheers Ümit
_______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@lists.hdfgroup.org http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5