tjammer / raylib-ocaml

OCaml bindings for raylib and raygui
https://tjammer.github.io/raylib-ocaml/
MIT License
175 stars 14 forks source link

Unbound value Seq.of_list #16

Closed modlfo closed 3 years ago

modlfo commented 3 years ago

Hi,

which OCaml version are you using to build? I'm using 4.09.1 and I got the following compilation error.

File "src/util/raylib_gen.ml", line 134, characters 7-18:
134 |       (Seq.of_list
             ^^^^^^^^^^^
Error: Unbound value Seq.of_list

By looking at the Seq documentation from the OCaml Stdlib, looks like that function does not exists. I guess that it is taken from other library?

modlfo commented 3 years ago

The library installs correctly with opam. So it's just probably some issue with my environment.

tjammer commented 3 years ago

Are you using dune build to build? In that case, dune builds not only the raylib bindings but also the examples and the util code I use to generate parts of the binding code. In the CI, the main raylib bindings are built with 4.12 and 4.06, so 4.09 should work. The examples and utils code are only built with 4.12 though.

To only build the bindings, you can use dune build -p raylib. I would expect this to work with your version

modlfo commented 3 years ago

I ran dune build.

I ended up using installing it using opam and just compiling the examples manually. The examples work without any issues!