compiling hdf5 1.8.3 on windows

Zlib also has a special license.

http://www.zlib.net/zlib_license.html

Dana

···

On Tue, Nov 17, 2009 at 9:59 PM, Elena Pourmal <epourmal@hdfgroup.org>wrote:

On Nov 17, 2009, at 6:47 PM, Michael Jackson wrote:

I have a CMakeLists.txt for both SZip and Zip.

Can we just integrate both SZip and Zip sources into the HDF5 sources?
Would make configuration much easier. Or is there license issues with that.

SZIP (http://www.hdfgroup.org/doc_resource/SZIP/) has some restrictions.
License information can be found here
http://www.hdfgroup.org/doc_resource/SZIP/Commercial_szip.html

_________________________________________________________
Mike Jackson mike.jackson@bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio

On Nov 17, 2009, at 7:38 PM, Solomon Gibbs wrote:

I have no problem donating my CMake configs for SZIP or Zlib. They are of

about the same quality as the HDF5 setup -- only tested with Windows/VS and
not covering all possible configuration options.

On Tue, Nov 17, 2009 at 4:50 PM, Elena Pourmal <epourmal@hdfgroup.org> >>> wrote:
John and All,

I had some discussions today with the Windows support team here. We
agreed that we should try Cmake for Windows. Cmake looks very powerful, and
we also think it will address some of the issues we are dealing with in our
daily regression testing of multiple Windows configurations.

If Cmake works (and it looks like from the discussions here, it should),
we will be willing to incorporate Cmake with HDF5 and support it for Windows
(and get rid of our current infrastructure for Windows). It would be great
if we can work with the community to support Cmake/HDF5 on other systems.
But looking into support beyond Windows is little-bit premature at this
point; we have to evaluate it first. Your help will be highly appreciated.

On Nov 17, 2009, at 2:47 AM, Biddiscombe, John A. wrote:

I’m prepared to volunteer to help and I will be happy to setup an svn

repository and a TWiki page for Hdf5-Cmake. I can start with Solomon’s
generous contribution and get working on a more robust cmakeified hdf5. I
can test it with ParaView/Xdmf on linux, windows (including intel
C++/fortran 11.x), and Cray XT5. I suspect the cmake cross compilation on
HPC machines may be the trickiest to get smoothly working. (Though my
success in the past with CMake+Intel fortran on windows has been ‘poor’ at
best)

The proposal looks great. If we can get, for example, 1.8.4 code with
Cmake that works for Windows (let's start with MSVS and Cygwin; HDF5 C, some
tests for C library and command line utilities (can be just h5dump and
h5diff for the first try), it will be very helpful. We will also need SZIP
port to Cmake (Solomin has it for his software, can it be given back to us?
For SZIP, I can go ahead and add Cmake files to SVN right away).

Thank you,

Elena

P.S. Does anyone has experience with Cmake on Alpha OpenVMS? :slight_smile: Does it
work there? (probably too good to be true :wink:

If the HDF group give their blessing and adopt cmake in the future, I’ll
be a happy bunny. I probably can’t help with the myriad other tools that the
HDF group are supporting, but basic lib functionality shouldn’t be a
problem.

JB

From: hdf-forum-bounces@hdfgroup.org [mailto:
hdf-forum-bounces@hdfgroup.org] On Behalf Of Elena Pourmal
Sent: 17 November 2009 06:17
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] cmakeified hdf5 1.8.x anywhere

Solomon,

Thank you for the link. It was very useful.

Elena
On Nov 16, 2009, at 2:59 PM, Solomon Gibbs wrote:

I have a rudimentary CMake config for HDF5 as a part of my project.

By rudimentary, I mean that it has only ever been tested on Windows/VS
and it does not perform all of the configuration tasks. In particular, the
architecture detection code in H5Detect is not run.

If you are interested in looking at it or using it as a starting point,
my SVN tree is visible on Google Code:
http://code.google.com/p/permafrost/source/browse/

The project itself is BSD licensed, but I'm willing to donate anything
actually useful to the HDF Group with no restrictions.

On Mon, Nov 16, 2009 at 3:15 PM, Elena Pourmal <epourmal@hdfgroup.org> >>>> wrote:
Mike and All,

Good questions. I am afraid we do not have good answers right now :wink:

On Nov 16, 2009, at 10:01 AM, Michael Jackson wrote:

What if one of _our_ paying customers has requested it and we went
forward creating the CMake build system for HDF5 1.8.x. Would the HDF Group
give their backing? By that I mean, is it possible to get CVS read/write
access to the HDF5 source codes?
How willing is the HDF5 group to make some small tweaks to the HDF5
source codes to accommodate CMake if it were needed? I would much rather go
down the road of creating a CMake version of HDF5 _if_ I had the official
backing of the HDF5 group, rather than "forking" the code base and putting
it up on another server. My goal is NOT to cause any type of rift in the
HDF5 community but I am curios what The HDF Group's position is on this?

As I mentioned in my previous email, we do consider Cmake as one of the
possible build systems for the HDF software. Since no one in our group has
expertise in Cmake, it is very hard for us to give an answer because of many
things we do not know.

As you all probably aware, build system for HDF (and I am talking here
not only about HDF5 but HDF4, h4toh5, HDF Java products, etc.) has to work
on many platforms and in many environments (some are listed below plus some
unique platforms we support at the National Labs and other places), has to
support Fortran(77,90,2003), C++, and Java, has to work well with MPI I/O,
support shared libraries, support statically linked binaries, support
universal binaries :wink: for Mac, support cross-compilation, etc. To keep our
maintenance cost low, we cannot consider only moving HDF5 to Cmake, but need
to think about other software we support and implication of this move on
other packages that depend on HDF (may be none, I simply do not know)

Said this, we will be more than happy to work with the community on
evaluating Cmake capability for HDF5. One of the platforms that desperately
needs improvements for the build process is Windows. If we can make Cmake to
work on Windows for

MSVS compilers+ Intel Fortran compilers + SZLIB + provide static
libraries and DLLs
Cygwin
MinGW

it will be worth adding it to HDF5. (Do I contradict myself :wink:

Bottom line:

We will be glad to work with someone (Mike? as we planned?) to evaluate
Cmake for HDF5; we would like to target Windows platforms first. After we
finish evaluation, we will be able to answer many questions your raised in
this email.

Thank you!

Elena

Also, what are the HDF Groups requirements as in Operating Systems that
need to be verified/working? What testing infrastructure is needed? (MPI,
Cluster, PCs, Macs, Linux, Solaris.. )

I am guessing that Kitware would be willing to host a "Dashboard" for
HDF5 so that people can submit test results for their configurations.

Guessing, but I am thinking ParaView would be an immediate beneficiary
of the work. I know I have more than a few projects that would benefit.
Others may as well.

Thoughts?
_________________________________________________________
Mike Jackson mike.jackson@bluequartz.net

On Nov 16, 2009, at 10:49 AM, Elena Pourmal wrote:

John,

Decision has not been made. Since none of our paying customers requested
cmake, the task has a low priority, but it is on our radar.

Elena
On Nov 16, 2009, at 9:04 AM, Biddiscombe, John A. wrote:

Does anyone have a cmakeified version of 1.8.x anywhere.

And do the hdf group have plans to move to a cmake based build? The
subject has come up once or twice on the list, but I wonder if a decision
has been made.

Thanks

JB

--
John Biddiscombe, email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

OOps. There was a missing line in the CMakeLists.txt to set the definition to _HDF5DLL_ when building as a dynamic library. I could never really get the DLL working without issues on Windows which is probably why I never really fixed it.

set_property(TARGET ${HDF5_LIB_NAME} PROPERTY DEFINE_SYMBOL _HDF5DLL_ )

Sorry about that miss.

···

_________________________________________________________
Mike Jackson mike.jackson@bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio

On Nov 18, 2009, at 10:28 AM, Biddiscombe, John A. wrote:

I have no intention or plans to every get involved with MingW stuff, so I abstain from that.

I have all 16 targets building and H5Dump is working fine in static build - I seem to have some issues with dynamic libs on windows, which I'm working on, but if you want to get going on this then I'm happy to check in.

I'm sure someone will get to that.. Patches welcome .. :wink:

···

--
Mike Jackson <www.bluequartz.net>

On Nov 18, 2009, at 12:44 PM, Sean McBride wrote:

On 11/17/09 7:47 PM, Michael Jackson said:

Can we just integrate both SZip and Zip sources into the HDF5 sources?
Would make configuration much easier. Or is there license issues with
that.

Licensing issues aside... it would be nice to have a 'use system zlib'
option (like cmake itself does) so that the object code doesn't get
duplicated needlessly.

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

set_property(TARGET ${HDF5_LIB_NAME} PROPERTY DEFINE_SYMBOL _HDF5DLL_ )

It's ok, I've already found that one and fixed it. All is fine except that on certain imports I've got an unwanted underscore. I'm just trying to track down where it is coming from and then it should be fine.

JB

Mike

OK, fixed the DLL underscore problem, so all builds as stati or shared under visual studio.

I see that you have added szip and stuff to the repo. I'm still a bit green with git, so I'm going to try to add the entire 1.8.4 tree over the top of the existing source and delete any files which are not part of 1.8.4 but were left over from 1.6.9 - I will try not to remove the szip stuff, but if I mess up, please save me.

JB

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-
bounces@hdfgroup.org] On Behalf Of Biddiscombe, John A.
Sent: 18 November 2009 16:58
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] cmakeified hdf5 1.8.x anywhere

> set_property(TARGET ${HDF5_LIB_NAME} PROPERTY DEFINE_SYMBOL _HDF5DLL_
)

It's ok, I've already found that one and fixed it. All is fine except
that on certain imports I've got an unwanted underscore. I'm just
trying to track down where it is coming from and then it should be
fine.

JB

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Turns out, due to licensing, we may not really be able to include the SZip stuff so if you over write it no big deal.

···

--
Mike Jackson <www.bluequartz.net>

On Nov 18, 2009, at 11:08 AM, Biddiscombe, John A. wrote:

Mike

OK, fixed the DLL underscore problem, so all builds as stati or shared under visual studio.

I see that you have added szip and stuff to the repo. I'm still a bit green with git, so I'm going to try to add the entire 1.8.4 tree over the top of the existing source and delete any files which are not part of 1.8.4 but were left over from 1.6.9 - I will try not to remove the szip stuff, but if I mess up, please save me.

JB

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-
bounces@hdfgroup.org] On Behalf Of Biddiscombe, John A.
Sent: 18 November 2009 16:58
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] cmakeified hdf5 1.8.x anywhere

set_property(TARGET ${HDF5_LIB_NAME} PROPERTY DEFINE_SYMBOL _HDF5DLL_

)

It's ok, I've already found that one and fixed it. All is fine except
that on certain imports I've got an unwanted underscore. I'm just
trying to track down where it is coming from and then it should be
fine.

JB

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org