2013-03-06 11 views
6

Ich habe versucht, ein Programm für dbus zu kompilieren und wie vorgeschlagen, habe ich im Code als Erwähnung einer ähnlichen Frage. Ich habe es auszuführen, wie gezeigt:D-Bus Verbindungsproblem

gcc `pkg-config --cflags dbus-glib-1` \ 
    `pkg-config --cflags dbus-1` \ 
    `pkg-config --cflags glib-2.0` \ 
    dbus-example.c \ 
    `pkg-config --libs dbus-glib-1` \ 
    `pkg-config --libs dbus-1` \ 
    `pkg-config --libs glib-2.0` 

Ich bin immer noch die folgende Fehlermeldung erhalten:

Package dbus-glib-1 was not found in the pkg-config search path. 
Perhaps you should add the directory containing `dbus-glib-1.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'dbus-glib-1' found 
Package glib-2.0 was not found in the pkg-config search path. 
Perhaps you should add the directory containing `glib-2.0.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'glib-2.0' found 
Package dbus-glib-1 was not found in the pkg-config search path. 
Perhaps you should add the directory containing `dbus-glib-1.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'dbus-glib-1' found 
Package glib-2.0 was not found in the pkg-config search path. 
Perhaps you should add the directory containing `glib-2.0.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'glib-2.0' found 

I installiert, um die oben genannten Pakete, aber immer noch der Fehler bestehen bleibt.

Antwort

7

Haben Sie die Entwicklungspakete für diese Bibliotheken oder nur die Bibliotheken selbst installiert? Unter Debian/Ubuntu möchten Sie libdbus-glib-1-dev und ähnliche -dev Pakete für die anderen; auf Fedora wollen Sie dbus-glib-devel und ähnliches.