[libnice] Compiling on Windows

Emanuele Bizzarri emabiz76 at gmail.com
Tue Jul 22 00:44:21 PDT 2014


Hi,
try to follow these rules:
1. download libnice 0.1.7 zip
2. download dependencies from 
http://win32builder.gnome.org/gtk+-bundle_3.6.4-20130921_win32.zip
3. add inttypes.h to the project (download from 
https://code.google.com/p/msinttypes/ and put the files in the same dir 
of sln)
3. substitute all inline declaration into __inline
4. add G_IO_ERROR_BROKEN_PIPE to GIOErrorEnum
5. fix the bug inside win32_common.h (ssize_t must be signed long not 
unsigned long)
6. I'm using binaries dll downloaded from gstreamer project (version 
1.3.90 http://gstreamer.freedesktop.org/data/pkg/windows/)

In my tests libnice seems a bit unstable inside gathering-done callback 
when used with an external turn server and a lot of connections (some 
hundred), but I'm not sure, because the behaviour is quite random and is 
not reproducible in debug. Maybe it is related to multithreading.
If I use libnice without turn, it seems totally stable also with a lot 
of connections.
I'm investigating this aspect.

I hope it helps

Regards

Emanuele


On 22/07/2014 05:41, Scott Richmond wrote:
> Hi,
>
> I've recently become interested in using libNice to provide the NAT 
> traversal functionality for our project. Unfortunately I don't see mt 
> obe able to compile it.
>
> Using the README.win32 instructions I can get far enough such that all 
> third party dependencies appear to be resolved however I am getting 
> some 100 errors that I believe are related to a misconfiguration of 
> glib. Take a look at the sample of errors below:
>
> Error1error C2079: 'io_mutex' uses undefined struct 
> '_GMutex'c:\users\scott.richmond\documents\libnice\agent\component.h
> Error46error C2065: 'G_SOURCE_REMOVE' : undeclared 
> identifierc:\users\scott.richmond\documents\libnice\agent\component.c
> Error156error C2065: 'G_IO_ERROR_BROKEN_PIPE' : undeclared 
> identifierc:\users\scott.richmond\documents\libnice\agent\agent.c
> Warning2warning C4005: 'ECONNABORTED' : macro redefinitionc:\program 
> files (x86)\microsoft visual studio 12.0\vc\include\errno.h
> And it goes on...
>
> I don't know enough about the framework to make sense of what's going 
> on here and it does appear that this Win project is pretty out of date 
> - I had to remove 'turn.c' and tcp-turn.c' from the project as the 
> files no longer existed. I added 'udp-turn.c' and 
> 'udp-turn-over-tcp.c' to replace them.
>
>
> _______________________________________________
> 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/20140722/61448442/attachment.html>


More information about the nice mailing list