[Nice] Compiling libnice-0.0.6 with MinGW
youness.alaoui at collabora.co.uk
Tue Apr 7 11:01:41 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Andoni Morales wrote:
> I'm trying to compile libnice-0.0.6 with mingw and I had to do the
> following changes to save some compilations errors:
> Comment out `'#typedef unsigned long ssize_t' in stun/win32_common.h
> Comment out '#define close closesocket' in stun/bind.c
> Comment out '#typedef unsigned long ssize_t' in socket/udp-bsd.c
> Copy Microsoft SDKs\Windows\v6.1\Include\wspiappi.h to mingwgw/include
> The header provided by the Platform SDK, WSPiApi.h, will fail to
> compile on a line that starts with _inline. Change this to __inline
> Install sed with -i option from
> Now I'm stuck at this point and I don't know how to continue:
> Does any one knows how to compile libnice with MinGW?
> Thank you for your help
Well, I've tested and compiled libnice with Microsoft Visual Studio 2008
and haven't tried it with mingw...
Most of the time, the mingw headers aren't correct... it looks like it
defines the PMIB_IPADDRROW structure but its definition is not
correct... it's missing some stuff and some defines are also missing.
If you can fix it and provide us with a patch (which doesn't break MSVC
compilation) or instructions on how to make mingw compile this, then i'd
gladly apply it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Nice