0

I used

gcc `pkg-config --cflags --libs dbus-1` hello-serv.c  -o server

to compile a dbus program and getting error:

hello-serv.c:7:32: fatal error: dbus/dbus-mainloop.h: No such file or directory
compilation terminated.

I'm developing in C low level API.

I couldn't find the mainloop.h in any of the include directories.

mu is too short
  • 426,620
  • 70
  • 833
  • 800
scari
  • 86
  • 2
  • 10

1 Answers1

0

If dbus development files is installed correctly, the installed dbus might be old so that it does not have dbus-mainloop.h

If you have yum, try this to check dbus-mainloop.h is provided or not.

# yum provides '*/dbus-mainloop.h'

If it returns none, you should consult with dbus-document for corresponding version.

kamae
  • 1,825
  • 1
  • 16
  • 21