can not compile dbus 1.6.2 on Win 7 64 bits
vincent.torri at gmail.com
Tue Jul 17 09:44:30 PDT 2012
On Tue, Jul 17, 2012 at 6:32 PM, Earnie Boyd
<earnie at users.sourceforge.net> wrote:
> On Tue, Jul 17, 2012 at 10:32 AM, Vincent Torri wrote:
>> I have installed MSYS, mingw-w64 64 bits 4.7.0.
>> I have compiled and installed expat 2.1.0 myself in /usr/local
>> I have configure dbus with just ./configure
>> Then make :
>> CCLD dbus-daemon.exe
>> cannot find -lrt
>> collect2.exe: error: ld returned 1 exit status
>> so -lrt is passed somewhere while it does not exist on Windows.
>> If you want more informations, please tell me.
>> Note : some warnings:
>> In file included from dbus-sockets-win.h:36:0,
>> from dbus-sysdeps-win.c:49:
>> : warning: #warning Please include winsock2.h before windows.h [-Wcpp]
> More stupidity from Microsoft. You can also define
> WINDOWS_LEAN_AND_MEAN to avoid the conflict. The conflict itself is
> that winsock.h (version 1) is included by default when windows.h is
> included without declaring WINDOWS_LEAN_AND_MEAN which interferes with
indeed, that solution was also proposed (maybe by you, btw). Though I
don't just define it but instead
# define WINDOWS_LEAN_AND_MEAN
because i've already included headers from other project that do not undef it.
>> that's something to fix. You can find some arguments why it must be
>> fixed in the mingw-w64 ML, iirc.
> The winsock2.h header checks to see that _WINSOCKAPI_ isn't defined
> which indicates that winsock.h has been included. IMO, the message
> isn't appropriate for the sin since one could also include winsock.h
> -- https://sites.google.com/site/earnieboyd
More information about the dbus