I want one of my libraries, which I call qfff, to use the pfff library.
Here is what I did :
- In my main directory, create a
qfffsubdirectory. - In that subdirectory, add a
dunefile with content as follows :
(library
(name qfff_lib)
(libraries pfff))
-
In that
qfffsubirectory, add a one-line file namedthe_end.ml
and whose content islet example = Php_parser.parse_program -
Still in that same
qfffsubirectory, do agit clone https://github.com/returntocorp/pfff.git --depth=1followed by./configure(those steps are indicated in the pfff Wiki) -
returing to my main directory, and doing
dune build qfff(because at this point I think dune has all the data it needs to understand hat qfff depends on pfff, and I expect it to build pfff automatically as a needed ingredient for qfff).
This produces the error message :
File “qfff/dune”, line 3, characters 12-16:
3 | (libraries pfff))
^^^^
Error: Library “pfff” not found.
→ required by library “qfff_lib” in _build/default/qfff
→ required by _build/default/qfff/.qfff_lib.objs/byte/qfff_lib__The_end.cmo
→ required by _build/default/qfff/qfff_lib.cma
→ required by alias qfff/all
→ required by alias qfff/default
What did I do wrong ?