0

This topic is related with following link . Temporarily I solved problem with headers: I just modified all include paths. When I try to call some dbus function, for example dbus_error_init(&err); I get a linker error: undefined reference to 'dbus_error_init'. libdbus-1.so is placed in /usr/lib/x86_64-linux-gnu so I added to pro file (I use Qt Creator) following line:

LIBS += -L/usr/lib/x86_64-linux-gnu -llibdbus-1

but I get follwoing info: cannot find -llibdbus-1 How to fix that ?

Community
  • 1
  • 1
Irbis
  • 11,537
  • 6
  • 39
  • 68

1 Answers1

1

Usually it's just -ldbus-1 or -ldbus. You can also try adding CONFIG += dbus in your .pro file to enable the Qt DBUS classes, which if I remember rightly detects the DBUS library as well, as long as Qt was built with support for it.

Nicholas Smith
  • 11,642
  • 6
  • 37
  • 55