0zat / webidl

Web IDL parser of OCaml
MIT License
10 stars 4 forks source link

webidl.o not found in opam installation #3

Open tari3x opened 4 years ago

tari3x commented 4 years ago

I wrote an example app using webidl, and I am now trying to compile it using dune. My dune file looks like this:

(executables
 (names main)
 (libraries core async webidl ppx_deriving.runtime)
 (preprocess
  (pps ppx_jane ppx_deriving)))

I then sadly get the error:

gcc: error: /home/avatar/.opam/4.09.0/lib/webidl/webidl.o: No such file or directory

Which is correct, that file isn't there. The directory only contains

./META
./webidl.cmx
./webidl.cmt
./webidl.cmi
./webidl.cmo

Am I trying to use this incorrectly?

tari3x commented 4 years ago

Indeed, once I manually compiled webidl and copied the .o file over to the opam directory, everything worked fine.