Open Randle-Lanre opened 9 months ago
cc @jonahbeckford
pkg-config
is a Unix tool to locate C libraries that is deeply incompatible with Windows. More generally the way that C is used today by OCaml packages is very Unix-specific.
The next version of DkML will "succeed" in installing pkg-config
, but even that is an illusion because many C-based packages will fail. I'd ask that this issue be translated into a "Does Dream support Windows? If so, can it be tested as part of the CI?" issue on the https://github.com/aantron/dream. (I doubt that Dream directly that is the issue, but one of its many dependencies)
By the way, I no longer try to get C-based packages to work on Windows; I can't sustainably create patches for the expanding set of Unix-only packages. I have created a proposal https://github.com/ocaml/dune/discussions/8707 for vcpkg
integration that will address much of the problem. That is long-term though. Today, I'm redirecting users to one of the options:
dream
is one of the few areas where Cygwin excels.dream
users care about deploying to Linux.dream
) that doesn't work on Windows, they can ask for the missing C dependencies to be supported.Hope that helps.
@kit-ty-kate @jonahbeckford Thanks for the feedback, I have since moved on to using WSL for OCaml.
following the tutorial on Ocaml website I tried to install the dream framework through OPAM and I get the following error.
OS: Windows 11 | 23H2
[ERROR] The compilation of conf-pkg-config.2 failed at "pkg-config --help".