Reputation:
I am trying to compile the GIO example program code at here on developer.gnome.org link. And the command I am using to compile it is
g++ gdbserver.cpp `pkg-config glib-2.0 --libs --cflags gtk+-2.0 gio-unix-2.0`
But an error message
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 and glib-devel are installed ( I think GIO comes with glib, right?) Is there a mistake I am doing here.
edit : The centos5.5 I am using (I am supposed to use it) has glib2 version 2.12 and only glib2 with version 2.15 or higher come along with GIO. I am not sure how to install GIO seperately.
Upvotes: 1
Views: 10291
Reputation: 5705
You need
g++ gdbserver.cpp `pkg-config glib-2.0 gio-2.0 --libs --cflags gtk+-2.0 gio-unix-2.0`
(Note the addition of the gio-2.0
pkg-config name.)
Upvotes: 0
Reputation: 798436
CentOS 5.5 does not have gio. It uses gvfs instead.
Upvotes: -1