fxfactorial / ocaml-nodejs

:cool: Write OCaml, run on node.
http://hyegar.com
82 stars 4 forks source link

Cannot make project #2

Open jordwalke opened 8 years ago

jordwalke commented 8 years ago

When making the project, I get an error that js_of_ocaml.ppx cannot be found. Is this a dependency that was not modeled in the OPAM package?

ocaml setup.ml -configure
ocamlfind: Package `js_of_ocaml.ppx' not found
W: Field 'pkg_js_of_ocaml_ppx' is not set: Command ''/Users/me/.opam/system/bin/ocamlfind' query -format %d js_of_ocaml.ppx > '/var/folders/cm/0xltsk395lb1_5lbrn9z0gqr0000gn/T/oasis-3cb5dd.txt'' terminated with error code 2
E: Cannot find findlib package js_of_ocaml.ppx
E: Failure("1 configuration error")
make: *** [setup.data] Error 1
fxfactorial commented 8 years ago

ah damn, yea, i think the _oasis file -> opam file need a constraint in versioning like: I will fix this.

 BuildDepends:
    lwt.unix (>= 2.5.1), lwt.ppx, plist,
    yojson, ANSITerminal, stringext,
    cohttp.lwt
jordwalke commented 8 years ago

(Cool, maybe when you fix that you could also lessen the version requirement for OCaml) :D

fxfactorial commented 8 years ago

in the mean time, probably easier to just do:

opam pin add nodejs . -y in the directory, but yes i need to fix.

fxfactorial commented 8 years ago

Sorry for delay. I think this ought to be fine now, I forced it to use js_of_ocaml 2.7, lwt 2.5.1 >= which ought to cover you and its this way on the opam versioned one.