Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
diana:windows:building:grib [2009-11-26 19:39:33]
dages jasper
diana:windows:building:grib [2022-05-31 09:29:31] (current)
Line 1: Line 1:
 ====== Building JasPer and the Grib API on Windows ====== ====== Building JasPer and the Grib API on Windows ======
 +
 +**XXX** is JasPer really required? ''lisbethb'', ''audunc'' say probably not.
  
 ===== JasPer ===== ===== JasPer =====
Line 11: Line 13:
 Finally, configure, build and install: Finally, configure, build and install:
  
-  $ ./configure --prefix=/opt/jasper +  $ LDFLAGS=-L/c/met.no/lib CPPFLAGS=-I/c/met.no/include ./configure --prefix=/c/met.no 
-  $ make LDFLAGS=-no-undefined all install+  $ make all install 
 +  $ cp LICENSE /c/met.no/copyright/jasper.txt
  
-**TODO: replace with OpenJPEG?**+**TODO:** replace with [[http://www.openjpeg.org/|OpenJPEG]]?
  
 ===== Grib API ===== ===== Grib API =====
  
-**UNFINISHED**+First, get the latest source (currently 1.8.0) from http://www.ecmwf.int/products/data/software/download/grib_api.html and extract it in a convenient place.
  
-Firstget the latest source (currently 1.8.0) from http://www.ecmwf.int/products/data/software/download/grib_api.html and extract it in a convenient placethen configurebuild and install:+Grib comes with a tool called ''grib1to2'' which is used to convert grib1 data sets to grib2.  This is a shell scriptwhich is useless on Windows anyway, but more importantly, it is listed in ''tools/Makefile.am'' as a program rather than a script On Windows, automake automatically appends ''.exe'' to program names, and there is no rule to generate ''grib1to2.exe'' The simple fix is to remove all mention of ''grib1to2'' from ''tools/Makefile.am'' (end of line 16entire line 55lines 65-67), then regenerate ''tools/Makefile.in'' by running the following commands in the top-level directory:
  
-  $ ./configure --prefix=/opt/grib+  $ aclocal 
 +  $ automake 
 + 
 +You may have to ''chmod u+w tools/Makefile.am'' before editing it. 
 + 
 +Finally, configure, build and install: 
 + 
 +  $ LDFLAGS=-L/c/met.no/lib CPPFLAGS=-I/c/met.no/include ./configure --prefix=/c/met.no 
 +  $ make all install 
 +  $ cp AUTHORS /c/met.no/copyright/grib_api.txt 
 +  $ cat LICENSE >>/c/met.no/copyright/grib_api.txt 
 + 
 +<del>Note that Grib does not build shared libraries (not sure why, the code to do so is partly present but commented out).</del> that's OK since we've decided not to use shared libraries.
  
 **TODO:** check configure options **TODO:** check configure options
 +
 +**TODO:** check interactions between GPLv3 and licenses for other third-party components used by metlibs / diana
 +
 +Comment from SMHI.
 +All fopen need to be with rb and wb, otherwise fseek doesn't work.
 +
 +GRIB_DEFINITION_PATH must be correct.
  
  • diana/windows/building/grib.1259264373.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)