On 16.05.2014 12:21, Андрей Парамонов wrote:
16.05.2014 14:11, Werner Benger пишет:
Hi Andrey,
seems my hdf5.dll is 144MB in size, so I would need to put in on some
webserver to download, my email doesn't like to send such large files.
Note that it's not the newest 1.8.13 but an older version, and it's
compiled with mingw64. Do you really want it?
Maybe it is possible that I go the other way around? I can download
static version of HDF5 binaries from official website, and try to
compile my example using it. Do you know the magic spell I should
input in command line to do so?
The official HDF5 binaries are compiled with Visual Studio, not MinGW,
as far as I know. While it is C and can be linked with each other, it
may need some additional work to extract those symbols from the dll to a
.a file that is needed for mingw to link. It's possible, there are some
instructions out there on how to make MinGW dll/.a from an existing DLL.
There are tools like
http://sourceforge.net/apps/trac/mingw-w64/wiki/gendef which help
extracting such symbols and making them gcc-compatible, but in my
experience that's all effortsome and it's just easier to compile HDF5
with mingw itself.
I do not want to recompile HDF5 library because it seems non-trivial,
and because I hardly believe it can change anything compared to
official binaries...
I find it rather easy and do it frequently, just not using cmake or the
official configure script, which has issues under msys/mingw. I can
share those makefiles, but I'd need to prepare them to work standalone
for just HDF5, usually I use them as part of a larger application.
There are difference to the official binaries because mingw can put
symbols into the DLL's itself, while for MSVC-compiled binaries such
symbols are usually provided as external .def files if they are not part
of the DLL. I'm not experienced with MS Visual Studio so don't know too
well those options, but there are differences beside all basic
compatibilies.
Werner
--
___________________________________________________________________________
Dr. Werner Benger Visualization Research
Center for Computation & Technology at Louisiana State University (CCT/LSU)
2019 Digital Media Center, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809 Fax.: +1 225 578-5362
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org