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

glib.h not found #1484

Open
anbj opened this issue Oct 22, 2024 · 3 comments
Open

glib.h not found #1484

anbj opened this issue Oct 22, 2024 · 3 comments

Comments

@anbj
Copy link
Contributor

anbj commented Oct 22, 2024

Tested on git head and 5.8.1.

I'm getting an error which is new to me:

[ 73%] Building C object src/mbaux/CMakeFiles/mbaux.dir/mb_readwritegrd.c.o
[ 73%] Built target mb_read_init_test
[ 77%] Built target mbview
In file included from /usr/local/include/gmt/gmt_dev.h:157,
                 from /home/anbj/MB-System/src/mbaux/mb_readwritegrd.c:39:
/usr/local/include/gmt/gmt_glib.h:36:10: fatal error: glib.h: No such file or directory
   36 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.

It seems to come from a gmt header file. I've installed the dependencies.

This 'error' may not belong to MB-System, but creating this report in hope for some tips. @joa-quim, do you know of any changes lately that may lead to this?

@joa-quim
Copy link
Contributor

It seems that somehow this is related to what triggered GenericMappingTools/gmt#8577
But gmt_glib.h:36 has

#ifdef HAVE_GLIB_GTHREAD
#include <glib.h>

So, if HAVE_GLIB_GTHREAD is set that means the location of glib.h should be know too. Don't understand the failure.

@dwcaress
Copy link
Owner

dwcaress commented Oct 23, 2024 via email

@anbj
Copy link
Contributor Author

anbj commented Oct 23, 2024

It's a recent thing at least. I'm pretty sure I successfully compiled MB-system just a few weeks/months ago (with bleeding edge GMT). I know for sure it worked in May, so the reason you refer to @joa-quim seems probable.

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