Mountain lion, retina display, <glib.h>

Mr Javier Urriola Yaksic javier.urriola at uq.net.au
Tue Aug 28 05:17:04 PDT 2012


Dear Macports team,

Since more than one month I have been trying to install $ port install glib2 glibmm libpng gtk2 gtkmm gtkglext gsl  
The install process seems to finish succesfully all times. However, when I try to install a program through $ ./build it appear always this error:

bash-3.2$ ./build
[CC] cmd/dir2amp.o
[CC] lib/file/dicom/quick_scan.o
 [CC] cmd/streamtrack.o[CC] lib/file/dicom/study.o

[CC] cmd/gen_unit_warp.o
[CC] src/dwi/tractography/tracker/sd_prob.o[CC] cmd/import_tracks.o
[CC] src/dwi/tractography/tracker/base.o


ERROR: [CC] lib/file/dicom/quick_scan.o

g++ -c -Wall -mtune=native -fPIC -fno-strict-aliasing -DGL_GLEXT_PROTOTYPES -DUSE_TR1 -O2 -D_REENTRANT -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -Ilib -Isrc lib/file/dicom/quick_scan.cpp -o lib/file/dicom/quick_scan.o

failed with output:

In file included from lib/mrtrix.h:65,
                 from lib/file/dicom/quick_scan.h:30,
                 from lib/file/dicom/quick_scan.cpp:30:
/opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /opt/local/lib/glib-2.0/include/glibconfig.h:9,
                 from /opt/local/include/glib-2.0/glib/gtypes.h:34,
                 from lib/mrtrix.h:65,
                 from lib/file/dicom/quick_scan.h:30,
                 from lib/file/dicom/quick_scan.cpp:30:
/opt/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /opt/local/include/glib-2.0/glib/gtypes.h:35,
                 from lib/mrtrix.h:65,
                 from lib/file/dicom/quick_scan.h:30,
                 from lib/file/dicom/quick_scan.cpp:30:
/opt/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /opt/local/include/glib-2.0/glib/gtypes.h:36,
                 from lib/mrtrix.h:65,
                 from lib/file/dicom/quick_scan.h:30,
                 from lib/file/dicom/quick_scan.cpp:30:
/opt/local/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from lib/mrtrix.h:66,
                 from lib/file/dicom/quick_scan.h:30,
                 from lib/file/dicom/quick_scan.cpp:30:
/opt/local/include/glib-2.0/glib/gutils.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /opt/local/include/glib-2.0/glib/gutils.h:34,
                 from lib/mrtrix.h:66,
                 from lib/file/dicom/quick_scan.h:30,
                 from lib/file/dicom/quick_scan.cpp:30:
/opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."




it appears that glib.h has been not installed properly. I try and try many times but I can't figure out how to fix this. 
My laptop is a Macbook, Retina Display, OS X 10.8.1, 16GB, 500GB SSD

Thanks you in advance,
> 




More information about the macports-users mailing list