[Spice-devel] Success in porting snappy of spicec-gtk onto Android

Shuxiang Lim shohyanglim at gmail.com
Wed Mar 23 03:03:50 PDT 2011


Hi,everyone!
   The problems of full glib porting I mentioned in the previous mails have
been solved, you may reference this:
http://www.listware.net/201103/gtk-devel-list/55247-full-glib-porting-onto-android.html
   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:
*
#file snappy libspicec.so
snappy:       ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
linked (uses shared libs), not stripped
libspicec.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV),
dynamically linked, not stripped*
*root at gnollwood:/angmar/pashwa# l*s -l
total 6.9M
-rw-r--r--  1 root root  1.4M 2011-03-23 14:57 libcrypto.so.1.0.0
-rw-r--r--  1 root root  1.4M 2011-03-23 14:57 libgio-2.0.so.0
-rw-r--r--  1 root root  1.2M 2011-03-23 14:57 libglib-2.0.so.0
-rw-r--r--  1 root root   12K 2011-03-23 14:57 libgmodule-2.0.so.0
-rw-r--r--  1 root root  312K 2011-03-23 14:57 libgobject-2.0.so.0
-rw-r--r--  1 root root   18K 2011-03-23 14:57 libgthread-2.0.so.0
-rw-r--r--  1 root root 1010K 2011-03-23 14:57 libiconv.so.2
-rw-r--r--  1 root root   41K 2011-03-23 14:57 libintl.so.8
-rw-r--r--  1 root root  117K 2011-03-23 14:57 libjpeg.so.62
-rw-r--r--  1 root root  457K 2011-03-23 14:57 libpixman-1.so.0
-rw-r--r--  1 root root  810K 2011-03-23 14:57 libspicec.so
-rw-r--r--  1 root root  275K 2011-03-23 14:57 libssl.so.1.0.0

Run on the Android device:
*##cd /data/local/*
*##LD_LIBRARY_PATH=/data/local/lib:/system/lib ./snappy -h 192.168.1.31 -p
5902 -o ahoo.ppm*
...
(snappy:2135): GSpice-DEBUG: spice-channel.c:127 inputs-3:0:
spice_channel_constructed
(snappy:2135): GSpice-DEBUG: spice-channel.c:1414 Open coroutine starting
0xc2268
(snappy:2135): GSpice-DEBUG: spice-channel.c:1271 Started background
coroutine 0xc2294
(snappy:2135): GSpice-DEBUG: spice-session.c:900 Resolving host 192.168.1.31
5902
(snappy:2135): GSpice-DEBUG: spice-session.c:864 Socket pending
(snappy:2135): GSpice-DEBUG: spice-session.c:879 Finally connected
snappy--gtype.c:g_type_class_unref:2950
...
snappy:channel-display.c:spice_display_handle_msg: 1220
snappy:channel-display.c:emit_invalidate: 614
wrote screen shot to ahoo.ppm
*## ps
....
*pp_32    1624  1169  122504 14256 ffffffff afe0d984 S
com.motorola.apncontrol
app_40    1632  1169  126048 13952 ffffffff afe0d984 S com.android.music
app_65    1660  1169  123920 14836 ffffffff afe0d984 S com.google.android.gm
root      2135  1712  42536  5556  ffffffff afe0d06c S ./snappy
root      2138  1148  708    328   c006cb7c afe0d62c S /system/bin/sh
root      2139  2138  860    344   00000000 afe0c75c R ps
*## cat /proc/2135/maps*
00008000-0009e000 r-xp 00000000 1f:08 1042       /data/local/snappy
...
80000000-80064000 r-xp 00000000 1f:08 1344
/data/local/lib/libpixman-1.so.0
80100000-80135000 r-xp 00000000 1f:08 1203
/data/local/lib/libssl.so.1.0.0
80200000-802ef000 r-xp 00000000 1f:08 962
/data/local/lib/libcrypto.so.1.0.0
。。。。
80a00000-80a03000 r-xp 00000000 1f:08 1210
/data/local/lib/libgthread-2.0.so.0
80b02000-80b03000 rw-p 00001000 1f:08 1446
/data/local/lib/libgmodule-2.0.so.0
b000f000-b0010000 rw-p 0000f000 1f:06 583        /system/bin/linker
...
*#file ahoo.ppm*
ahoo.ppm: Netpbm PPM "rawbits" image data
*#l ahoo.ppm *
-rw-r--r-- 1 root root 2.3M 2011-03-23 17:24 ahoo.ppm

 That's it! Good luck to all!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110323/b052cc54/attachment.html>


More information about the Spice-devel mailing list