Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
diana:windows:building:hdf [2009-11-21 01:08:12] dages |
diana:windows:building:hdf [2022-05-31 09:29:31] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
There are binaries available, and they' | There are binaries available, and they' | ||
- | **TODO:** Figure out the exact relationship between these three. | + | Yeah, right. |
===== NetCDF ===== | ===== NetCDF ===== | ||
- | Download | + | First, get the latest |
- | $ ./configure --prefix=/opt/netcdf | + | $ LDFLAGS=-L/ |
- | $ make | + | $ make all install |
- | $ make install | + | $ cp COPYRIGHT / |
- | As of 2009-11-20, the latest version of NetCDF is 4.0.1, but the source tarball is not versioned (although the top-level directory inside is). | + | < |
- | **TODO:** NetCDF has a ton of options, find out exactly which ones to use. | + | ===== HDF5 ===== |
- | ===== HDF4 ===== | + | First, get the latest source (currently 1.8.3) from http:// |
- | First, get the latest source from http://www.hdfgroup.org/ | + | In HDF5 1.8.3, there are several issues we need to address before we can build the library. |
- | $ ./configure --prefix=/opt/hdf | + | //note: the first two issues have been reported to the HDF Group and will be fixed in the next release.// |
- | $ make | + | |
- | $ make install | + | |
- | ===== HDF5 ===== | + | The first is a bug in '' |
- | First, get the latest source from http://www.hdfgroup.org/ | + | The second is that the test scripts use Winsock ('' |
- | In HDF5 1.8.3, there are three issues we need to address before we can build the library. | + | $ echo ' |
- | //note: the first two issues | + | The third is that several HDF5 libraries |
- | The first is a bug in '' | + | $ echo 'libhdf5_cpp_la_LIBADD=$(LIBHDF5)' |
+ | $ echo 'libhdf5_hl_la_LIBADD=$(LIBHDF5)' | ||
+ | $ echo ' | ||
+ | |||
+ | Finally, HDF5's '' | ||
+ | |||
+ | LT_PREREQ([2.2]) | ||
+ | LT_INIT([dlopen]) | ||
+ | |||
+ | with this: | ||
+ | |||
+ | AC_LIBTOOL_DLOPEN | ||
+ | AM_PROG_LIBTOOL | ||
+ | |||
+ | **XXX** alternative: | ||
- | The second is that the test scripts use Winsock ('' | + | Now we need to regenerate everything: |
- | This can be fixed by running the following commands before '' | + | $ aclocal |
+ | $ libtoolize --copy --force | ||
+ | $ autoheader | ||
+ | $ automake --add-missing --copy --foreign | ||
+ | $ autoconf | ||
- | $ echo libh5test_la_LIBADD=-lws2_32 >> | + | The fourth and final issue is that C++ support is not enabled by default. |
- | $ automake | + | |
- | The third and final issue is that C++ support is not enabled by default. | + | Finally: |
- | $ ./configure --prefix=/opt/hdf --enable-cxx | + | $ LDFLAGS=-L/ |
- | $ make | + | $ make all install |
- | $ make install | + | $ cp COPYING / |
+ | **TODO** fix large file support! |