gpt4 book ai didi

linux - gio.h 没有那个文件或目录

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:39:00 27 4
gpt4 key购买 nike

我正在尝试在此处编译 GIO 示例程序代码 developer.gnome.org关联。我用来编译它的命令是

    g++ gdbserver.cpp `pkg-config glib-2.0 --libs --cflags gtk+-2.0 gio-unix-2.0`

但是报错

    package gio-unix-2.0 was not found in the pkg-config search path
(... the remaining pkg-config message ...)
error: gio/gio.h: No such file or directory
(... other g++ error messages ...)

安装了 glib 和 glib-devel(我认为 GIO 自带 glib,对吧?)我在这里做错了吗?

编辑:我正在使用(我应该使用它)的 centos5.5 具有 glib2 版本 2.12,并且只有版本 2.15 或更高版本的 glib2 与 GIO 一起提供。我不确定如何单独安装 GIO。

最佳答案

CentOS 5.5 没有 gio。它改用 gvfs。

关于linux - gio.h 没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10547290/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com