dbuenzli / vg

Declarative 2D vector graphics for OCaml
http://erratique.ch/software/vg
ISC License
88 stars 12 forks source link

Fails to build on 4.02.0 #13

Closed andrewray closed 7 years ago

andrewray commented 7 years ago
# ocamlfind ocamldep -package js_of_ocaml.ppx -package gg -package bytes -package uchar -package result -modules src/vgr_htmlc.ml > src/vgr_htmlc.ml.depends
# + ocamlfind ocamldep -package js_of_ocaml.ppx -package gg -package bytes -package uchar -package result -modules src/vgr_htmlc.ml > src/vgr_htmlc.ml.depends
# ocamlfind: Package `js_of_ocaml.ppx' not found
dbuenzli commented 7 years ago

This is likely a missing js_of_ocaml constraint. Could you please try something like

opam install js_of_ocaml.2.6 vg
andrewray commented 7 years ago

That fails in the same way.

https://github.com/ocsigen/js_of_ocaml/blob/b92d73489c05d8616d4defb9ee0d421d2da01c52/Makefile.conf#L62

This suggests that the ppx is not available for ocaml < 4.02.2.

dbuenzli commented 7 years ago

Thanks for the analysis. I constrained on master and submitted a PR to the OPAM repository.