[Spice-devel] porting the virt-viewer onto Android
i iordanov
iiordanov at gmail.com
Thu Jul 25 12:21:05 PDT 2013
Hello!
I've cc'd Jojo with whom we discussed at length building aSPICE and
succeeded in the end to set up a build environment on his machine. Jojo,
please chime in if I forget something.
1) One needs to build a set of libraries which Jojo and I were able to
build, but so far haven't found the time to put together build
instructions. Jojo, will you be able to do so? It would be of great help at
this time, and it's fresher in your mind.
2) Yes, the build instructions for the native code are simply ndk-build, as
Jojo (cc'd) can attest.
3) However there are currently *TWO* places where a boolean "isSpice* must
be set manually to true. This will be fixed in a future release to be one
place. One is in VncCanvas, and the other in CompactBitmapData. This
variable is ordinarily set to true if the package name is aSPICE, however,
if memory serves me right setting the package name to aSPICE (without
moving a bunch of directories around and also run running sed liberally on
the code) may break sqlitegen, a package which sets up all the settings
database-related files. Sqlitegen is left over from android-vnc-viewer.
4) Finally, since the JNI calls in the project as it appears in github (as
bVNC) will originate from com.iiordanov.bVNC and not com.iiordanov.aSPICE,
there is a sed command I sent to Jojo which can be used to automatically
fix the native code for use in bVNC. I really should think about how to get
rid of this requirement. The command follows:
cd bVNC/eclipse_projects/bVNC/jni/src/android
sed -i 's/\(com.iiordanov.\)aSPICE/\1bVNC/' *
Jojo, was there anything else that needed to be done? Can you provide build
instructions for the library dependencies?
Thanks!
iordan
On Wed, Jul 24, 2013 at 10:16 AM, Marc-André Lureau <mlureau at redhat.com>wrote:
> Hi
>
> ----- Mensaje original -----
> > Dear Miss/Mr,
> > I am an developer addicted to appliction development on Linux platform.
> And I
> > have been enthusiastic over KVM technoly for while and experienced the
> spice
> > client software virt-viewer. Now I'd like to port the virt-viewer onto
> > Android platform. I find it difficult to implement it for me
> ,however,since
> > I am in fact lacking experience on across-platformed transplant.
> > Additionally I 've not grasped of the vir-viewer thoroughly. I would
> > appreciate you if you can give me some suggestions.
>
> Iordan implemented aSpice, it is part of bVNC
>
> https://github.com/iiordanov/bVNC
>
> There is no build instructions, but ndk-build should work. However, you
> need a bunch of libraries that are difficult to find or cross-compile
> yourself. It would be nice to automate this somehow with a cross-build
> system like cerbero.
>
--
The conscious mind has only one thread of execution.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130725/905d054f/attachment.html>
More information about the Spice-devel
mailing list