Unable to load cursor when weston server is loaded

Rob Bradford rob at robster.org.uk
Mon Jun 11 08:05:10 PDT 2012


On 11 June 2012 14:55,  <avijit.manna at wipro.com> wrote:
> Hi,
>
> 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:
> create_pointer_surfaces()->display_create_surface_from_file()->display_create_egl_image_surface_from_file()->gdk_pixbuf_new_from_file_at_scale().
>
> Now, the function gdk_pixbuf_new_from_file_at_scale() is returning some error value with "Unrecognized file format" which is resulting in error print "Error loading pointer image.".
>

This might be a mime type problem or a gdk-pixbuf loader problem.

To check that the mime guessing code is working try running the
attached code against the image under the same environment that you're
running weston.

If that fails you need to make sure you have the mime type databases
installed. If that succeeds you need to look at loader problem.

My gdk-pixbuf has png built in but yours might use an external loader
inside e.g. /usr/lib/gdk-pixbuf/<version>/loaders (check with ldd to
see if your gdk-pixbuf has png built in.) You also need to make sure
that the png loader is in the loaders.cache file inside
/usr/lib/gdk-pixbuf/<version>/

Good luck!

Cheers,

Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: content-guess.c
Type: text/x-csrc
Size: 662 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20120611/615c3d33/attachment.c>


More information about the wayland-devel mailing list