Skip to content
Dominique Hausser edited this page Jan 11, 2019 · 15 revisions

As a native application available on multiple platforms, XyGrib makes extensive use of the Qt framework.

Linux

  • Prerequisite tools:

  • gnu build tools: g++, make, build-essential etc.
  • cmake (needed to build libopenjpeg provided in this package)
  • Prerequisite libraries:

The following libraries need to be installed first (If your Linux system is not one of the three below then other naming conventions for these packages may apply)


Ubuntu 18.04

  • libbz2-dev
  • zlib1g-dev
  • libpng-dev (1)
  • libproj-dev
  • libnova-dev
  • qtbase5-dev

Fedora 28

  • bzip2-devel
  • zlib-devel
  • libpng-devel (1)
  • proj-devel
  • libnova-devel
  • qt5-devel

openSUSE (2)

  • libbz2-devel
  • zlib-devel
  • libpng-devel (1)
  • libproj-devel
  • libnova-devel
  • libqt5-qtbase-devel

(1) version >= 1.6 needed to build libopenjpeg

(2) TumbleWeed

  • Get the source

    git clone https://github.com/opengribs/XyGrib.git
    
  • Build

    cd XyGrib
    mkdir build
    cd build
    cmake ..
    make
    
  • Install

    cmake -DCMAKE_INSTALL_PREFIX=/wherever ..
    sudo make install
    
  • Debian/Ubuntu packages (1 for the app, 1 for supplementary maps)

    dpkg-buildpackages -b
    

MacOS

  • 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
    

Windows