[wg-windows] Improving the state of OCaml on Windows
Frédéric Bour
frederic.bour at lakaban.net
Fri May 29 18:56:37 BST 2015
Hi,
It's nice to have this list. I will share a few words about the state of
Merlin in windows world.
We got some Merlin builds working under windows. The process relied on
Jonathan's OCaml distribution, so we had a working version of 4.01 and
beta version for 4.02.
The workflow is there, but has been untouched for a long time as we have
no (apparent) users. If people are interested, I can revive test
versions.
Also, the workflow might be of interest as it is deceptively simple:
1) We have a wine prefix with Jonathan's ocaml and relevant ocamlfind
packages installed (all in a tarball, ready to be extracted).
2) Merlin is built under Linux using make and OCamlMakefile; we only
prepend "wine" to invocation of ocaml tools. This produces an
ocamlmerlin.exe without further work.
3) It's tested first under Unix, with native vim and emacs, once again
only by prefixing the ocamlmerlin invocation with "wine" (and setting up
wine vfs so that cmi files are found).
4) After that I tested on two windows machines, the binary was
relocatable and could just be distributed standalone, following windows
habits.
The main pain point was to get ocaml packages installed, the only
dependency is yojson and it was installed by hacking makefiles a lot.
(Only changes needed to merlin were related to signals and handling of
paths)
Fred
Le , Thomas Braibant a écrit :
> Hi,
>
> Thanks for joining this working group. Its goal is to find out how to
> improve the state of OCaml and its ecosystem on Windows.
>
> Some of the tasks that we might address (this list is by no mean meant
> to be exhaustive nor normative):
>
> - Gather information from the community about the use of the various
> versions of OCaml available on Windows, and understand what kind of
> environment people are working with. (BTW, I think a good way to get
> the discussion rolling might be to describe each other's setup to use
> OCaml on Windows.)
>
> - Finalize OPAM support for Windows (this is listed on the OPAM 1.3
> roadmap). When this support is in place, many OCaml packages should
> work out of the box (with the proviso that many packages assume a
> unix-ish environment for their build system).
>
> - Discuss how to help package developers improve Windows support. One
> way to do that could be to provide know-how about how to setup
> continuous integration on services like Appveyor to check that
> packages build on typical Windows setups.
>
> - Find a solution for users of WODI, the GODI based OCaml distribution
> for Windows, which has been shutdown. WODI was able to compile OCaml
> related software (using Cygwin as an environment), but was also able
> to install binary packages. (In some cases, some non-trivial patches
> were applied to make package usable on Windows.) Some of the sources
> needed to use WODI are still available, but the system does not work
> out of the box now that the server has gone offline. With a little
> work, we might be able to bring it back, to smooth the transition.
>
> - Discuss the state of cross compilation to Windows.
>
> - Advertise OCamlPro's OCPWin commercial effort. (I will leave Fabrice
> tell a bit more about that.)
>
> - Discuss how to pool resources (if needed) to work toward these
> goals.
>
> Many thanks to Anil and OcamlLabs for hosting this mailing list.
>
> Thomas
>
>
> _______________________________________________
> wg-windows mailing list
> wg-windows at lists.ocaml.org
> http://lists.ocaml.org/listinfo/wg-windows
More information about the wg-windows
mailing list