Ticket #26095 (closed defect: duplicate)
gimp 2.6.10 build failure: pygobject.h not found
| Reported by: | paul@… | Owned by: | devans@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.1 |
| Keywords: | Cc: | ||
| Port: | gimp2 |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

