Issue with gdkpixbuff



我正在使用yocto处理IMX6,我正在尝试使用GSTREAMER插件:GDKPIXBUFOVERLAY在我的板上,但我有以下错误:

gst-launch-1.0 autovideosrc ! gdkpixbufoverlay location=image.png ! autovideosink
(gst-launch-1.0:441): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstGdkPixbufOverlay:gdkpixbufoverlay0: Could not load overlay image.
Additional debug info:
../../../gst-plugins-good-1.6.3/ext/gdk_pixbuf/gstgdkpixbufoverlay.c(508): gst_gdk_pixbuf_overlay_start (): /GstPipeline:pipeline0/GstGdkPixbufOverlay:gdkpixbufoverlay0:
Couldn't recognize the image file format for file 'image.png'
Setting pipeline to NULL ...
Freeing pipeline ...

所以我尝试运行建议的命令,但我也没有工作。我看了输出:

/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders 
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders from gdk-pixbuf-2.32.3
#
# LoaderDir = /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
#

,输出充满了评论。我认为董事会上有什么问题,但找不到哪里。

我是否需要其他一些软件包才能使GDKPIXBUF起作用?我在Krogoth和Pyro分支上对Poky Distribution进行了测试,结果是相同的。

添加到您的配方( image-your_recipe_name.bb file)必要的软件包和子包装名称为行。在我的情况下,包装分开了,因此,为了使用PNG和JPEG图像叠加层,我的食谱看起来如下:

...
gdk-pixbuf 
gdk-pixbuf-loader-png 
gdk-pixbuf-loader-jpeg 
...

保存更改后,请不要忘记将其击倒:

bitbake image-YOUR_RECIPE_NAME

相关内容

  • 没有找到相关文章