[Nice] Compiling libnice-0.0.6 with MinGW

Youness Alaoui youness.alaoui at collabora.co.uk
Tue Apr 7 11:01:41 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andoni Morales wrote:
> Hi,
> 
> 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
> http://gnuwin32.sourceforge.net/downlinks/sed.php
> 
> Now I'm stuck at this point and I don't know how to continue:
> http://pastebin.com/m489dc117
> 
> Does any one knows how to compile libnice with MinGW?
> 
> Thank you for your help
> 

Hi,

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.

Thanks,
Youness.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknblQUACgkQqvxLNLvrsxxIJACfd6cgofTI5SFOQMvVXs4pS/25
5noAn1ke2zV4FIqIav7zHoqrsc8qXdUP
=7fMH
-----END PGP SIGNATURE-----


More information about the Nice mailing list