Building Metlibs and Diana on Windows

This set of pages describe how to compile metlibs and Diana on Windows using MinGW and MSYS.

2010-06-16 new diana-3.26.0-win32.zip. The zip file includes the diana and bdiana binaries, the required Qt DLLs, the MinGW runtime DLL, a working setup file and all the required icons etc., but no maps or data. Extract the zip file into C:\ and run C:\met.no\bin\diana.bat. If you want to extract it somewhere else, you will have to edit diana.bat. Extract the maps and demodata into C:\met.no\share\diana\. ERRATA there is still an issue with diana.setup. Open C:\met.no\etc\diana\diana.setup and replace every occurrence of Helvetica with Arial.

Read this first

Understanding MinGW / MSYS

Known issues and how to work around them OUT OF DATE (most issues have been resolved or worked around)

Please report any issues to dag-erling.smorgrav@systek.no

Features in Diana not supported on Windows

The profet field edit tool

Known issues

Large file support - The current version of diana do not support large files (>2G) in the met.no felt format. The met.no felt files are read by the fortran library libmi. The problem might be related to the fortran compiler

The entire process, in sequence:

The basics:

Setting up the build environment

Installing autotools and pkg-config

Preparing for metlibs:

Building the zlib and bzip2 libraries

Building the tiff, jpeg and png libraries

Building the Boost libraries

Building the UDUNITS 1 library

Building the NetCDF and HDF5 libraries

Building the Grib API

Building the PROJ library

Building the PostgreSQL libraries

Building the FreeType 2 library

Installing Qt

Building metlibs

Preparing for Diana:

Building the Shapefile library

Building FFmpeg

Building Diana

The release process:

Packaging Diana

See also running.

Other useful resources:

The libtool manual

The autoconf manual

The automake manual