Building Qt 5 on OS X with DBus

Brandon Allbery allbery.b at
Tue Jan 6 14:38:28 PST 2015

On Tue, Jan 6, 2015 at 5:16 PM, Jeremy Whiting <jpwhiting at> wrote:

> When I try to build Qt 5.4 with -dbus-linked using dbus from macports it
> seems I have to specify -I/opt/local/include/dbus-1.0 but it still can't
> configure because dbus's /opt/local/include/dbus-1.0/dbus/dbus.h includes
> <dbus/dbus-arch-deps.h> which isn't installed by the dbus macport somehow.
> I guess this is a bug in the dbus port? What can I do to fix that so I can
> build qt?

pyanfar:3285 Z$ port contents dbus | grep arch

Looks like you want -I/opt/local/include/dbus-1.0/include, and I have no
idea what dbus.h you are otherwise getting --- and suggest you find out,
lest it interfere in other ways, possibly leading to shared library
conflicts or even core dumps.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list