hdf5

Ceci est une ancienne révision du document !


hdf5

Notes de compilation pour macosx/yosemite

tara:hdf5-1.8.14 me$ ./configure --prefix=/usr/local/hdf5 --enable-fortran
...
	    SUMMARY OF THE HDF5 CONFIGURATION
	    =================================

General Information:
-------------------
		   HDF5 Version: 1.8.14
		  Configured on: Sat Jan 17 08:52:18 CET 2015
		  Configured by: me@tara.local
		 Configure mode: production
		    Host system: i386-apple-darwin14.0.0
	      Uname information: Darwin tara.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
		       Byte sex: little-endian
		      Libraries: static, shared
	     Installation point: /usr/local/hdf5

Compiling Options:
------------------
               Compilation Mode: production
                     C Compiler: /usr/bin/clang ( Apple LLVM version 6.0 )
                         CFLAGS:
                      H5_CFLAGS:  -O3
                      AM_CFLAGS:
                       CPPFLAGS:
                    H5_CPPFLAGS:   -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS:
               Shared C Library: yes
               Static C Library: yes
  Statically Linked Executables: no
                        LDFLAGS:
                     H5_LDFLAGS:
                     AM_LDFLAGS:  -L/usr/local/hdf5/lib
 	 	Extra libraries:  -lz -ldl -lm
 		       Archiver: ar
 		 	 Ranlib: ranlib
 	      Debugged Packages:
		    API Tracing: no

Languages:
----------
                        Fortran: yes
               Fortran Compiler: /usr/local/bin/gfortran ( GNU Fortran (GCC) 5.0.0 20141005 )
          Fortran 2003 Compiler: no
                  Fortran Flags:
               H5 Fortran Flags:  -pedantic -Wall -Wconversion -Wunderflow -Wimplicit-interface -W -O2 -s
               AM Fortran Flags:
         Shared Fortran Library: no
         Static Fortran Library: yes

                            C++: no

Features:
---------
                  Parallel HDF5: no
             High Level library: yes
                   Threadsafety: no
            Default API Mapping: v18
 With Deprecated Public Symbols: yes
         I/O filters (external): deflate(zlib)
         I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
                            MPE: no
                     Direct VFD: no
                        dmalloc: no
Clear file buffers before write: yes
           Using memory checker: no
         Function Stack Tracing: no
      Strict File Format Checks: no
   Optimization Instrumentation: no
       Large File Support (LFS): yes

pour linux/sunstudio

./configure --prefix=/local/apps/hdf5/v1.8.14/Linux_3.10/sunstudio12.4 --enable-fortran --enable-production FC=f95

Tests

avec un des exemples fournis sur le site: dsetexample

tara:hdf5 me$ make -f Makefile.hdf5
gfortran -o dsetexample dsetexample.f90 -I/usr/local/hdf5/include /usr/local/hdf5/lib/libhdf5_fortran.a /usr/local/hdf5/lib/libhdf5.a   /Users/me/amidexpharmato/szip-2.1/szip/lib/libsz.a -lm
Undefined symbols for architecture x86_64:
  "_compress2", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
  "_inflate", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
  "_inflateEnd", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
  "_inflateInit_", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [dsetexample] Error 1
  • hdf5.1424187107.txt.gz
  • Dernière modification : 2017/08/25 09:55
  • (modification externe)