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

Issues with RSET on mbcontour.c and mbgrdtiff.c #39

Open
greytear opened this issue Feb 15, 2019 · 6 comments
Open

Issues with RSET on mbcontour.c and mbgrdtiff.c #39

greytear opened this issue Feb 15, 2019 · 6 comments

Comments

@greytear
Copy link

Had some troubles while building latest release on debian stable.
while doing a make, got:

In file included from /usr/include/gmt/gmt_dev.h:136:0, from mbcontour.c:43: mbcontour.c: In function ‘GMT_mbcontour_parse’: mbcontour.c:538:63: error: ‘RSET’ undeclared (first use in this function) n_errors += gmt_M_check_condition(GMT, !GMT->common.R.active[RSET], "Syntax error: Must specify -R option\n");

commented the usage of RSET in mbcontour.c , cleaned the build, restarted the make and got a

mbgrdtiff.c: In function ‘GMT_mbgrdtiff’: mbgrdtiff.c:852:28: error: ‘RSET’ undeclared (first use in this function) if (!GMT->common.R.active[RSET] && n_grids) ^~~~

Followed the same strategy, and commented the block with the if condition.
Built correctly after that...

@dwcaress
Copy link
Owner

dwcaress commented Feb 25, 2019 via email

@dwcaress
Copy link
Owner

dwcaress commented Feb 25, 2019 via email

@greytear
Copy link
Author

Dave
On my workstation I'm using backports, so

gmt --version
5.4.5

Thanks!

@cdsferreira
Copy link
Collaborator

Dave and Luis,

It could be that the netcdf package. The GMT package from backports is accepting anything between libnetcdf 3.6 (from 2008) and 4.4 (2016).

Likely the netcdf library package in Luis’ installation is netcdf 4.4. But the regular libnetcdf from Debian (stable) is 4.3 from 2014. Maybe that could be reason, maybe not.

Cheers,
Christian

@greytear
Copy link
Author

Christian,
Thanks for your input.
Indeed, my netcdf package version is 4.4.1.1 of Apr 4 2017.
Regards

@dwcaress
Copy link
Owner

dwcaress commented Feb 26, 2019 via email

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

3 participants