Hi,all!<br> I've reported my experimental full-glib-android-porting solution as #645659 in gtk-bugzilla: <br><a href="https://bugzilla.gnome.org/show_bug.cgi?id=645659">https://bugzilla.gnome.org/show_bug.cgi?id=645659</a><br>
You may check it.<br> My hackings on spice-gtk to succeed the snappy/libspicec-glib.so porting onto android are very dirty and direct. If time permitted, I will file and share them soon as possible.<br> Welcome to use, debug and improve!<br>
Best Regards.<br><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 7:25 PM, Alon Levy <span dir="ltr"><<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Mar 23, 2011 at 06:03:50PM +0800, Shuxiang Lim wrote:<br>
</div><div class="im">> Hi,everyone!<br>
> The problems of full glib porting I mentioned in the previous mails have<br>
> been solved, you may reference this:<br>
> <a href="http://www.listware.net/201103/gtk-devel-list/55247-full-glib-porting-onto-android.html" target="_blank">http://www.listware.net/201103/gtk-devel-list/55247-full-glib-porting-onto-android.html</a><br>
<br>
</div>Hi,<br>
<br>
Way cool. I can't really read the patch there very well. Is this something<br>
you plan to try pushing into glib?<br>
<br>
Congratulations,<br>
<br>
Alon<br>
<div class="im"><br>
> And also after some hacking on spice-gtk(mostly on the SIGBUS/SEGFAULT<br>
> issues,such as replace write_uint16() with memcpy(),..etc), I've succeeded<br>
> to compile and run snappy and libspicec.so extracted from current spice-gtk<br>
> for android:<br>
> *<br>
> #file snappy libspicec.so<br>
> snappy: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically<br>
> linked (uses shared libs), not stripped<br>
> libspicec.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV),<br>
> dynamically linked, not stripped*<br>
</div>> *root@gnollwood:/angmar/pashwa# l*s -l<br>
<div><div></div><div class="h5">> total 6.9M<br>
> -rw-r--r-- 1 root root 1.4M 2011-03-23 14:57 libcrypto.so.1.0.0<br>
> -rw-r--r-- 1 root root 1.4M 2011-03-23 14:57 libgio-2.0.so.0<br>
> -rw-r--r-- 1 root root 1.2M 2011-03-23 14:57 libglib-2.0.so.0<br>
> -rw-r--r-- 1 root root 12K 2011-03-23 14:57 libgmodule-2.0.so.0<br>
> -rw-r--r-- 1 root root 312K 2011-03-23 14:57 libgobject-2.0.so.0<br>
> -rw-r--r-- 1 root root 18K 2011-03-23 14:57 libgthread-2.0.so.0<br>
> -rw-r--r-- 1 root root 1010K 2011-03-23 14:57 libiconv.so.2<br>
> -rw-r--r-- 1 root root 41K 2011-03-23 14:57 libintl.so.8<br>
> -rw-r--r-- 1 root root 117K 2011-03-23 14:57 libjpeg.so.62<br>
> -rw-r--r-- 1 root root 457K 2011-03-23 14:57 libpixman-1.so.0<br>
> -rw-r--r-- 1 root root 810K 2011-03-23 14:57 libspicec.so<br>
> -rw-r--r-- 1 root root 275K 2011-03-23 14:57 libssl.so.1.0.0<br>
><br>
> Run on the Android device:<br>
> *##cd /data/local/*<br>
> *##LD_LIBRARY_PATH=/data/local/lib:/system/lib ./snappy -h 192.168.1.31 -p<br>
> 5902 -o ahoo.ppm*<br>
> ...<br>
> (snappy:2135): GSpice-DEBUG: spice-channel.c:127 inputs-3:0:<br>
> spice_channel_constructed<br>
> (snappy:2135): GSpice-DEBUG: spice-channel.c:1414 Open coroutine starting<br>
> 0xc2268<br>
> (snappy:2135): GSpice-DEBUG: spice-channel.c:1271 Started background<br>
> coroutine 0xc2294<br>
> (snappy:2135): GSpice-DEBUG: spice-session.c:900 Resolving host 192.168.1.31<br>
> 5902<br>
> (snappy:2135): GSpice-DEBUG: spice-session.c:864 Socket pending<br>
> (snappy:2135): GSpice-DEBUG: spice-session.c:879 Finally connected<br>
> snappy--gtype.c:g_type_class_unref:2950<br>
> ...<br>
> snappy:channel-display.c:spice_display_handle_msg: 1220<br>
> snappy:channel-display.c:emit_invalidate: 614<br>
> wrote screen shot to ahoo.ppm<br>
> *## ps<br>
> ....<br>
> *pp_32 1624 1169 122504 14256 ffffffff afe0d984 S<br>
> com.motorola.apncontrol<br>
> app_40 1632 1169 126048 13952 ffffffff afe0d984 S com.android.music<br>
> app_65 1660 1169 123920 14836 ffffffff afe0d984 S <a href="http://com.google.android.gm" target="_blank">com.google.android.gm</a><br>
> root 2135 1712 42536 5556 ffffffff afe0d06c S ./snappy<br>
> root 2138 1148 708 328 c006cb7c afe0d62c S /system/bin/sh<br>
> root 2139 2138 860 344 00000000 afe0c75c R ps<br>
> *## cat /proc/2135/maps*<br>
> 00008000-0009e000 r-xp 00000000 1f:08 1042 /data/local/snappy<br>
> ...<br>
> 80000000-80064000 r-xp 00000000 1f:08 1344<br>
> /data/local/lib/libpixman-1.so.0<br>
> 80100000-80135000 r-xp 00000000 1f:08 1203<br>
> /data/local/lib/libssl.so.1.0.0<br>
> 80200000-802ef000 r-xp 00000000 1f:08 962<br>
> /data/local/lib/libcrypto.so.1.0.0<br>
> 。。。。<br>
> 80a00000-80a03000 r-xp 00000000 1f:08 1210<br>
> /data/local/lib/libgthread-2.0.so.0<br>
> 80b02000-80b03000 rw-p 00001000 1f:08 1446<br>
> /data/local/lib/libgmodule-2.0.so.0<br>
> b000f000-b0010000 rw-p 0000f000 1f:06 583 /system/bin/linker<br>
> ...<br>
> *#file ahoo.ppm*<br>
> ahoo.ppm: Netpbm PPM "rawbits" image data<br>
> *#l ahoo.ppm *<br>
> -rw-r--r-- 1 root root 2.3M 2011-03-23 17:24 ahoo.ppm<br>
><br>
> That's it! Good luck to all!<br>
<br>
</div></div>> _______________________________________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br>
</blockquote></div><br>