You can make a chroot on your desktop machine where all the binaries are 
arm and emulated on your desktop by qemu.  Once setup, it will act like 
a normal gentoo system in a chroot except slower.  Install moses inside 
this system, compiling with --static.

You can copy either the entire chroot or just the static moses 
executable to your phone where the binaries will run natively.

It's not clear to me how you're planning to call Moses.  stdin/stdout, 
mosesserver, a C++ library wrapper, some JNI with a .so file?

If you can compile Moses with the android NDK, that's fine, but I don't 
know how to do it.  However, you should follow 
http://stackoverflow.com/questions/4663291/android-ndk-r5-and-support-of-c-exception
 
to enable exceptions.

Kenneth

On 11/28/12 08:36, myounggun jang wrote:
> Thank you for your help.
>   I don't know about qemu, so I read some article about qemu.
> do you mean that I need to install gentoo system in android, then
> install moses using emulated gentoo system?
> I have to make a library for using moses decoder function. therfore I'm
> tring to build mosese decoder by android NDK.
> MG Jang
>
> On Tue, Nov 27, 2012 at 11:22 PM, Kenneth Heafield <[email protected]
> <mailto:[email protected]>> wrote:
>
>     A pedantic point: they can be arranged any way you like but must be
>     accessed in multiples of 32 bits.  The KenLM trie data structure does
>     not follow this alignment.  However, NICT added code to KenLM for ARM
>     that accesses the data in an aligned way by rounding up/down and doing
>     multiple accesses.
>
>     Kenneth
>
>     On 11/27/12 11:33, Hieu Hoang wrote:
>      > 2. To save memory and have quick loading time, the language model and
>      > phrase-table has to be binarized. The binary phrase-table isn't a
>      > problem. However, ARM chips require that datastructures be in
>     multiple
>      > of 32-bits ('aligned'). This isn't the case with some
>     datastructure in
>      > the irstlm (maybe also kenlm).
>     _______________________________________________
>     Moses-support mailing list
>     [email protected] <mailto:[email protected]>
>     http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to