Incr_dom installing dependencies?

Hey all, I’m currently a sophomore in college and am completely new to OCaml trying to run the helloworld example with incr_dom from here.

I’m currently in the helloworld working directory, am running ‘dune build’ and am met with this error:

File "src/dune", line 9, characters 3-33:
9 |    bonsai_concrete.ui_time_source ppx_css.inline_css))

 Library "bonsai_concrete.ui_time_source" not found.
-> required by library "incr_dom" in _build/default/src
-> required by
   _build/default/example/hello_world/lib/.hello_world_example_lib.objs/native/hello_world_example_lib__App.cmx
-> required by
   _build/default/example/hello_world/lib/hello_world_example_lib.a
-> required by alias example/hello_world/lib/all
-> required by alias example/hello_world/default

I’ve tried
opam install bonsai_concrete and have been met with
[ERROR] No package named bonsai_concrete found.

Any help would be appreciated, thanks!

I would suggest copying the example out from the source tree of Incr_dom into your own, otherwise it tries to build this src/dune, which most likely isn’t what you want.

1 Like