2013-03-06 11 views
6

Ho cercato di compilare un programma per dbus e come suggerito ho fatto nel codice come menzione a una domanda simile. L'ho fatto eseguirlo come mostrato:Problema di collegamento D-Bus

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` 

ancora sto ottenendo il seguente errore:

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 

ho installato i pacchetti di cui sopra, ma ancora l'errore persiste.

risposta

7

Avete installato i pacchetti di sviluppo per quelle librerie o solo le librerie stesse? Su Debian/Ubuntu, vuoi libdbus-glib-1-dev e pacchetti simili -dev per gli altri; su Fedora, vuoi dbus-glib-devel e simili.

Problemi correlati