Closed rawburt closed 3 years ago
This is a strange one. The package raylib.c
does not really exist anymore in the current implementation. Instead, I've used a private module for it, which is a relatively new dune feature. I suspect there's a bug in there somewhere, I'll open an issue for this in the dune repo.
Meanwhile, the issue goes away if instead of using dune's private modules, one declares each module by hand. I've pushed these changes to a new branch https://github.com/tjammer/raylib-ocaml/tree/findlib. There, raylib works with ocamlbuild
$ ocamlbuild -pkg raylib example.native
Finished, 4 targets (4 cached) in 00:00:00.
I won't commit these changes to master just yet, because I like how private modules clean up the documentation. Still, the 'findlib' branch should work for you
It seems the issue is solved already in upstream dune, but the fix has not made it into a release yet https://github.com/ocaml/dune/issues/4839.
Thanks @tjammer ! I appreciate the quick turn around and the workaround 😄 I'm unblocked in exploring raylib-ocaml
so feel free to close the issue or do whatever you need to do 👍 Thanks again!
Any pointers on resolving this issue?