- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在运行 64 位 Debian Wheezy,我一直在尝试使用步骤 here. 编译 gobject-introspection当我最初尝试使用以下方法编译它时:
./configure --prefix=/usr --disable-static &&
make
它提示我的 GLib 版本太低(2.42.1)。于是我去编译了 GLib 2.44.0,并顺利安装了它。我试图再次编译它,但它返回了同样的错误。这是日志的相关部分。
checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.44.0) were not met:
Requested 'glib-2.0 >= 2.44.0' but version of GLib is 2.42.1
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
当我运行“gapplication version”和“gtester --version”时,我得到“2.44.0”,但是当我运行“gsettings --version”时它返回2.42.1——我的初始版本。不过,我不确定这是否相关。
最佳答案
获取版本的相关调用是 pkg-config --modversion glib-2.0
.错误消息告诉您需要做什么来修复它。
至于发生了什么,确实没有足够的信息可以确定,但我猜:您将前缀设置为/usr,默认情况下 libdir 是 $prefix/lib,并且 pkg-config 文件安装在 $libdir/pkgconfig .我的猜测是您的 pkg-config 正在查看/usr/lib64/pkgconfig 而不是/usr/lib/pkgconfig。如果你的 libdir 应该是/usr/lib64(或/usr/lib 以外的任何东西),你应该通过传递 --libdir=/usr/lib64
来设置它。到 glib 的配置脚本。
希望您没有覆盖任何现有的 32 位 glib 内容……如果您这样做了,您可能需要重新安装一些软件包。
关于compiler-errors - 由于 glib 错误,无法处理 gobject-introspection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29908444/
我有一个 GObject“A”,它在其构造函数中创建另一个 GObject“B”的实例。 “B”对象需要传递几个仅用于构造的属性。现在,在创建对象“A”的实例时,我希望允许通过对象“A”的构造函数将这
我正在尝试用 c (c_glib) 创建一个 Flume-thrift 客户端,但在创建应发送到服务器的 gobject 时遇到问题。我在 main.c 中的行中收到以下错误: `GLib-GObje
我在 gobject 上阅读了一个维基百科页面,上面写着, Depending only on GLib and libc, GObject is a cornerstone of GNOME and
我尝试像这样导入 Gtk:从 gi.repository 导入 Gtk 我收到以下错误: ImportError:当使用 gi.repository 时,您不能导入像“gobject”这样的静态模块。
我是编程新手。我正在创建一个 Qt GUI 应用程序。这是一个小的拼字游戏。问题是每当我在构建它后从命令提示符启动这个程序时,我都会在命令提示符下得到以下输出: JumbleGame 1.0 Laun
GObject 世界中有没有办法在编译时检测未初始化的纯虚函数? 我想调用一个纯虚拟方法而不先检查它。 /* pure_virtual_method must be non NULL */ base-
我正在使用 pygtk 通过框架编写程序。主程序做以下事情: 创建一个看门狗线程来监控一些资源 创建客户端从socket接收数据 调用gobject.Mainloop() 但是好像我的程序进入Main
问题 使用 GObject 和 C,我试图在模块“Foo”中创建名为“Bar”的类 GObject 的子类。但是,宏“G_DECLARE_FINAL_TYPE”(在 gobject/gtype.h 中
如何在 GObject/Gtk 中获取某个类的类对象?例如,如果我的类是 GtkSpinButton,我想获取代表该类的 GtkSpinButtonClass 实例。就是中的参数“class” gtk
我正在寻找 GObject 备忘单,了解常见的 OOP 概念如何映射到 GObject 的设施。例如考虑: AnyGObject *o; o = anygobject_new(); 现在,约定是什么.
何时取消引用 GObject 以及何时释放它? GObject tutorial声明一个 GObject 应该被和释放,但是一个 GObject 真的不应该释放自己当且仅当它的引用计数下降到 0 吗?
我想使用 GObject.add_emission_hook 来连接以捕获类的所有实例的信号。它似乎有效,但只有一次。在下面的最小示例中,无论单击其中一个按钮多少次,“收到信号”仅打印一次。这是为什么
有没有办法用小部件存储自定义信息? 例如,假设我有一个包含 20 个网址的列表。 我创建了 20 个按钮,每个 url 一个。 我想做到这一点,以便当我单击按钮时,会打开一个网址。但我需要一种方法来知
以 glib GObject 为例: typedef struct _MyInstance MyInstance; struct _MyInstance { GObject paren
我在 python 中使用 io_add_watch 监视器时遇到问题(通过 gobject)。我想在每次通知后对整个缓冲区进行非阻塞读取。这是代码(缩短了一点): class SomeApp(obj
GObject Reference Manual声明 GObject 系统旨在通过使用一些通用胶水代码将用 C 编写的函数导出到其他语言。还需要注意的是,这种胶水明确存在于 perl 和 python
我想在 Codeblocks 中使用 C GObject 库创建类。所以我有 2 个类:A.h 和 A.c但是当我像这样包含 gobject 库时: #include 它给我一个错误: Only
我想使用 GObject 调用的那个函数看起来像下面这样: char * some_object_fun(SomeObject *self, char *input); 有什么好的方法可以实现吗?我会
我正在开发一个 gstreamer 应用程序。有一些基本概念我不明白。谁能解释一下 g Object 的概念?还有什么是gobject initialization, gobject properti
我想在开始耗时的操作(将几兆字节的文本加载到 TextBuffer 中)之前修改 PyGTK 应用程序中某些标签的文本。但是,当我尝试执行此操作时,标签更新直到 TextBuffer 开始加载文件(文
我是一名优秀的程序员,十分优秀!