Running Erlang on Android via NDK

715 views
Skip to first unread message

Vivek Ayer

unread,
Nov 11, 2012, 12:25:09 AM11/11/12
to erlang-...@googlegroups.com
Hey guys,

Couchbase put up instructions on github oh how to build Erlang for Android using NDK. However, the instructions are not really clear and I'm not really sure they work.

I can write a NDK app that includes a basic C library, so I'm guessing the Erlang VM needs somehow be compiled down to a C library as well? I envision writing erlang code that gets compiled to beams which are then packaged in an apk to be run by the VM. Is this possible?

Thanks,
Vivek

Vivek Ayer

unread,
Nov 11, 2012, 1:02:29 AM11/11/12
to erlang-...@googlegroups.com
I guess the better question is: can you have a apk that contains:

- Java-specific part
- Erlang VM compiled for ARM (basically erts)
- Your erlang app-specific BEAMs (already compiled for ARM elsewhere)
- Some NDK/JNI call to the erts to start the app-specific BEAMs

such that, I wouldn't need to root my phone to start erlang?

Vivek

Dongsheng Wang

unread,
Jan 24, 2013, 9:48:09 AM1/24/13
to erlang-...@googlegroups.com

I think this is totally doable. I am working on something similar, lots of people think it is a dumb idea (bad performance, bad battery life and slow startup time), and, I want to see how bad it is. :)

ds

Dongsheng Wang

unread,
Jan 24, 2013, 9:55:48 AM1/24/13
to erlang-...@googlegroups.com

Andrew Pennebaker

unread,
Jan 24, 2013, 3:39:54 PM1/24/13
to erlang-...@googlegroups.com
Can we include Android support by default in the official Erlang distribution? It would rock to just install Erlang, and run a single command like erlandroid, to setup a simple GUI app.
Reply all
Reply to author
Forward
0 new messages