To download the GTK dependency for MacOS, follow these steps:
- Install brew:
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install GTK3 package and font:
run the setup.sh script
./setup.sh
ORbrew install gtk+3 brew install --cask font-jaro
This will install the GTK3 library and its dependencies for the MacOS environment.
To start our TIC-TAC-TOE game, follow these steps:
-
Change directory to our TIC-TAC-TOE game location
-
Compile file using GCC
gcc -o start \
main.c \
startingPage.c \
mainMenu.c \
difficultyPage.c \
sharedFunction.c \
singlePlayer.c \
doublePlayer.c \
parseDataset.c \
minMax.c \
song.m \
`pkg-config --cflags --libs gtk+-3.0` \
-framework AudioToolbox \
-framework AVFoundation \
-framework Foundation- Start the game
./start
ANOTHER WAY
- Execute the compileFile script
./compileFile.sh