TCC is a series of graphical challenges to learn programming languages. I found this to be more enticing than Advent of Code.
BECAUSE.
This project relies on OCaml's graphics
package, which is somewhat
non-trivial to install, due to native system dependencies. Some
instructions on how make it work are provided below:
-
Install XQuartz.
-
Log-out from the system and log-in again.
-
After that, you will have to re-install all packages you have previously installed via opam. For instance, first try
opam switch
If your version is, for instance
4.10.0
, next runopam switch reinstall 4.10.0
It will take a while, as it re-builds all packages from scratch.
The
graphics
package has been checked to work with OCaml4.06.1
,4.07.1
, and4.10.0
. -
Next, execute
opam update; opam upgrade opam install graphics
After that you should be able to build the project.
-
You might need to install
core
, andbatteries
viaopam
(usingopam install .
).
-
Make sure that x11 window manager is installed (it comes as a part of most of the standard distributions).
-
Proceed to Step 3 for Mac OS X (above).
Uses the native Win32 API.