<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Olivier, <br><br>Yes, just need to delete the system package.<br>Thank you!<br><br>Tom<br><br>> From: olivier.crete@collabora.com<br>> Date: Thu, 1 Oct 2015 01:11:20 -0400<br>> To: chentom60@hotmail.com; nice@lists.freedesktop.org<br>> Subject: Re: [libnice] what affects the calculation of the number of candidates<br>> <br>> Hello, <br>> <br>> The first one uses the library you just compiled. The second uses the version installed on the system, which excludes IPv6 candidates and possibly doesn't support ice-tcp. <br>> <br>> Olivier <br>> <br>> On October 1, 2015 12:43:52 AM EDT, tom chen <chentom60@hotmail.com> wrote:<br>> >Hello,<br>> ><br>> >The way of compilation significantly affects the number of gathered<br>> >candidates. The first example is using the auto generated Makefile to<br>> >compile libnice-0.1.13/examples/simple-example.c and generates 18<br>> >candidates on my PC, but the 2nd method, as mentioned in<br>> >simple-example.c, just generates 3 candidates. Any idea what<br>> >compilation flags are also needed as I must use the 2nd method to<br>> >manually compile my applications?<br>> ><br>> >1.       1. Compile using Makefile<br>> ><br>> >tao@ubuntu:~/workspace/libnice-0.1.13/examples$ make simple-example<br>> ><br>> >  CC       simple-example.o<br>> ><br>> >  CCLD     simple-example<br>> ><br>> >tao@ubuntu:~/workspace/libnice-0.1.13/examples$ ./simple-example 0<br>> >stunserver.org<br>> ><br>> >Copy this line to remote client:<br>> ><br>> >aYjQ jmn6uO+LVvafYYAiIbZhX5<br>> >1,2013266431,fe80::20c:29ff:fe34:d0c8,40281,host<br>> >2,1019216383,fe80::20c:29ff:fe34:d0c8,0,host<br>> >3,1015022079,fe80::20c:29ff:fe34:d0c8,36577,host<br>> >4,2013266431,fe80::20c:29ff:fe34:d0be,56140,host<br>> >5,1019216383,fe80::20c:29ff:fe34:d0be,0,host<br>> >6,1015022079,fe80::20c:29ff:fe34:d0be,37034,host<br>> >7,2013266431,fe80::20c:29ff:fe34:d0b4,49289,host<br>> >8,1019216383,fe80::20c:29ff:fe34:d0b4,0,host<br>> >9,1015022079,fe80::20c:29ff:fe34:d0b4,43111,host<br>> >10,2013266431,192.168.0.60,57450,host 11,1019216383,192.168.0.60,0,host<br>> >12,1015022079,192.168.0.60,49752,host<br>> >13,2013266431,172.16.1.129,48506,host 14,1019216383,172.16.1.129,0,host<br>> >15,1015022079,172.16.1.129,59754,host<br>> >16,2013266431,10.113.54.60,43208,host 17,1019216383,10.113.54.60,0,host<br>> >18,1015022079,10.113.54.60,50996,host<br>> ><br>> >Enter remote data (single line, no wrapping):<br>> ><br>> >2.       2. Compile manually using gcc<br>> ><br>> >tao@ubuntu:~/workspace/libnice-0.1.13/examples$ gcc -o simple-example<br>> >simple-example.c `pkg-config --cflags --libs nice`<br>> ><br>> >tao@ubuntu:~/workspace/libnice-0.1.13/examples$ ./simple-example 0<br>> >stunserver.org<br>> ><br>> >Copy this line to remote client:<br>> ><br>> >HWQy FNchHCZ8oJYNcorQg8M0pU 1,2013266431,192.168.0.60,33215,host<br>> >2,2013266431,172.16.1.129,56681,host<br>> >3,2013266431,10.113.54.60,56804,host<br>> ><br>> >Enter remote data (single line, no wrapping):<br>> ><br>> ><br>> ><br>> ><br>> >------------------------------------------------------------------------<br>> ><br>> >_______________________________________________<br>> >nice mailing list<br>> >nice@lists.freedesktop.org<br>> >http://lists.freedesktop.org/mailman/listinfo/nice<br>> <br>> -- <br>> Olivier Crête<br>> olivier.crete@collabora.com<br>> _______________________________________________<br>> nice mailing list<br>> nice@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/nice<br>                                         </div></body>
</html>