atomvm / AtomVM

Tiny Erlang VM
https://www.atomvm.net
Apache License 2.0
1.5k stars 107 forks source link

Support on Android/Termux #33

Open Serkan-devel opened 5 years ago

Serkan-devel commented 5 years ago

Termux is a terminal app on android which recreates a linux environment similar to Debian.

Howerver, there is an issue with building it on android as explained on this post:

AtomVM requires a normal zlib (not /system/lib/libz.so). It mentioned as optional though, but build fails without it.

bettio commented 5 years ago

zlib is required to load .beam files, literals are compressed using deflate (the standard compression algorithm implemented in zlib). Without an inflate function only .avm (and .beam without literals) can be loaded (this is the behavior on ESP32). Hence if you care about loading unmodified .beam files you need something that implements the inflate algorithm. However without zlib everything should build without errors, so there might be some kind of bug in our buildsystem. Do you have any build log or any relevant error message?