我正在尝试编译developer.gnome.org链接上的GIO示例程序代码。我用来编译它的命令是
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 (我应该使用它)有GIO2.12版本,只有2.15或更高版本的glib2带有glib2。我不知道如何单独安装GIO。
发布于 2012-05-14 12:27:45
CentOS 5.5没有gio。它使用的是gvfs。
https://stackoverflow.com/questions/10547290
复制相似问题