用 C 检查 gconf-client

发布于 2024-09-07 05:14:45 字数 116 浏览 0 评论 0原文

我在 y C 应用程序中使用 gconf/gconf-client.h,但我不知道 gconf 是否在用户计算机上。我如何检查 gconf/gconf-client.h 和 gconf 是否存在?

谢谢

i use gconf/gconf-client.h in ,y C application, but i don't know, is gconf on users machine. How can i check gconf/gconf-client.h and gconf there or not?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暗恋未遂 2024-09-14 05:14:45

如果代码可以编译,那么它可能已经安装了。否则,您可以下载该软件包并安装它。

如果使用pkg-config --cflags gconf-2.0并编译,如果PKG_CONFIG_PATH中不存在该包,gcc将给出相应的错误。

If the code compiles then probably its already installed. Otherwise you can download the package and install it.

If you use the pkg-config --cflags gconf-2.0 and compile, gcc will give corresponding error if the package doesnt exist in the PKG_CONFIG_PATH.

是你 2024-09-14 05:14:45

使用 pkg 配置。将其放入您的 configure.ac 中:

PKG_CHECK_MODULES([MYAPPLICATION], [gtk+-2.0 gconf-2.0])

事实上,您应该已经有这样的一行了。只需添加 gconf-2.0 即可。

Use pkg-config. Put this in your configure.ac:

PKG_CHECK_MODULES([MYAPPLICATION], [gtk+-2.0 gconf-2.0])

In fact, you should already have a line like that in there. Just add gconf-2.0 to it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文