<div>Hello Youness, Joyti.</div><div><br></div><div>I'm using libnice for my Google Summer of Code project (<a href="http://www.google-melange.com/gsoc/project/google/gsoc2012/davidczech/5001">a pysoy client for Android</a>), which uses libnice to establish a UDP connection to the pysoy server.</div>

<div>I've had success cross-compiling the latest libnice (from the git repository) to the Android platform, but instead of using a Android.mk file, I have used the NDK standalone toolchain.</div><div>I have found that using this standalone toolchain generally works better, but whatever works for you. Of course, you will need to have libnice's dependencies compiled first, glib etc.</div>

<div><br></div><div>Anyways, heres my simple libnice test running on my Android device (with the IP addresses scrubbed, just in case):</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">

$ /data/local/a.out<br>START nice_agent_gather_candidates<br>cb_new_candidate.<br>CB state change<br>cb_component_state_changed: 1: NICE_COMPONENT_STATE_GATHERING<br>cb_new_candidate.<br>CB gather done<br>CANDIDATE: 1 1 2013266431 UDP  IPADDRESSHIDDEN 41027 host<br>

CANDIDATE: 2 1 1677721855 UDP IPADDRESSHIDDEN 1027 srv</blockquote><div><br></div><div>Documentation exists for the acquiring and using standalone toolchain in the NDK docs. The only option I passed to ./configure was --enabled-shared=no </div>

<div>(aside from --host=arm-linux-androideabi and my prefix). The reason for disabling building shared libraries is because it doesn't really make sense on the Android platform (dynamic libraries are bundled into the Android packages) and because of an issue with versioned sonames (which most glib libraries like libnice use) and the android packager (see <a href="http://kapace-gsoc.blogspot.ca/2012/07/android-ndk.html">http://kapace-gsoc.blogspot.ca/2012/07/android-ndk.html</a> for more info on that).</div>

<div><br></div><div>Let me know if you need some more help.</div><div><br></div><div>Also, thank you Youness for working on libnice, it is a pretty cool library.</div><div><br></div><div>Thanks,</div><div>David</div>