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 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

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.

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/*

XXX will grib_api and proj know where to find their files?

$ cd c:/dianainst
$ zip -9 -r ~/diana-X.Y.Z-win32.zip met.no

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.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • diana/windows/building/packaging.1270630334.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)