解决问题帖--交叉编译gdk-pixbuf之loaders.cache

4 篇文章 0 订阅
3 篇文章 0 订阅

对于这个问题发现了问题所在,提出了一个可用的烂补丁,给大家引出问题所在,抛转引玉,希望大家给出一个更加完美的解决方案。

在交叉编译gdk-pixbuf时可能会在配置时没有问题,但是在Make时出现如下错误提示:

No rule to make target '../gdk-pixbuf/loaders.cache',needed by 'gdk-pikbuf-thumnailer.thumnailer. Stop

经过查找一些资料,发现这个文件是一个用来记录可用的动态加载模块的缓存文件,由gdk-pixbuf-query-loaders生成的。生成后由gdk-pixbuf-thumnailer使用,相当于gdk-pixbuf-thumnailer的配置文件,跟据这个文件生成供其他应用程序使用的缩略图。相关资料:

最接近真相的是GNOME提供的资料。但这里只介绍了这个文件是怎么来的,没有介绍有什么用途。

然后在一个gdk-pixbuf的下载网站找到了产生者和使用者的用途:

经过一系列的研究发现是在Make时先生成了这两个可执行文件,但是由于是交叉编译,自己的电脑无法使用这两个可执行文件尽心模块信息的收集,生成缩略图。或者是由于生成的那些动态加载模块自己电脑也无法执行无法检测是否可用。或者两者皆有。

解决办法:在库的解压目录下的gdk-pixbuf目录下建一个空的loaders.cache文件。相当于没有收集到可用的动态加载模块信息,自然不会执行gdk-thumnailer去生成缩略图。可以完成编译。

这个问题应当出现在交叉编译时,正常的自己电脑上安装这个库应该不会出问题。至于为什么要在编译阶段就收集模块信息生成缩略图暂时不知。

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Table of Contents I. API Reference Initialization and Versions - Library version numbers. The GdkPixbuf Structure - Information that describes an image. Reference Counting and Memory Mangement - Functions for reference counting and memory management on pixbufs. File Loading - Loading a pixbuf from a file. File saving - Saving a pixbuf to a file. Image Data in Memory - Creating a pixbuf from image data that is already in memory. Inline data - Functions for inlined pixbuf handling. Scaling - Scaling pixbufs and scaling and compositing pixbufs Rendering - Rendering a pixbuf to a GDK drawable. Drawables to Pixbufs - Getting parts of a GDK drawable's image data into a pixbuf. Utilities - Utility and miscellaneous convenience functions. Animations - Animated images. GdkPixbufLoader - Application-driven progressive image loading. Module Interface - Extending gdk-pixbuf gdk-pixbuf Xlib initialization - Initializing the gdk-pixbuf Xlib library. Xlib Rendering - Rendering a pixbuf to an X drawable. X Drawables to Pixbufs - Getting parts of an X drawable's image data into a pixbuf. XlibRGB - Rendering RGB buffers to X drawables. II. Tools Reference gdk-pixbuf-csource - C code generation utility for GdkPixbuf images gdk-pixbuf-query-loaders - GdkPixbuf loader registration utility Index Index of deprecated symbols Index of new symbols in 2.2 Index of new symbols in 2.4 Index of new symbols in 2.6 Index of new symbols in 2.8 A. Porting applications from Imlib to gdk-pixbuf Introduction Differences between Imlib and gdk-pixbuf Initialization Memory management The Rendering Process Converting Applications to gdk-pixbuf Image loading and creation Rendering Images Scaling Images

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值