Compile error, "only <glib.h> can be included directly"

2 replies [Last post]
audiodef
User offline. Last seen 4 days 21 hours ago. Offline
Joined: 2009-08-29
Posts:

I just got the latest GIT for 2.8.11 (current installed version is revision 11782), to pick up any updates, and I ran into a compile failure:


In file included from libs/glibmm2/glibmm/containerhandle_shared.h:32:0,
from libs/glibmm2/glibmm/arrayhandle.h:24,
from libs/glibmm2/glibmm/miscutils.h:24,
from libs/pbd/basename.cc:21:
/usr/include/glib-2.0/glib/gmem.h:28:2: error: #error "Only can be included directly."
In file included from libs/glibmm2/glibmm/ustring.h:24:0,
from libs/glibmm2/glibmm/containerhandle_shared.h:34,
from libs/glibmm2/glibmm/arrayhandle.h:24,
from libs/glibmm2/glibmm/miscutils.h:24,
from libs/pbd/basename.cc:21:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only can be included directly."
In file included from libs/glibmm2/glibmm/ustring.h:25:0,
from libs/glibmm2/glibmm/containerhandle_shared.h:34,
from libs/glibmm2/glibmm/arrayhandle.h:24,
from libs/glibmm2/glibmm/miscutils.h:24,
from libs/pbd/basename.cc:21:
/usr/include/glib-2.0/glib/gunicode.h:23:2: error: #error "Only can be included directly."
In file included from libs/glibmm2/glibmm/unicode.h:27:0,
from libs/glibmm2/glibmm/ustring.h:26,
from libs/glibmm2/glibmm/containerhandle_shared.h:34,
from libs/glibmm2/glibmm/arrayhandle.h:24,
from libs/glibmm2/glibmm/miscutils.h:24,
from libs/pbd/basename.cc:21:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only can be included directly."
In file included from libs/glibmm2/glibmm/unicode.h:28:0,
from libs/glibmm2/glibmm/ustring.h:26,
from libs/glibmm2/glibmm/containerhandle_shared.h:34,
from libs/glibmm2/glibmm/arrayhandle.h:24,
from libs/glibmm2/glibmm/miscutils.h:24,
from libs/pbd/basename.cc:21:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only can be included directly."
In file included from libs/glibmm2/glibmm/unicode.h:29:0,
from libs/glibmm2/glibmm/ustring.h:26,
from libs/glibmm2/glibmm/containerhandle_shared.h:34,
from libs/glibmm2/glibmm/arrayhandle.h:24,
from libs/glibmm2/glibmm/miscutils.h:24,
from libs/pbd/basename.cc:21:
/usr/include/glib-2.0/glib/gunicode.h:23:2: error: #error "Only can be included directly."
In file included from libs/glibmm2/glibmm/debug.h:24:0,
from libs/glibmm2/glibmm/containerhandle_shared.h:36,
from libs/glibmm2/glibmm/arrayhandle.h:24,
from libs/glibmm2/glibmm/miscutils.h:24,
from libs/pbd/basename.cc:21:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only can be included directly."
scons: *** [libs/pbd/basename.os] Error 1
scons: building terminated because of errors.

Is this something I just have to wait for to be fixed, or is there something I should do myself?

paul
paul's picture
User offline. Last seen 19 hours 6 min ago. Offline
Joined: 2006-03-16
Posts:

@audiodef: already fixed in svn. In addition, Ardour does not have an official git repository, so "just got git for 2.8.11" doesn't have much meaning. finally, the last time i looked, we were already at release 2.8.12 ....

Ricardus
Ricardus's picture
User offline. Last seen 5 hours 29 min ago. Offline
Joined: 2009-05-31
Posts:

When was the last time you looked?