gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1491 Posts in 493 Topics by 721 Members - Latest Member: zapman February 28, 2020, 12:56:41 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  Building and Using Additional Software & Libraries  |  Building HDF 5 1.8 On OS X
gfx
gfxgfx
 

Author Topic: Building HDF 5 1.8 On OS X  (Read 8534 times)

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 298
Building HDF 5 1.8 On OS X
« on: April 18, 2012, 12:30:03 PM »
This post provides instructions on building HDF5 1.8 on OS X with Absoft Pro Fortran 11.1 and later. These instructions were developed and tested on OS X 10.5.8 using the XCode 3.1.4 command line development tools.

The HDF5 technology suite is designed to organize, store, discover, access, analyze, share, and preserve diverse, complex data in continuously evolving heterogeneous computing and storage environments.

PRE-BUILT VERSIONS OF HDF 5 1.8

Absoft Pro Fortran 2012 (v11.5) includes a pre-built package for HDF 5 1.8.7.  The installer for this package is located in the Additional Fortran Libraries folder on your Absoft Pro Fortran 2012 (v11.5) CD-ROM or electronic delivery disk image.

Absoft Pro Fortran 11.1 includes a pre-built package for HDF 5 1.8.5.  The installer for this package is located in the Additional Fortran Libraries folder on your Absoft Pro Fortran 11.1 CD-ROM or electronic delivery disk image.

DOWNLOADING THE REQUIRED PACKAGE

The HDF 5 1.8 package is available at this site  http://www.hdfgroup.org/HDF5/. At the time this post was last updated, the current stable release for HDF 5 was 1.8.8. It was released on 11/15/2011. The instructions below use the source code package named hdf5-1.8.8.tar.gz.

CREATING THE HDF 5 SOURCE TREE

Extract the HDF 5 source code with the following command:

   tar -xzvf hdf5-1.8.8.tar.gz

This will create a directory named hdf5-1.8.8  in the current working directory.

MAKING A TARGET BUILD DIRECTORY

It is possible to configure and build HDF5 directly inside the source directory. However, creating a separate build directory makes reconfiguring or maintaining more than one build (for example 32 and 64 bit builds) easier. The instructions below assume that separate build directories have been created in same the directory which contains  the HDF5 source directory using these commands:

     mkdir hdf5-32build
     mkdir hdf5-64build

CONFIGURING, BUILDING AND INSTALLING 32 BIT HDF 5

Use following commands configure, build  and install 32 bit HDF 5 with Absoft Pro Fortran 11.1 and later. These commands configure HDF 5 to install into /opt/hdf532. If you want to install to a different location, replace  /opt/hdf532 in the --prefix= argument to the configure command. NOTE: these commands assume you have established the Absoft environment by sourcing the appropriate commands from your Absoft directory.

    cd  hdf5-32build

    ../hdf5-1.8.8/configure --prefix=/opt/hdf532 --enable-shared=no --enable-fortran F9X=af95 CFLAGS=-m32 FFLAGS=-m32

    make
    make install

CONFIGURING, BUILDING AND INSTALLING 64 BIT HDF 5

Use following commands configure, build  and install 64 bit HDF 5 with Absoft Pro Fortran 11.1 and later. These commands configure HDF 5 to install into /opt/hdf564. If you want to install to a different location, replace  /opt/hdf564 in the --prefix= argument to the configure command. NOTE: these commands assume you have established the Absoft environment by sourcing the appropriate commands from your Absoft directory.

    cd  hdf5-64build

    ../hdf5-1.8.8/configure --prefix=/opt/hdf564 --enable-shared=no --enable-fortran F9X=af95 CFLAGS=-m64 FFLAGS=-m64

    make

    make install

FURTHER INFORMATION

Further information on building and using HDF 5 can be found at the HDF website.

Absoft User Forum  |  Support  |  Building and Using Additional Software & Libraries  |  Building HDF 5 1.8 On OS X
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!