All the following libraries are required for to have graphics, but optional for CLI projects:
The following libraries are optional:
- GNU Readline (for the debugger CLI)
Install the optional dependencies. On Ubuntu, the following commands will work:
apt install libreadline-dev
After cloning the repo, run the following commands:
cmake .
make
./ogm-test
Make sure the unit tests pass.
- Install CMake. Make sure to add it to the PATH.
- Install MinGW. Use the default install options.
- Once MinGW is installed, press "Continue" (or open the MinGW Installation Manager). Select
mingw32-base
,mingw32-gcc-g++
, andmsys-base
; mark them for installation. Click onInstallation -> Apply Changes
to begin the install. This shouldn't take more than 10 minutes. - Wait until everything above is installed. Add
C:\MinGW\bin
to the PATH (assuming you installed it there.) - Open the CMake GUI. Select this repository as the source code and binary build location, then click Generate. It should output "Configuring Done" and "Generating Done" at the end. If not, an error occurred and you must fix it before proceeding.
- Open a new command window (
cmd.exe
), navigate to this repository, and runmingw32-make
. This should succeed without error.
Run ogm-test.exe
to confirm the build is working. Use ogm.exe
instead of ogm
hereafter.