Giter Club home page Giter Club logo

Comments (4)

alexblanche avatar alexblanche commented on August 21, 2024

I have a similar issue with the Graphics package.
Ocamlfind successfully finds the Graphics module when not using the windows toolchain, but when I used ocamlfind -toolchain windows ocamlopt -linkpkg -package graphics ..., I got an "Unbound module Graphics" error.

So I copied the content of "/home/alex/.opam/4.14.1/lib/graphics/" to "/home/alex/.opam/4.14.1/windows-sysroot/lib/graphics/" and added "env" "OCAMLFIND_TOOLCHAIN=windows" to my opam file, and I now have the same message.

ocamlfind -toolchain windows ocamlopt -linkpkg -package graphics test_graphics_aux.ml test_graphics.ml -o test_graphics.exe
File "test_graphics.ml", line 1:
Error: Files /home/alex/.opam/4.14.1/windows-sysroot/lib/graphics/graphics.cmxa
       and /home/alex/.opam/4.14.1/windows-sysroot/lib/ocaml/stdlib.cmxa
       make inconsistent assumptions over implementation Stdlib__Sys

Anyway, I am stuck.

from opam-cross-windows.

toots avatar toots commented on August 21, 2024

@alexblanche you can't copy compiled units from the normal compiler to the cross-compiler, this won't work!

Just added a proper graphics-windows package!

from opam-cross-windows.

alexblanche avatar alexblanche commented on August 21, 2024

@toots Thanks a lot!

from opam-cross-windows.

alexblanche avatar alexblanche commented on August 21, 2024

@toots Thanks a lot!

from opam-cross-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.