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