Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more include paths #2

Open
meerfrau opened this issue May 1, 2023 · 3 comments
Open

Add more include paths #2

meerfrau opened this issue May 1, 2023 · 3 comments

Comments

@meerfrau
Copy link

meerfrau commented May 1, 2023

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
Copy link
Owner

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
Copy link
Author

meerfrau commented May 1, 2023

Oh, it works!

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

@pmarguinaud
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants