glgrib icon indicating copy to clipboard operation
glgrib copied to clipboard

Add more include paths

Open meerfrau opened this issue 1 year ago • 3 comments

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 ?

meerfrau avatar May 01 '23 14:05 meerfrau

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

pmarguinaud avatar May 01 '23 14:05 pmarguinaud

Oh, it works!

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

meerfrau avatar May 01 '23 18:05 meerfrau

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.

pmarguinaud avatar May 06 '23 17:05 pmarguinaud