<b>Hi,</b><div><b><br></b></div><div><b>Thanks for such a quick response and helpful replies.</b></div><div><b> </b></div><div><b>@David, I am trying to build Glib using </b><b>NDK standalone toolchain approach as mentioned by you and I am getting these errors:</b></div>
<div><br></div><div><div>$ ./configure --host=arm-linux-androideabi</div><div>configure: WARNING: if you wanted to set the --build type, don't use --host.</div><div>    If a cross compiler is detected then cross compile mode will be used</div>
<div>checking for a BSD-compatible install... /usr/bin/install -c</div><div>checking whether build environment is sane... yes</div><div>checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip</div><div>checking for a thread-safe mkdir -p... /usr/bin/mkdir -p</div>
<div>checking for gawk... gawk</div><div>checking whether make sets $(MAKE)... yes</div><div>checking whether to enable maintainer-specific portions of Makefiles... no</div><div>checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc</div>
<div>checking whether the C compiler works... no</div><div>configure: error: in `/cygdrive/c/LibNice/Android/glib-master/glib-master':</div><div>configure: error: C compiler cannot create executables</div><div>See `config.log' for more details</div>
</div><div><br></div><div><b>I am not able to use this flag  --enabled-shared=no as it says its not found.</b></div><div><b>If you had also faced such problems then please let me know the solution to this.</b></div><div><b><br>
</b></div><div><b>Thanks & Regards</b></div><div><b>Jyoti</b></div><div><br><div class="gmail_quote">On Tue, Aug 7, 2012 at 7:37 PM, Youness Alaoui <span dir="ltr"><<a href="mailto:youness.alaoui@collabora.co.uk" target="_blank">youness.alaoui@collabora.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey David, thanks for the mail, I hope this is helpful for Joyti!<br>
And I'm glad you're finding libnice useful :)<br>
<div class="im"><br>
On 08/06/2012 10:20 PM, David Czech wrote:<br>
> Hello Youness, Joyti.<br>
><br>
> I'm using libnice for my Google Summer of Code project (a pysoy client for<br>
> Android<br>
</div>> <<a href="http://www.google-melange.com/gsoc/project/google/gsoc2012/davidczech/5001" target="_blank">http://www.google-melange.com/gsoc/project/google/gsoc2012/davidczech/5001</a>>),<br>
<div class="HOEnZb"><div class="h5">> which uses libnice to establish a UDP connection to the pysoy server.<br>
> I've had success cross-compiling the latest libnice (from the git repository) to<br>
> the Android platform, but instead of using a Android.mk file, I have used the<br>
> NDK standalone toolchain.<br>
> I have found that using this standalone toolchain generally works better, but<br>
> whatever works for you. Of course, you will need to have libnice's dependencies<br>
> compiled first, glib etc.<br>
><br>
> Anyways, heres my simple libnice test running on my Android device (with the IP<br>
> addresses scrubbed, just in case):<br>
><br>
>     $ /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<br>
><br>
><br>
> Documentation exists for the acquiring and using standalone toolchain in the NDK<br>
> docs. The only option I passed to ./configure was --enabled-shared=no<br>
> (aside from --host=arm-linux-androideabi and my prefix). The reason for<br>
> disabling building shared libraries is because it doesn't really make sense on<br>
> the Android platform (dynamic libraries are bundled into the Android packages)<br>
> and because of an issue with versioned sonames (which most glib libraries like<br>
> libnice use) and the android packager (see<br>
> <a href="http://kapace-gsoc.blogspot.ca/2012/07/android-ndk.html" target="_blank">http://kapace-gsoc.blogspot.ca/2012/07/android-ndk.html</a> for more info on that).<br>
><br>
> Let me know if you need some more help.<br>
><br>
> Also, thank you Youness for working on libnice, it is a pretty cool library.<br>
><br>
> Thanks,<br>
> David<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br>
<br>
</div></div><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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<br>Jyoti<br>
</div>