Skip to content
ytomino edited this page Oct 27, 2020 · 5 revisions

Cross compile

First, copy the sysroot from the target SDK, and setup binutils and gcc for cross compiling. (See https://github.com/ytomino/drake/wiki/Setup-cross-compilers.)

Second, setup (flexdll and) ocaml for cross compiling. (See https://github.com/ocaml/ocaml/blob/trunk/INSTALL.adoc for 32bit, or https://github.com/ocaml-cross/opam-cross-windows/blob/master/README.md for Windows.)

Then, specify OCAMLC to be used.

$ make OCAMLC=$HOME/.opam/4.08.0+32bit/windows-sysroot/bin/ocamlc

Clone this wiki locally