-
Notifications
You must be signed in to change notification settings - Fork 47
Build Notes
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.
- 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)
- libbz2-dev
- zlib1g-dev
- libpng-dev (1)
- libproj-dev
- libnova-dev
- qtbase5-dev
- bzip2-devel
- zlib-devel
- libpng-devel (1)
- proj-devel
- libnova-devel
- qt5-devel
- 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
-
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