RE: gdk_pixbuf_new_from_file not recognizing png file format



Hi,

The configure options for gtk+ are:

CC=arm-linux-gcc ./configure --host=arm-linux --build=i386-linux
--enable-shared --enable-directfb=yes   --enable-xlib=no --without-x
--with-gdktarget=directfb --without-libtiff   --disable-modules
--disable-largefile --prefix=$PREFIX

So it looks like png was not disabled. Then what could be the root
cause?

Regards,
Varadaraj.

-----Original Message-----
From: Tristan Van Berkom [mailto:tvb gnome org] 
Sent: Thursday, December 21, 2006 8:42 PM
To: Varadaraj Yatirajula (WT01 - IP-Multimedia Carrier & Ent Networks)
Cc: gtk-list gnome org; Krithika Sivakumar (WT01 - IP-Multimedia Carrier
& Ent Networks)
Subject: Re: gdk_pixbuf_new_from_file not recognizing png file format

On Thu, 2006-12-21 at 20:23 +0530, varadaraj yatirajula wipro com wrote:
> Hi,
> 
> I am designing a GUI to run on an arm platform.
> 
> I am creating a button and overlaying it with an image which can be
> either an xpm or png format - however it looks like the xpm and png
> file formats are not being recognized on the board - I get the
> following error when executing gdk_pixbuf_new_from_file():
> 
> Couldn't recognize the image file format for file for file
> '/mnt/run/button.png'
> 
> However, the same program works on a Linux machine (X11), and the
> pixmap is displayed correctly.
> 
> Any inputs on what may be the cause of the error?

Looks like the gtk+ that compiled and installed on your
particular arm machine was built without png support.

You should let whomever is responsable for packaging
gtk+ on that system know about this error, or maybe
it was done intentionally.

Cheers,
                      -Tristan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]