Update INSTALL.md with Android instructions - #1106
Conversation
Add Android build instructions
|
Looks OK, would ACK, will wait a little to see if anyone objects. |
|
Looks good to me, great work @icota, did you try to run it on android as well? I'd be pleasantly surprised if it runs out of the box :-) |
|
Just realised I've jumped the gun with this one. Instructions will be valid after #1102 |
|
@cdecker It works as expected. I had to jump through some hoops since Android expects all binaries to adhere to a lib_something_.so naming convention, but surprisingly after that everything went swimmingly. I run it as a mobile LN wallet, it connects to my full node via RPC thanks to the |
| valgrind asciidoc --run make | ||
| ``` | ||
|
|
||
| To Cross-compile for Android |
There was a problem hiding this comment.
Nit: "To cross-compile for Android" – lower-case "cross-compile" :-)
|
|
||
| Make a standalone toolchain as per https://developer.android.com/ndk/guides/standalone_toolchain.html. For c-lightning you must target an API level of 24 or higher. | ||
|
|
||
| Depending on your toolchain location and target arch source env variables such as: |
There was a problem hiding this comment.
Nit: Is this sentence complete? Feels like it is missing a word. s/source/set/?
There was a problem hiding this comment.
It was definitely missing a comma. I've used the word source since I feel people will be using the source command on a file rather than setting all these manually.
|
Thanks @icota, getting it to work on android is huge news 👍 |
Add Android build instructions