Hi, I noticed a strange behaviour with, for instance, GitHub - sanette/tsdl-image: OCaml SDL2_image bindings to go with Tsdl
$ dune build
ocamlc test/test.bc (exit 2)
(cd _build/default && /home/san/.opam/4.08.1/bin/ocamlc.opt -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o test/test.bc /home/san/.opam/4.08.1/lib/ocaml/unix.cma /home/san/.opam/4.08.1/lib/ocaml/bigarray.cma /home/san/.opam/4.08.1/lib/integers/integers.cma /home/san/.opam/4.08.1/lib/ctypes/ctypes.cma /home/san/.opam/4.08.1/lib/ocaml/threads/threads.cma /home/san/.opam/4.08.1/lib/ctypes/ctypes-foreign-base.cma /home/san/.opam/4.08.1/lib/ctypes/ctypes-foreign-threaded.cma /home/san/.opam/4.08.1/lib/tsdl/tsdl.cma src/tsdl_image.cma test/.test.eobjs/byte/dune__exe__Test.cmo)
/usr/bin/ld : ne peut trouver -lctypes-foreign-threaded_stubs
/usr/bin/ld : ne peut trouver -lctypes-foreign-base_stubs
/usr/bin/ld : ne peut trouver -lctypes_stubs
/usr/bin/ld : ne peut trouver -lintegers_stubs
/usr/bin/ld : ne peut trouver -lintegers_stubs
collect2: error: ld returned 1 exit status
File "_none_", line 1:
Error: Error while building custom runtime system
BUT:
-
dune test
works -
dune build -p tsdl-image
works (and henceopam install .
works.) - If I switch to
(lang dune 1.11)
indune-project
thendune build
works.
So, what should I do to make dune build
work with (lang dune 2.7)
?
9 posts - 2 participants