[MacPorts] #26095: gimp 2.6.10 build failure: pygobject.h not found
MacPorts
noreply at macports.org
Sun Aug 15 16:00:25 PDT 2010
#26095: gimp 2.6.10 build failure: pygobject.h not found
------------------------------+---------------------------------------------
Reporter: paul@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: gimp pygobject.h | Port: gimp
------------------------------+---------------------------------------------
Building gimp itself fails with
{{{
pygimp-drawable.c:25:23: error: pygobject.h: No such file or directory
pygimp-pdb.c:25:23: error: pygobject.h: No such file or directory
gimpmodule.c:33:23: error: pygobject.h: No such file or directory
gimpmodule.c: In function ‘pygimp_user_directory’:
gimpmodule.c:1403: warning: implicit declaration of function
‘pyg_enum_get_value’
gimpmodule.c: In function ‘initgimp’:
gimpmodule.c:1871: warning: implicit declaration of function
‘init_pygobject’
gimpenumsmodule.c:29:23: error: pygobject.h: No such file or directory
make[4]: *** [gimpmodule.lo] Error 1
...
}}}
The solution is to edit this Makefile
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gimp2/work/gimp-2.6.10
/plug-ins/pygimp/Makefile
}}}
And add the final -I pygtk-2.0 include flag to GTK_CFLAGS
{{{
GTK_CFLAGS = -D_REENTRANT -I/opt/local/include/gtk-2.0
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
-I/opt/local/include/cairo -I/opt/local/include/pango-1.0
-I/opt/local/include/gio-unix-2.0/ -I/opt/local/include
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
-I/opt/local/include/libpng12
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pygtk-2.0
}}}
This was the last error I fixed in order to get gimp to build and run.
--
Ticket URL: <http://trac.macports.org/ticket/26095>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list