macOS
GNAT Community 2020
- Download and install GNAT Community x86 Mac OS X (64 bits) from
AdaCore’s Libre Site. We assume you install it to
/usr/local/gnat
. Make sure thebin
folder is in thePATH
of your shell. - There are multiple ways to install
glfw
; the most popular one is probably using Homebrew and executingbrew install glfw
. - If you want to use FreeType, you can install it with
brew install freetype
. -
Open your shell and navigate to the root folder of OpenGLAda. Execute:
$ gprbuild -p -P opengl-test.gpr -XWindowing_System=quartz $ gprbuild -p -P opengl-text-test.gpr -XWindowing_System=quartz $ gprbuild -p -P opengl-images-test.gpr -XWindowing_System=quartz
This should produce executables in the
bin
folder inside OpenGLAda. - Keep in mind that you need to spread the
glfw.dylib
andfreetype.dylib
alongside your binaries for them to work.