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 00:53:04] dages |
diana:windows:building:hdf [2022-05-31 09:29:31] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Building HDF4 and HDF5 on Windows ====== | + | ====== Building |
There are binaries available, and they' | There are binaries available, and they' | ||
- | ===== HDF4 ===== | + | Yeah, right. |
- | First, get the latest source from http:// | + | ===== NetCDF ===== |
- | | + | First, get the latest source (currently 4.0.1) from http:// |
- | $ make | + | |
- | $ make install | + | |
+ | $ make all install | ||
+ | $ cp COPYRIGHT / | ||
+ | |||
+ | < | ||
===== HDF5 ===== | ===== HDF5 ===== | ||
- | First, get the latest source from http:// | + | First, get the latest source |
- | In HDF5 1.8.3, there are three issues we need to address before we can build the library. | + | In HDF5 1.8.3, there are several |
//note: the first two issues have been reported to the HDF Group and will be fixed in the next release.// | //note: the first two issues have been reported to the HDF Group and will be fixed in the next release.// | ||
Line 21: | Line 25: | ||
The first is a bug in '' | The first is a bug in '' | ||
- | The second is that the test scripts use Winsock ('' | + | The second is that the test scripts use Winsock ('' |
+ | |||
+ | $ echo 'libh5test_la_LIBADD=-lws2_32' | ||
+ | |||
+ | The third is that several HDF5 libraries have a dependency on '' | ||
+ | |||
+ | $ echo ' | ||
+ | $ echo ' | ||
+ | $ echo ' | ||
+ | |||
+ | Finally, HDF5' | ||
+ | |||
+ | LT_PREREQ([2.2]) | ||
+ | LT_INIT([dlopen]) | ||
+ | |||
+ | with this: | ||
+ | |||
+ | AC_LIBTOOL_DLOPEN | ||
+ | AM_PROG_LIBTOOL | ||
+ | |||
+ | **XXX** alternative: | ||
+ | |||
+ | 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! |