On Aug 25, 2018, at 15:03, Riccardo Mottola wrote:
> I am updating gimp2 and it fails to build:
>
> /opt/local/bin/clang-mp-5.0 -DHAVE_CONFIG_H -I. -I../..
> -DISO_CODES_LOCATION=\"/opt/local/share/xml/iso-codes\"
> -DISO_CODES_LOCALEDIR=\"/opt/local/share/locale\"
> -DG_LOG_DOMAIN=\"Gimp-Widgets\" -I../.. -I../.. -I../../app -I../../app
> -D_REENTRANT -I/opt/local/include/gegl-0.4 -I/opt/local/include/json-glib-1.0
> -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1 -D_REENTRANT
> -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
> -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz
> -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi
> -I/opt/local/include/cairo -I/opt/local/include/atk-1.0
> -I/opt/local/include/cairo -I/opt/local/include/pixman-1
> -I/opt/local/include/ossp -I/opt/local/include/freetype2
> -I/opt/local/include/libpng16 -I/opt/local/include/gdk-pixbuf-2.0
> -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include
> -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE
> -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE
> -DGTK_MULTIHEAD_SAFE "-xobjective-c" -pipe -Os -arch x86_64 -Wall
> -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes
> -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith
> -Wold-style-definition -Wmissing-format-attribute -Wformat-security
> -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -MT
> gimpwidgets-utils.o -MD -MP -MF .deps/gimpwidgets-utils.Tpo -c -o
> gimpwidgets-utils.o gimpwidgets-utils.c
> gimpwidgets-utils.c:37:10: fatal error: 'CoreGraphics/CoreGraphics.h' file
> not found
> #include <CoreGraphics/CoreGraphics.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> make[3]: *** [gimpwidgets-utils.o] Error 1
>
>
> isn't this strange? CoreGraphics.h exists since quite some timeā¦.
> Ideas?
>
> Riccard
CoreGraphics didn't become a top-level framework until OS X 10.8. On 10.7 it
was only available as a part of ApplicationServices.
According to
https://stackoverflow.com/questions/4170459/mac-adding-coregraphics-framework-for-cg-use-in-a-c-header/4173621#4173621,
one should instead include <ApplicationServices/ApplicationServices.h>.
Would you report this bug to the developers of gimp, if it has not already been
reported to them?
https://gitlab.gnome.org/GNOME/gimp/issues