I tried to compile a small example using dune and weirdly, adding (libraries ocamlsdl2) to my stanza produces the error:
Error: Library "ocamlsdl2" not found.
Hint: try:
dune external-lib-deps --missing a.exe
Eventhough it is installed, as shown from the command:
$ opam list | grep ocamlsdl
ocamlsdl 0.9.1 Interface between OCaml and SDL
ocamlsdl2 0.04 Interface to the SDL2 library
However, putting (libraries sdl2) in my dune file works fine. Is this a normal documented behaviour? Is this a bug of dune? Or a bug of OCamlSDL2?
I tried to compile a small example using dune and weirdly, adding
(libraries ocamlsdl2)to my stanza produces the error:Error: Library "ocamlsdl2" not found. Hint: try: dune external-lib-deps --missing a.exeEventhough it is installed, as shown from the command:
$ opam list | grep ocamlsdl ocamlsdl 0.9.1 Interface between OCaml and SDL ocamlsdl2 0.04 Interface to the SDL2 libraryHowever, putting
(libraries sdl2)in my dune file works fine. Is this a normal documented behaviour? Is this a bug of dune? Or a bug of OCamlSDL2?