[Qt-interest] DBus location on OSX?

Philippe philwave at gmail.com
Tue Apr 19 16:09:31 CEST 2011


Many thanks, I could make progresss. Installing pkg-config and setting
PKG_CONFIG_PATH, allow Qt's configure to find dbus.
Unfortunatly, this is not enough... I get this error:

ld: warning: in /opt/local/lib/libdbus-1.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
  "_dbus_shutdown", referenced from:
      _main in dbus.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [dbus] Error 1

Could that mean that dbus is not properly built for Mac OSX? Is there
any special configure instuction?

Philippe

On Tue, 19 Apr 2011 07:23:33 -0300
Thiago Macieira <thiago at kde.org> wrote:

> On Tuesday, 19 de April de 2011 09:20:23 Philippe wrote:
> > "The QtDBus module cannot be enabled because libdbus-1 version 0.93 was
> > not found."
> > 
> > Hence my question: where "libdbus-1.a" is meant to be found in OSX
> > system to build QtDBus?
> 
> To fix that error, the question is not on libdbus-1.a or dylib, but on 
> dbus-1.pc. It should be installed somewhere that pkg-config will pick it up. If 
> you didn't install it, you can always set the PKG_CONFIG_PATH environment 
> variable to where you did install it.
> 
> To confirm, please run:
> 	pkg-config --cflags --libs 'dbus >= 0.93'
> 
> And ensure that the results are correct for your case.
> 
> I'd also highly recommend you build D-Bus in dynamic mode. I'm 95% sure that 
> linking a dynamic library to a static one will fail.
> 
> PS: please don't hijack threads. Your question has nothing to do with fast 
> scaling of images.
> -- 
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   Senior Product Manager - Nokia, Qt Development Frameworks
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358





More information about the Qt-interest-old mailing list