Euri,

It is pretty easy to build HDF4 (and it will have a similar script called h4fc 
to help with linking all libraries). You can use the same fortran compiler you 
used to build HDF5.

You will need zlib and jpeg (version 6b) libraries installed on your machine. 
Source code (see http://www.hdfgroup.org/release4/obtain.html) comes with the 
detailed instructions how to configure and compile the HDF4 libraries and how 
to get the external libraries if your machine doesn't have them.

As for examples, the source code will have all examples that are found in the 
HDF4 User's Guide (see http://www.hdfgroup.org/doc.html). Check 
hdf/fortran/examples and mfhdf/fortran/examples directories in the source tree 
for Fortran examples. Examples are built and run when "make installcheck" is 
run, or you can use the h4fc script to compile an individual example. Be aware 
that there are dependencies between examples, they have to be run in the order 
specified in the makefiles (just check Makefile.am for the ordered list)

Examples are also available on-line at http://www.hdfgroup.org/tutorial4.html. 
We are working on providing a better interface to them (as we have for HDF5), 
so it would be easier to find them in the future.

Elena
On Feb 12, 2011, at 8:06 AM, epik78 wrote:

> 
> Hey Elena,
> thanks for your help. With your instructions I managed to build and run the
> fileexample.f90 with:
> 
> sh h5fc fileexample.f90
> 
> My laptop has Ubuntu installed and the prefix directories in the h5fc file
> were correctly pointing to
> the lib and include folder.I also got it to build on my managed desktop
> which runs scientific linux only
> I had to edit the file to the correct directories.
> 
> So after creating some sample files I tried to read the data sets I wanted
> and I realized that they were
> .hdf and not .h5 which I suppose it means that I need HDF4.From what I read
> they are not compatible plus I
> have to work with f77 instead of f90.I also downloaded the HDF4 binaries and
> didn't find any examples files like the
> ones in HDF5 so I guess my chances are bleak.
> 
> Thanks for all the help anyway,at least I've started to work with HDF5.
> Euri. 
> -- 
> View this message in context: 
> http://hdf-forum.184993.n3.nabble.com/HDF5-and-undefined-reference-tp2475757p2480105.html
> Sent from the hdf-forum mailing list archive at Nabble.com.
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


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

Reply via email to