pmarguinaud / glgrib

Display GRIB2 fields with OpenGL
GNU General Public License v3.0
22 stars 3 forks source link

Add more include paths #2

Open meerfrau opened 1 year ago

meerfrau commented 1 year ago

Bonjour Mr. Marguinaud,

my netcdf is at the very boring place of /usr/include/netcdf.h

#include <netcdf> in GeoPoints.cc isn't enough because g++ -fPIC -fopenmp -std=c++11 -Wall -O2 -DGLGRIB_USE_GLFW -o glfw/GeoPoints.o -c GeoPoints.cc -I../../include doesn't look at /usr/include

How do add more paths to -I ?

pmarguinaud commented 1 year ago

Hello,

I think you need to install the C++ package for netcdf (libraries & headers). netcdf.h is for C only.

If you want to pass extra flags to the C++ compiler, you can do :

make CXXFLAGS_USER="-I/path/to/netcdf/include"

Regards,

Philippe

meerfrau commented 1 year ago

Oh, it works!

BTW: Is glgrib-install.sh somewhere? Maybe I'm blind, can't find a proper make install option.

pmarguinaud commented 1 year ago

No there is no make install. Just unpack & build where you want to have it installed.

Soon (I do not know when) there will be some debian packages for glgrib.