From 4de1f6e2099bff24b213eeea46fe5a2a0e482267 Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Thu, 13 Aug 2015 06:58:32 -0700 Subject: [PATCH 1/2] OCaml windows setup directions --- ml-proto/README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/ml-proto/README.md b/ml-proto/README.md index 0b50f1c0ae..0a3bdf614a 100644 --- a/ml-proto/README.md +++ b/ml-proto/README.md @@ -29,9 +29,39 @@ Alternatively, you can also say (in `src`): ocamlbuild -libs bigarray main.native ``` -and get an executable named `src/main.native`. On Windows you'll need Cygwin. +and get an executable named `src/main.native`. +## Building on Windows + +Install OCaml for Windows from the github page: http://protz.github.io/ocaml-installer/ + +The installer will automatically install core cygwin packages. Contrary to the directions, however, you need a set of additional packages for ocaml & ocamlbuild to work, so select them in the cygwin installer (or run cygwinsetup manually to add them after the fact): + +``` +make + +mingw64-i686-binutils + -gcc-core + -gcc-g++ + -headers + -runtime + -windows-default-manifest + -winpthreads + +mingw64-x86_64-binutils + -gcc-core + -gcc-g++ + -headers + -runtime + -windows-default-manifest + -winpthreads +``` + +The set of packages may be different on 32-bit Windows. + +The current set of prototypes does not rely on opam or ocaml packages, but be aware that opam does not work on Windows. + ## Synopsis You can call the executable with From 41a276c2d65b43b6a035a7c71a20991b107dab35 Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Thu, 13 Aug 2015 11:21:43 -0700 Subject: [PATCH 2/2] OCaml windows setup directions; more detail on getting ocaml on linux/mac --- ml-proto/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ml-proto/README.md b/ml-proto/README.md index 0a3bdf614a..5eeaac60ab 100644 --- a/ml-proto/README.md +++ b/ml-proto/README.md @@ -15,7 +15,9 @@ The interpreter can also be run as a REPL, allowing to enter pieces of scripts i ## Building -You'll need OCaml 4.02. Then go to the `src` directory and simply do +You'll need OCaml 4.02. The best way to get this is to download the source tarball from the ocaml website ( http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.2.tar.gz ) and do the configure / make dance. + +Once you have ocaml, go to the `src` directory and simply do ``` make @@ -32,7 +34,7 @@ ocamlbuild -libs bigarray main.native and get an executable named `src/main.native`. -## Building on Windows +### Building on Windows Install OCaml for Windows from the github page: http://protz.github.io/ocaml-installer/