Hi,everyone!<br> The problems of full glib porting I mentioned in the previous mails have been solved, you may reference this:<br><a href="http://www.listware.net/201103/gtk-devel-list/55247-full-glib-porting-onto-android.html">http://www.listware.net/201103/gtk-devel-list/55247-full-glib-porting-onto-android.html</a><br>
And also after some hacking on spice-gtk(mostly on the SIGBUS/SEGFAULT issues,such as replace write_uint16() with memcpy(),..etc), I've succeeded to compile and run snappy and libspicec.so extracted from current spice-gtk for android:<br>
<i><span style="color: rgb(0, 0, 153);"><br>#file snappy libspicec.so </span><br>snappy: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped<br>
libspicec.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped</i><br><i style="color: rgb(0, 0, 153);">root@gnollwood:/angmar/pashwa# l</i>s -l<br>total <span style="color: rgb(255, 0, 0);">6.9M</span><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><i style="color: rgb(0, 0, 153);">##cd /data/local/</i><br><i style="color: rgb(0, 0, 153);">##LD_LIBRARY_PATH=/data/local/lib:/system/lib ./snappy -h 192.168.1.31 -p 5902 -o ahoo.ppm</i><br>
...<br>(snappy:2135): GSpice-DEBUG: spice-channel.c:127 inputs-3:0: spice_channel_constructed<br>(snappy:2135): GSpice-DEBUG: spice-channel.c:1414 Open coroutine starting 0xc2268<br>(snappy:2135): GSpice-DEBUG: spice-channel.c:1271 Started background coroutine 0xc2294<br>
(snappy:2135): GSpice-DEBUG: spice-session.c:900 <span style="color: rgb(255, 0, 0);">Resolving host 192.168.1.31 5902</span><br><div id=":xc">(snappy:2135): GSpice-DEBUG: spice-session.c:864 Socket pending<br>
(snappy:2135): GSpice-DEBUG: spice-session.c:879<span style="color: rgb(255, 0, 0);"> Finally connected</span><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><span style="color: rgb(255, 0, 0);">wrote screen shot to ahoo.ppm</span><br><i><span style="color: rgb(0, 0, 153);">## ps<br>....<br></span></i>pp_32 1624 1169 122504 14256 ffffffff afe0d984 S 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 <span style="color: rgb(255, 0, 0);">2135</span> 1712 42536 5556 ffffffff afe0d06c S <span style="color: rgb(255, 0, 0);">./snappy</span><br>
root 2138 1148 708 328 c006cb7c afe0d62c S /system/bin/sh<br>root 2139 2138 860 344 00000000 afe0c75c R ps<br><i style="color: rgb(0, 0, 153);">## cat /proc/2135/maps</i><br>00008000-0009e000 r-xp 00000000 1f:08 1042 /data/local/snappy<br>
...<br>80000000-80064000 r-xp 00000000 1f:08 1344 /data/local/lib/libpixman-1.so.0<br>80100000-80135000 r-xp 00000000 1f:08 1203 /data/local/lib/libssl.so.1.0.0<br>80200000-802ef000 r-xp 00000000 1f:08 962 /data/local/lib/libcrypto.so.1.0.0<br>
。。。。<br>80a00000-80a03000 r-xp 00000000 1f:08 1210 /data/local/lib/libgthread-2.0.so.0<br>80b02000-80b03000 rw-p 00001000 1f:08 1446 /data/local/lib/libgmodule-2.0.so.0<br>b000f000-b0010000 rw-p 0000f000 1f:06 583 /system/bin/linker<br>
...<br><i><span style="color: rgb(0, 0, 153);">#file ahoo.ppm</span></i><br>ahoo.ppm: Netpbm PPM "<span style="color: rgb(0, 0, 153);"><span style="color: rgb(255, 0, 0);">rawbits" image</span> </span>data<br><i style="color: rgb(0, 0, 153);">#l ahoo.ppm </i><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><br> <br>