Display images using Gtk/Gdk/Gdk-pixbuf

Display images using Gtk/Gdk/Gdk-pixbuf

Post by Andreas Burtzlaf » Thu, 10 Oct 2002 00:20:57


Hi,

I'm currently working on an simple image viewer application that will be
  extended with some quite specific features later on.
I decided to use Glade to produce the structure and Gdk and Gdk-pixbuf
for image loading etc.
Since this is my first try with gtk/gdk etc I'm getting quite confused
about the different kinds of image structures.
Having successfully loaded a pixbuf using gdk_pixbuf_new_from_file I'm
wondering how to make it show in a specific GtkPixmap (or GtkImage).
I tried to use gdk_pixbuf_render_pixmap_and_mask to render the pixbuf to
the pixmap that was previously created in the code produced by glade,
but nothing happens ;(

Can anybody give me a hint about how to visualize a pixbuf in a
GtkPixmap or GtkImage?

thanks in advance

Andy

Gtk 1.2
Gdk-pixbuf 0.10.0

 
 
 

1. gdk-pixbuf (Gnome) compile error on Solaris

I'm getting the following errors when I'm trying to compile gdk-pixbuf on a
sparc solaris8 system:

/bin/sh ../libtool --mode=link gcc  -g -O2  -o libpixbufloader-png.la -rpath
/usr/local/lib/gdk-pixbuf/loaders -version-info 1:0:0 -module io-png.lo
-lpng -lz
rm -fr .libs/libpixbufloader-png.la .libs/libpixbufloader-png.*
.libs/libpixbufloader-png.*
/usr/ccs/bin/ld -G -h libpixbufloader-png.so.1 -o
.libs/libpixbufloader-png.so.1.0.0  io-png.lo  -lpng -lz -lc
ld: fatal: library -lpng: not found
ld: fatal: File processing errors. No output written to
.libs/libpixbufloader-png.so.1.0.0
make[3]: *** [libpixbufloader-png.la] Error 1
make[3]: Leaving directory `/opt/dist/gnome/req/gdk-pixbuf-0.8.0/gdk-pixbuf'
make[2]: *** [all-recursive] Error 1

Now, it's saying that the library png is not found but it's looking in
/usr/local/lib and they exist there as shown below.

-rw-r--r--   1 bin      bin       189880 May  7 03:19
/usr/local/lib/libpng.a
lrwxrwxrwx   1 root     other         11 Sep  5 21:38
/usr/local/lib/libpng.so -> libpng.so.2
lrwxrwxrwx   1 root     other         17 Sep  5 21:38
/usr/local/lib/libpng.so.2 -> libpng.so.2.1.0.6
-rwxr-xr-x   1 bin      bin       215116 May  7 03:19
/usr/local/lib/libpng.so.2.1.0.6

Does anyone have any ideas on how to continue further?  I'm having a similar
problem with ORBit as well and I would imagine the same fix would apply for
both.

2. winmodem

3. Gnome installation: gdk-pixbuf/libbonoboui conflict

4. ?? Kernel after 1.0.9 ??

5. can't install gdk-pixbuf in redhat

6. AIX web server - where?

7. Can't install gdk-pixbuf in redhat

8. Why Linux is cheaper and better.

9. libjpeg shared object for gdk-pixbuf

10. Compiling GNOME - Compiler can't find GDK-Pixbuf

11. gdk-pixbuf problems

12. gdk-pixbuf (Gnome) compile error on Solaris

13. A problem with gdk-pixbuf/GNOME panel