<div dir="ltr"><div class="" style="font-size:medium"><div class=""><div id=":1j8" class="" style="font-size:12.8px"><div id=":1j7" class="" style="overflow:hidden"><div dir="ltr">Hello,<div><br></div><div>I would be glad to help!</div><div><br></div><div>I compiled using MSVC (Visual C++ 2010 Express).</div><div><br></div><div>Here is what I get when debug messages are enabled:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Using stun server '[<a href="http://stun.l.google.com/" target="_blank">stun.l.google.com</a>]:19302'</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Created NiceStream (1 created, 0 destroyed)</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Created NiceComponent (1 created, 0 destroyed)</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Agent 00AA9010 : allocating stream id 1 (00AB31C0)</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Agent 00AA9010 : In ICE-FULL mode, starting candidate gathering.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Agent 00AA9010 : libnice compiled without UPnP support</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Queried addresses with status 0.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘Connexion au r\xe9seau local’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting interface due to being down or read-only.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘Connexion au r\xe9seau local* 4’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting interface due to being down or read-only.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘Ethernet’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Ethernet’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Ethernet’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘Ethernet 2’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Ethernet 2’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Ethernet 2’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘Connexion r\xe9seau sans fil’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Connexion r\xe9seau sans fil’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Connexion r\xe9seau sans fil’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘Loopback Pseudo-Interface 1’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting loopback interface ‘Loopback Pseudo-Interface 1’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘isatap.{C66F6F69-5A07-481B-88C6-963A69AC1202}’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting interface due to being down or read-only.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘isatap.{F44E089F-E5CC-43A2-BD76-A07FEB4FBD13}’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting interface due to being down or read-only.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘isatap.{D581D457-EF0D-443D-A62C-2867E5225AFE}’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting interface due to being down or read-only.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘isatap.{4F7EEF12-75C9-4DE7-A263-48898503A707}’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting interface due to being down or read-only.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘isatap.{59A0B365-4F00-45E7-8B96-3DEF08201D36}’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Rejecting interface due to being down or read-only.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Agent 00AA9010: Candidate gathering FINISHED, no scheduled items.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: SIGNAL candidate gathering done</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: waiting for candidate-gathering-done signal...</blockquote></div><div><br></div><div><br></div><div>This interface is my Wi-Fi connection to Internet:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Interface ‘Connexion r\xe9seau sans fil’:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Connexion r\xe9seau sans fil’.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">** (test.exe:9672): DEBUG: Failed to convert address to string for interface ‘Connexion r\xe9seau sans fil’.</blockquote><div><br></div><div>Does this debug message help you? </div></div><div><br></div><div>Thank you very much for your help,</div><div class="gmail_extra"><div>Adrien</div></div></div></div></div></div></div><div class="gmail_extra">
<br><div class="gmail_quote">On Fri, Dec 4, 2015 at 1:01 AM, Philip Withnall <span dir="ltr"><<a href="mailto:philip@tecnocode.co.uk" target="_blank">philip@tecnocode.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Wed, 2015-12-02 at 14:53 +0100, Adrien Carbonne wrote:<br>
> Hello,<br>
><br>
> I have compiled libnice on Windows but I cannot get *any* example to<br>
> work.<br>
<br>
</span>How did you compile it? MinGW, or MSVC?<br>
<span class=""><br>
> I have tried to debug it, and I found out that one issue is that<br>
> nice_interfaces_get_local_ips() returns nothing on Windows.<br>
<br>
</span>If you enable all debugging output (G_MESSAGES_DEBUG=all NICE_DEBUG=all<br>
in the environment), do you get debug messages like “Error retrieving<br>
local addresses (error code XX).”?<br>
<br>
For debugging to work, you must also have configured libnice<br>
//without// NDEBUG defined. The normal libnice.vcproj file //does//<br>
define NDEBUG, so make sure you unconfigure that.<br>
<span class=""><br>
> Here is a sample program : it should display some candidates but gets<br>
> no candidates (and no local addresses for that matter).<br>
><br>
><br>
> int main() {<br>
>       context = g_main_context_new ();<br>
>       loop = g_main_loop_new ( context , FALSE );<br>
>       NiceAgent *agent = nice_agent_new ( context ,<br>
> NICE_COMPATIBILITY_RFC5245 );<br>
><br>
>       g_signal_connect (G_OBJECT (agent), "candidate-gathering-done",<br>
> G_CALLBACK (candidate_gathering_done_cb), NULL);<br>
>       g_signal_connect (G_OBJECT (agent), "component-state-changed",<br>
> G_CALLBACK (component_state_changed_cb), NULL);<br>
>       g_signal_connect (G_OBJECT (agent), "new-candidate-full",<br>
> G_CALLBACK (new_candidate_full_cb), NULL);<br>
><br>
>       guint stream_id = nice_agent_add_stream ( agent , 1);<br>
>       nice_agent_attach_recv ( agent , stream_id , 1 , context ,<br>
> cb_nice_recv , NULL );<br>
>       nice_agent_gather_candidates ( agent , stream_id );<br>
><br>
>       g_main_loop_run ( loop );<br>
> }<br>
><br>
> Is it a Windows-specific issue?<br>
<br>
</span>Most likely, since the code for nice_interfaces_get_local_ips() is<br>
highly platform specific.<br>
<span class=""><br>
> Do I have to stop dreaming about running libnice on Windows? ;)<br>
<br>
</span>Sorry, I don’t have regular access to a Windows machine to test libnice<br>
on. All help is welcome!<br>
<span class="HOEnZb"><font color="#888888"><br>
Philip</font></span><br>_______________________________________________<br>
nice mailing list<br>
<a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br></div></div>