Building metlibs on Windows
First, check out the source code using your favorite Subversion client (I recommend TortoiseSVN).
We won't build shared libraries. They're a huge pain to manage on Windows, and we don't really need them.
Since we currently don't have working HDF4 and MySQL libraries, we have to disable everything that uses those directly or indirectly:
- HDF4: tsData, pets2, qTimeseries
- MySQL: puSQL, diSQL
We also need to specify where Qt is to be found (normally C:/Qt/x.y.z
where x.y.z
is the version number, e.g. 4.4.0
).
Of course, we also need to point LDFLAGS
, CPPFLAGS
and –prefix
at c:/met.no
.
$ ./autogen.sh $ LDFLAGS=-Lc:/met.no/lib CPPFLAGS=-Ic:/met.no/include \ ./configure --disable-shared --prefix=c:/met.no \ --disable-tsData --disable-pets2 --disable-qTimeseries \ --disable-puSQL --disable-diSQL \ --enable-gribapi --with-netcdf \ --with-qt4=c:/qt/4.4.0 $ make all install
Notes
tsData
tsData requires HDF4, which currently doesn't build in our setup, but it also defines symbols that conflict with built-in Windows types (e.g. DATE
), so it will require some work even when HDF4 has been ported.