gdk_pixbuf_new_from_file_at_scale() returning error saying "Unrecognized image file format" when loading png files


I have built weston with wayland (wayland 0.85). When I try to run weston server it is loaded properly but the cursor is not displayed.

When I dig into more detail and put some logs I could see that following functions are getting called:

Now, the function gdk_pixbuf_new_from_file_at_scale() is returning some error value with "Unrecognized image file format" which is resulting in error print "Error loading pointer image.".

I checked the mime database. The mime database is present in /usr/share. But I am installing and using my local directory for all my source code. My directory is /home/avijit/install/ and there is no mime database installed under /home/avijit/install/share. So, do I need to install the mime databse within my environment?? If yes, what is the procedure to do so?

I checked the gdk-pixbuf loader in my environment (/home/install/lib/gdk-pixbuf/2.10.0/loaders) and it is using an external loader. The png loader file is also mentioned in loader.cache. 

Here is the output command of ldd:
ldd =>  (0x004e2000) => /home/wipro/install/lib/ (0x00cd8000) => /home/wipro/install/lib/ (0x00e3a000) => /home/wipro/install/lib/ (0x00ce9000) => /home/wipro/install/lib/ (0x00110000) => /lib/i386-linux-gnu/ (0x003c5000) => /lib/i386-linux-gnu/ (0x00b35000) => /lib/i386-linux-gnu/ (0x00981000) => /lib/i386-linux-gnu/ (0x0060f000) => /lib/i386-linux-gnu/ (0x00232000) => /lib/i386-linux-gnu/ (0x00394000) => /home/wipro/install/lib/ (0x002d1000) => /lib/i386-linux-gnu/ (0x00c07000)
        /lib/ (0x00247000)
ldd =>  (0x00319000) => /home/wipro/install/lib/ (0x0074b000) => /home/wipro/install/lib/ (0x00130000) => /home/wipro/install/lib/ (0x00bd6000) => /lib/i386-linux-gnu/ (0x0089b000) => /lib/i386-linux-gnu/ (0x009da000) => /lib/i386-linux-gnu/ (0x00180000) => /home/wipro/install/lib/ (0x00b00000) => /home/wipro/install/lib/ (0x0031a000) => /lib/i386-linux-gnu/ (0x0047e000) => /home/wipro/install/lib/ (0x007b0000) => /lib/i386-linux-gnu/ (0x00110000) => /lib/i386-linux-gnu/ (0x00119000)
        /lib/ (0x00ec8000) => /lib/i386-linux-gnu/ (0x002fc000) => /lib/i386-linux-gnu/ (0x00b7e000)


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