Not working for me. When I run my app, I get the error message:
pb = gtk.gdk.pixbuf_new_from_file(svg_fn)
glib.GError: Couldn't recognize the image file format for file
'c:\docume~1\somers_a\locals~1\temp\tmpmpsuri'
Looking at my gdk-pixbuf.loaders file, it is empty but for comments.
The default loader dir, C:\opt\gtk/lib/gtk-2.0/2.10.0/loaders ,
doesn't exist. Searching for file with "loader" in the name, all I
find is this. svg_loader.dll looks like the only loader.
$ find /cygdrive/c/opt/gtk -name '*loader*'
/cygdrive/c/opt/gtk/bin/gdk-pixbuf-query-loaders.exe
/cygdrive/c/opt/gtk/bin/svg_loader.dll
/cygdrive/c/opt/gtk/etc/gtk-2.0/.gdk-pixbuf.loaders.swp
/cygdrive/c/opt/gtk/etc/gtk-2.0/gdk-pixbuf.loaders
/cygdrive/c/opt/gtk/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h
/cygdrive/c/opt/gtk/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html
If I try to rerun gdk-pixbuf-query-loaders.exe and specify a module
name, I get this error:
C:\opt\gtk\bin>gdk-pixbuf-query-loaders.exe svg_loader
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders.exe from gtk+-2.16.6
#
g_module_open() failed for C:\opt\gtk\bin\svg_loader:
`C:\opt\gtk\bin\svg_loader.dll': The specified procedure could not be
found.
and a popup dialog windows that says "The procedure entry point
g_malloc0_n could not be located in the dynamic link library
libglib-2.0.0.dll". Do you have any ideas?
-Alan
On Tue, Apr 27, 2010 at 2:04 PM, Dieter Verfaillie
<[email protected]> wrote:
> Quoting [email protected]:
>
>> My pygtk app displays svg graphics. This works fine on Linux, but
>> displays nothing on Windows. This FAQ entry, though dated, confirms
>> my suspicions that PyGtk does not support SVG on Windows:
>> http://faq.pygtk.org/index.py?req=show&file=faq08.010.htp .
>
> The faq has been wrong for a long time, so I've removed that comment.
> I have to admit, however, that getting things working might not be
> obvious at first. For example, if you're using one of the "gtk+ bundles",
> you don't have the pixbuf-loader responsible for loading svg files
> (lib\gtk-2.0\2.10.0\loader\svg_loader.dll in your GTK+ installation).
>
> Yep, the gtk+-bundle distribution does not contain that library and
> it's dependencies out of the box. You'll need to install the following
> into your GTK+ installation, all available from
> http://ftp.gnome.org/pub/GNOME/binaries/win32/:
> svg-gdk-pixbuf-loader_2.26.2-1_win32.zip
> librsvg_2.26.2-1_win32.zip
> libcroco_0.6.2-1_wxin32.zip
> libxml2_2.7.7-1_win32.zip
> libgsf_1.14.17-1_win32.zip
>
> Once you've done that, you'll need to execute the following commands:
> cd ?:\???\my-gtk+-installation\bin
> gdk-pixbuf-query-loaders.exe > ..\etc\gtk-2.0\gdk-pixbuf.loaders
>
> That's about it,
> Have fun,
> Dieter
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> pygtk mailing list [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/