-
Notifications
You must be signed in to change notification settings - Fork 48
Build Notes
dominiquehausser edited this page Jun 18, 2018
·
15 revisions
As a native application available on multiple platforms, XyGrib makes extensive use of the Qt framework.
- Prerequisite installs needed on your system: build-essential g++ make libbz2-dev zlib1g-dev libproj-dev libnova-dev nettle-dev libpng16-dev libjpeg-dev libjasper-dev qtbase5-dev qt5-default
- Download XyGrib-src.tgz and extract archive
- Enter extracted folder and run 'make' and afterwards 'make install'
Problem with lib jasper not included in recent Ubuntu (>= 17.04) and Debian (>=9.0) A temporary solution is to use the following modified files
- Makefile
- src/Grib2Reader.h
- src/Grib2Record.h
- src/xyGrib.pro that can be found in https://github.com/dominiquehausser/XyGrib/tree/BuildOK_Ubuntu_GE1710 (modification of adaptation done by : MennoTammens (https://github.com/MennoTammens/XyGrib/commit/eaf7c8ff15d450413d5e2e885a1039150660b671)
-
Install Qt framework
-
Install build dependencies (via MacPorts)
sudo port install jasper libpng
-
Build dependencies
cd src/g2clib make -f makefile.osx
Note: enc_jpeg2000.c includes a line that breaks on lib jasper > 1.9, comment out the offending line and the build should complete.
-
Reset project environment and build
qmake -r make