pygimp doesn't build during Gimp 2.3.15 build
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
pygimp doesn't build during Gimp 2.3.15 build | Tom Williams | 11 Mar 16:23 |
pygimp doesn't build during Gimp 2.3.15 build | Sven Neumann | 11 Mar 20:54 |
pygimp doesn't build during Gimp 2.3.15 build
I'm posting this question here to see if it's a Python environment issue on my end or something in Gimp 2.3.15. I'm building Gimp 2.3.15 from source on a freshly re-installed Ubuntu 6.10 (AMD64) Linux system. Here is my build environment information:
gcc-4.1.2 20060928 (prerelease)
2.6.17 kernel (x86_64)
glib-2.12.4
gtk+-2.10.6
python 2.4.4c1
When I run the Gimp build, it stops with this error:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/include/python2.4
-I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE
-fno-strict-aliasing -g -O2 -Wall -Wdeclaration-after-statement
-Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith
-MT gimpuimodule.lo -MD -MP -MF .deps/gimpuimodule.Tpo -c
gimpuimodule.c -fPIC -DPIC -o .libs/gimpuimodule.o
gimpuimodule.c:49: warning: no previous prototype for 'init_gimpui'
(cd . \
&& /usr/bin/pygtk-codegen-2.0 \
--override gimpui.override \
--register /usr/share/pygtk/2.0/defs/gdk-types.defs \
--register /usr/share/pygtk/2.0/defs/gtk-types.defs \
--register ./gimpcolor-types.defs \
--register ./gimpenums-types.defs \
--prefix gimpui gimpui.defs) > gen-gimpui.c \
&& cp gen-gimpui.c gimpui.c \
&& rm -f gen-gimpui.c
Warning: generating old-style constructor for:gimp_color_display_new
Could not write method GimpColorDisplay.load_state: No ArgType for
GimpParasite*
Could not write method GimpColorDisplay.save_state: No ArgType for
GimpParasite*
Warning: generating old-style constructor for:gimp_color_selector_new
Warning: generating old-style constructor for:gimp_frame_new
Could not write method GimpIntComboBox.prepend: varargs functions not
supported
Could not write method GimpIntComboBox.append: varargs functions not
supported
Could not write method GimpIntComboBox.connect: No ArgType for GCallback
Could not write method GimpIntComboBox.set_sensitivity: No ArgType for
GimpIntSensitivityFunc
Warning: generating old-style constructor for:gimp_enum_combo_box_new
Warning: generating old-style constructor for:gimp_enum_store_new
Warning: generating old-style constructor for:gimp_memsize_entry_new
Warning: generating old-style constructor for:gimp_offset_area_new
Could not write method GimpPageSelector.get_selected_pages: No ArgType
for gint*
Warning: generating old-style constructor for:gimp_path_editor_new
Could not write method GimpPreview.get_position: No ArgType for gint*
Could not write method GimpPreview.get_size: No ArgType for gint*
Could not write method GimpPreviewArea.draw: No ArgType for GimpImageType
Could not write method GimpPreviewArea.blend: No ArgType for GimpImageType
Could not write method GimpPreviewArea.mask: No ArgType for GimpImageType
Could not write method GimpDrawablePreview.get_drawable: No ArgType for
GimpDrawable*
Could not write method GimpDrawablePreview.draw_region: No ArgType for
const-GimpPixelRgn*
Warning: generating old-style constructor for:gimp_size_entry_new
Could not write constructor for GimpSizeEntry: No ArgType for GimpUnit
Could not write method GimpSizeEntry.get_unit: No ArgType for GimpUnit
Could not write method GimpSizeEntry.set_unit: No ArgType for GimpUnit
Warning: generating old-style constructor for:gimp_unit_menu_new
Could not write constructor for GimpUnitMenu: No ArgType for GimpUnit
Could not write method GimpUnitMenu.set_unit: No ArgType for GimpUnit
Could not write method GimpUnitMenu.get_unit: No ArgType for GimpUnit
Could not write method GimpZoomModel.get_fraction: No ArgType for gint*
Could not write method GimpZoomPreview.get_source: No ArgType for gint*
Could not write method GimpZoomPreview.get_drawable: No ArgType for
GimpDrawable*
Traceback (most recent call last):
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1707, in ?
sys.exit(main(sys.argv))
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1698, in main
sw.write(py_ssize_t_clean)
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1340, in write
self.write_classes()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1437, in
write_classes
instance.write_class()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 283, in write_class
substdict['tp_methods'] = self.write_methods()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 519, in write_methods
methods.append(self.methdef_tmpl %
UnboundLocalError: local variable 'meth' referenced before assignment
make[4]: *** [gimpui.c] Error 1
make[4]: Leaving directory `/mnt/data/build/gimp-2.3.15/plug-ins/pygimp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/data/build/gimp-2.3.15/plug-ins/pygimp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/data/build/gimp-2.3.15/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/data/build/gimp-2.3.15'
make: *** [all] Error 2
real 11m29.654s
user 6m22.688s
sys 1m36.430s
tom@deathstar:~/build/gimp-2.3.15$
I searched BugZilla for "pygimp" and didn't find any build related bug reports. Is this possibly or probably an environment issue with my Python installation or is it possibly something in the version of pygimp that comes with Gimp 2.3.15?
Thanks!
Peace...
Tom
pygimp doesn't build during Gimp 2.3.15 build
Hi,
On Sun, 2007-03-11 at 08:23 -0700, Tom Williams wrote:
I'm posting this question here to see if it's a Python environment issue on my end or something in Gimp 2.3.15.
http://bugzilla.gnome.org/show_bug.cgi?id=381389
Sven