To run ocamtris, the Graphics module must be installed:
In WSL terminal, run commands
sudo apt install pkg-config
opam install graphics
In order for ocamtris to display the screen, a X11 display server is needed. For this project, we used Xming:
- Install the Xming X Server for Windows
- Start XLaunch and use settings:
- Leave Multiple windows checked in Display settings (default)
- Leave Start no client checked in Session type (default)
- Check Clipboard in Additional paramaters (defualt)
- If using WSL 2, additionally check No Access Control
- In WSL terminal, run
- If on WSL:
export DISPLAY=:0
- if on WSL 2:
export DISPLAY=$(route.exe print | grep 0.0.0.0 | head -1 | awk '{print $4}'):0.0
- If on WSL:
- To run ocamtris, the Graphics module must be installed
- In terminal, run the command
opam install graphics
- In order for ocamtris to display the screen, XQuartz is also needed, which you can install from [https://www.xquartz.org/]
- To run the command below (
make play
), you may need to have XQuartz running in the background, or run the command from the XQuartz terminal, which you can open by opening XQuartz and selecting Applications > Terminal from the menu bar.
- Follow the above instructions given your specific operating system
- In terminal, change your working directory to ocamtris and run
make play
to build and launch the game. - Have fun!