3-Day Shift Calendar with SDL2 in Nim
nimble build
or nim c "Build\calendar.nim"
both build a calendar
binary executable based on the host OS.
nimble install
builds a calendar
binary executable into ~/.nimble/bin.
Upon building the binary executable, font.ttf and background.jpg is automatically loaded into the executable, enabling the executable to be run in any directory.
- Imports SDL2, SDL2_image, SDL2_ttf, stopwatch and nimdeps
- Install SDL2 on host machine before running executable binary
- Linux:
- apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
- MacOS:
- brew install libsdl2 libsdl2-image libsdl2-ttf
- Windows:
- Install from libsdl2
- If SDL2 dependencies faults at execution, interchange between x86 and x64 SDL2 dlls to find the correct dlls used in execution
- Linux:
- Install SDL2 on host machine before running executable binary