[libnice] Libnice 0.1.17 windows build bug

Olivier Crête olivier.crete at collabora.com
Mon Aug 25 05:09:49 PDT 2014


Hi,

What you want to use is g_networking_init();

Also, please submit patches to
https://bugs.freedesktop.org/enter_bug.cgi?product=nice as Kakaroto is
often quite busy with other things.

Olivier

On 08/25/2014 02:13 AM, Scott Richmond wrote:
> Andrei,
> 
> Would be great if you could submit a pull request
> here: https://github.com/kakaroto/libnice
> Would allow the devs to more easily integrate your solution.
> 
> 
> On Sat, Aug 23, 2014 at 12:03 AM, B Andrei <yo8tot at yahoo.com
> <mailto:yo8tot at yahoo.com>> wrote:
> 
>     Hello,
> 
>     I finally managed to run simple_example in windows. There is an
>     missing initialization in code. The function getaddrinfo() in
>     address.c at line 93 return a != 0 value. This is because winsock
>     was not initialized first. Initialization is done with WSAStartup in
>     nice_interfaces_get_WSA_socket()  ( in interfaces.c). But the
>     nice_interfaces_get_WSA_socket()  is inside a #if 0 statement. I
>     just add the following code at the beginning of main:
> 
>         WORD wVersionRequested;
>         WSADATA wsaData;
>         int err;
>         wVersionRequested = MAKEWORD(2, 0);
>         err = WSAStartup(wVersionRequested, &wsaData);
>             if (err != 0) {
>                 printf("\n\nError : Could not start the winsocket
>     engine\n\n");
>          }
> 
>     Maybe this info could be helpful to somebody
> 
>     The hole project (without this fix) is uploaded here:
>     https://drive.google.com/file/d/0B77rRvkLQgXuLTQ2SjR2bnI5WDg/edit?usp=sharing
> 
>     Andrei
> 
> 
>     _______________________________________________
>     nice mailing list
>     nice at lists.freedesktop.org <mailto:nice at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/nice
> 
> 
> 
> 
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
> 

-- 
Olivier Crête
olivier.crete at collabora.com


More information about the nice mailing list