There is a typo opam ocaml-android replace it with opam install ocaml-android.
The .native and .byte compilation commands seem to be swapped (ocamlc should be used for .byte).
Please add a note about approximate disk space requirements, for example the ~/.opam/4.02.1+32bit directory was 3.4G for me (which is completely fine, but would be nice to know about it).
Please document how to change ANDROID_LEVEL: it defaults to 19, but I wanted to use level 9. I have manually edited the opam file and removed state.cache and did an opam install ocaml-android32, but there is probably a better way, could the opam file accept an env var for example?
There is a typo
opam ocaml-android
replace it withopam install ocaml-android
.The .native and .byte compilation commands seem to be swapped (ocamlc should be used for .byte).
Please add a note about approximate disk space requirements, for example the
~/.opam/4.02.1+32bit
directory was 3.4G for me (which is completely fine, but would be nice to know about it).Please document how to change ANDROID_LEVEL: it defaults to 19, but I wanted to use level 9. I have manually edited the opam file and removed state.cache and did an
opam install ocaml-android32
, but there is probably a better way, could the opam file accept an env var for example?