#error "Only <glib.h> can be included directly." (was: Re: Mountain lion, retina display, <glib.h>)
ryandesign at macports.org
Tue Aug 28 12:57:00 PDT 2012
On Aug 28, 2012, at 09:09, Brandon Allbery wrote:
> On Tue, Aug 28, 2012 at 8:17 AM, Mr Javier Urriola Yaksic wrote:
>> /opt/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
> This is a recent API change in glib (introduced in glib 2.3). If you cannot get an updated version of the program you are trying to build, you may need to reinstall an older version of glib; see < http://trac.macports.org/wiki/howto/InstallingOlderPort>.
> (Google for "only glib.h can be included directly" to see all the packages and systems affected by this. You could also trawl our bug tracker, as a bunch of ports had to be updated after glib was updated to 2.3.)
Actually it's trivial to update software to be compatible with this glib API change; I found a script to do so, and have been using this to commit any such updates. I should commit that to my scripts directory.
More information about the macports-users