This is an old revision of the document!
Packaging Diana
This assumes you've completed the previous steps exactly as described.
TODO: update for dynamic libpq / libavformat
Create the installation tree
Create a scratch directory (e.g. C:\dianainst
). In the Diana source directory, run the following command to install Diana into that directory:
$ make install prefix=c:/dianainst/met.no
Remember to strip the diana and bdiana binaries:
$ strip c:/dianainst/met.no/bin/diana.bin.exe $ strip c:/dianainst/met.no/bin/bdiana.exe
Qt
Copy the following Qt libraries into c:/dianainst/met.no/bin
:
QtCore4.dll
QtGui4.dll
QtNetwork4.dll
QtOpenGL4.dll
QtXml4.dll
NOTE: I'm unsure about QtXml4.dll
- it looks like something in metlibs may need it, but I haven't tried to run without it.
Other third-party stuff
Copy the following files from c:/met.no
(assuming that's where you installed metlibs) into the corresponding directory under c:/dianainst/met.no
:
etc/udunits.dat
share/grib_api/definitions/*
share/proj/*
Zip it
$ cd c:/dianainst $ zip -9 -r ~/diana-X.Y.Z-win32.zip met.no
License compliance
If you are going to distribute the ZIP file outside your organization, you have to include copyright and license information about all third-party components included in it. To comply with the GPL, you also need to make sure that the source code for the exact versions you used and any patches you have applied and complete instructions for building metlibs and diana are available to all recipients of the compiled binaries.