Skip to content

Commit

Permalink
use system g2clib on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Menno Tammens committed Jun 7, 2018
1 parent af5a0eb commit eaf7c8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion Makefile
Expand Up @@ -43,7 +43,6 @@ XyGrib: $(SRC)
@ echo
rm -f ./XyGrib
cd $(QWTDIR)/src; $(QMAKE); make -j6
cd src/g2clib; make
cd src; $(QMAKE); make -j6
@ echo "-----------------------------------"
@ echo "#!/bin/bash" >> ./XyGrib
Expand Down
4 changes: 3 additions & 1 deletion src/Grib2Reader.h
Expand Up @@ -28,7 +28,9 @@ Lecture mise en mémoire d'un fichier GRIB
#include "GribReader.h"
#include "Grib2Record.h"
#include "zuFile.h"
#include "g2clib/grib2.h"
extern "C" {
#include <grib2.h>
}

//===============================================================
class Grib2Reader : public GribReader
Expand Down
4 changes: 3 additions & 1 deletion src/Grib2Record.h
Expand Up @@ -19,7 +19,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef GRIB2RECORD_H
#define GRIB2RECORD_H

#include "g2clib/grib2.h"
extern "C" {
#include <grib2.h>
}
#include "GribRecord.h"

//----------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions src/xyGrib.pro
Expand Up @@ -36,8 +36,7 @@ else {
}
}

LIBS += -lbz2 -lz -lproj -lnova -Lqwt-6.1.3/lib/ -lqwt
LIBS += -Lg2clib -lg2c -lpng -ljasper # respect order!
LIBS += -lbz2 -lz -lproj -lnova -lgrib2c -Lqwt-6.1.3/lib/ -lqwt

# ----------------------------------------------------
CFLAGS += -std=c99
Expand Down

1 comment on commit eaf7c8f

@norulz
Copy link

@norulz norulz commented on eaf7c8f Jun 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Menno,

This works perfectly but I still have some reservation on how to implement it on a wider basis. Please see the continuing discussion in the issue on opengribs' Git opengribs#29

Please sign in to comment.