Closed FrankRuben closed 2 years ago
Hi @FrankRuben , this is a common issue with dune
, we will try to improve the documentation.
Dune can build in both "release mode" or "development mode". What you are doing is a "developer" build, thus it requires the dependencies for all the packages, including gtkspell
etc...
If I understand correctly, neither opam not dune will install the external dependencies for you.
You must install them by hand, so your sudo apt
lines are correct.
Looking at the depexts
field in the opam files gives you hint about what is needed, and I wish it would display them automatically when not installed.
As for what exactly is needed, it depends on the packages you are installing. If you use opam to install lablgtk3, it requires none of camlp4, gtksourceview or gtkspell.
Looking at the
depexts
field in the opam files gives you hint about what is needed, and I wish it would display them automatically when not installed.
We didn't add depexts
to labglgtk3, if we do indeed it would be displayed.
But shouldn't the message appear with conf-gtk3
?
I guess @FrankRuben is building directly, indeed the dependency conf-gtk3
was not installed, and it is a "virtual" dep it is not registered with Dune so it doesn't complain.
Hi,
I tried to build the library and run the examples and got various compile errors.
First set could be solved by installing the following packages using the Linux package manager - in my case for Ubuntu, using
apt
:Second set could be solved by installing the following OCaml packages using
opam
:Then I got the following issues:
What I did is probably just a workaround and it might be necessary to fix the package definition (I know next to nothing about
dune
...):Thanks for your efforts, Frank