Hi,

        First thing you'll want is a moses executable compiled for ARM.  There 
are several guides on cross compiling; you'll want one based on gcc, 
clang, or at least something that supports exceptions.  My favorite 
method was just building an entire gentoo system in a chroot with qemu, 
but that may be overkill:

http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5

However, the awesome part about that is you can rsync it to an android 
device and have a functional linux system in a chroot on your phone. 
And even ssh into it.  Be sure to choose your compiler flags carefully 
for the chips in question.  This is what Nick Ruiz referenced.

        The next bit of fun is finding unaligned accesses where a pointer is 
dereferenced but not a multiple of 4.  qemu will happily lie to you and 
do unaligned accesses.  But some (most?) real ARM chips will segfault. 
So you'll need to be running on-device or somehow tell qemu to not do 
unaligned accesses.  In theory, there shouldn't be any unaligned 
accesses in KenLM anymore.  No idea about the rest of the code.

        Once you've gotten a working executable (probably compiled with 
--static), the problem reduces to 1) producing a Moses library 
compatible with the non-chroot android environment and 2) the previously 
discussed problem of calling Moses as a library (paging Wilker Aziz).

Kenneth

On 11/27/12 05:47, myounggun jang wrote:
> I'm trying to port the moses decoder for android
> I'll make tables in linux system. and then I just use it in android
> system. I just need to port moses decoder.
> I'm trying to find article about moses android porting. however I didn't
> find useful article.
> I found data for android
> http://www.mail-archive.com/[email protected]/msg06392.html
> however there are missing parts.
> is there any aticle or some ported source for android and ios?
> Thanks in advance.
> MG Jang
>
>
> _______________________________________________
> Moses-support mailing list
> [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