Skip to content

Commit

Permalink
Merge pull request #1 from kg/master
Browse files Browse the repository at this point in the history
Add OCaml windows setup directions
  • Loading branch information
rossberg committed Aug 13, 2015
2 parents 7e3a6e8 + 41a276c commit 5d2ec97
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions ml-proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,8 +31,38 @@ 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

Expand Down

0 comments on commit 5d2ec97

Please sign in to comment.