用 C 检查 gconf-client
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果代码可以编译,那么它可能已经安装了。否则,您可以下载该软件包并安装它。
如果使用
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.使用 pkg 配置。将其放入您的
configure.ac
中:事实上,您应该已经有这样的一行了。只需添加
gconf-2.0
即可。Use pkg-config. Put this in your
configure.ac
:In fact, you should already have a line like that in there. Just add
gconf-2.0
to it.