I'm trying to build the examples at https://github.com/mirage/mirage-tcpip in the folder "examples".
First I did opam install .
in the root directory to install all dependencies. Then I did dune build
and it build everything in _build
, lots of .a, .cma, .cmx, .cmi, .cmxa
files that I don't know what are for (can somebody explain?).
Anyways, I think the examples have to be built separately, because they have their own dune files. But I tried running dune build
on them and got:
root@66f08fd7c55b:/workspaces/ocaml_env/mirage-tcpip/examples/ping# dune build
Entering directory '/workspaces/ocaml_env/mirage-tcpip'
root@66f08fd7c55b:/workspaces/ocaml_env/mirage-tcpip/examples/ping# ls
dune ping.ml
root@66f08fd7c55b:/workspaces/ocaml_env/mirage-tcpip/examples/ping# cat dune
(executables
(names ping)
(libraries cmdliner logs logs.fmt tcpip.icmpv4-socket))
root@66f08fd7c55b:/workspaces/ocaml_env/mirage-tcpip/examples/ping# dune build ping
Entering directory '/workspaces/ocaml_env/mirage-tcpip'
Error: Don't know how to build ping