[Qt-interest] DBus location on OSX?

Samuel Gaist samuel.gaist at edeltech.ch
Tue Apr 19 16:31:22 CEST 2011


On 19 avr. 2011, at 16:09, Philippe wrote:

> 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
> 
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest


A shot in the dark, but if you are running snow leo with the latest Xcode, by default you are building for x86_64.

Either recompile dbus for i386 or build your project for x86_64.

Hope this helps
Samuel




More information about the Qt-interest-old mailing list