[libnice] Libnice 0.1.17 windows build bug
Scott Richmond
s.t.richmond at gmail.com
Sun Aug 24 23:13:07 PDT 2014
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> 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
> http://lists.freedesktop.org/mailman/listinfo/nice
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20140825/fb99602b/attachment.html>
More information about the nice
mailing list