To be honest, I’m not too fond of ocamlbuild. It seems to me that a lot of magic is going on in the background, so when stuff is not working its hard to figure out the reason. In this case ocamlbuild complains about a missing Ocb_stubblr module even it is installed.
$ ocamlfind list | grep ocb
ocb-stubblr (version: 0.1.1) ocb-stubblr.topkg (version: 0.1.1)
The thing I’d like to build is the tests of the ‘tsdl’ package (https://github.com/dbuenzli/tsdl)
$ ocamlbuild -use-ocamlfind tests.otarget
- ocamlfind ocamlopt unix.cmxa -I /Users/bkb/.opam/4.02.3/lib/ocaml/ocamlbuild /Users/bkb/.opam/4.02.3/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild .ml /Users/bkb/.opam/4.02.3/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
File “myocamlbuild .ml”, line 2, characters 5-16:
Error: Unbound module Ocb_stubblr
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.