@@ -8,10 +8,13 @@ I do not have a mac for testing, so this is limited to linux and windows.
...
@@ -8,10 +8,13 @@ I do not have a mac for testing, so this is limited to linux and windows.
One can download the source, or perhaps there is a pre-built binary
One can download the source, or perhaps there is a pre-built binary
It can be built with or without graphics.
It can be built with or without graphics.
## Prerequisites
## Prerequisites
- You must have go installed. I have only tried with go back to version 1.16. It may well build with earlier versions. It does expect support for `go.mod`.
- You must have go installed. I have only tried with go back to version 1.16. It may well build with earlier versions. It requires support for `go.mod`.
- You need a C compiler and cgo for the graphics.
- You need a C compiler and cgo for the graphics.
- If you disable graphics, you do not need C or cgo, but cross compiling (linux-> windows) works.
- cross compiling from linux to windows is easy without graphics, but not much fun if you want graphics.
- native compilation under windows is painless
## Build
## Build
...
@@ -19,7 +22,7 @@ It can be built with or without graphics.
...
@@ -19,7 +22,7 @@ It can be built with or without graphics.
cd ackley_mc
cd ackley_mc
go build .
go build .
and you should end up with an executable called `ackley_mc` or `ackley_mc.exe` under windows.
and you should end up with an executable called `ackley_mc` or `ackley_mc.exe` under windows. To build without graphics,