Follow the steps below to get started.
Requirement - 7zip
-
Download:
-
Unzip using 7zip into a temporary folder, you may have to unzip multiple times.
-
Move the
mingw64
folder to a more permanent location such asC:\mingw64
-
Add the
/bin
folder inside this folder to yourPATH
. So if you placed MinGW64 inC:\mingw64
then you would addC:\mingw64\bin
to your system environment's PATH variable.
- In a terminal run:
brew install sdl2 sdl2_image sdl2_ttf
- Create a new Xcode command line project and add the repo's contents to the project folder within Xcode
- Open the target settings by clicking on the xcodeproj file
- General -> Add Frameworks and Libraries -> add
libSDL2-2.0.0.dylib
,libSDL2_image-2.0.0.dylib
andlibSDL2_ttf-2.0.0.dylib
- Build Settings -> Search Paths -> Header Search Paths -> add
/usr/local/include
You need to use a bash terminal, such as Git BASH from the root directory.
To build the project use:
mingw32-make.exe
To build and run the project use:
mingw32-make.exe run
Download dependencies using:
brew install sdl2 sdl2_image sdl2_ttf glew glm
To build and run the project use:
make osx
- Download and install VSCode from here
- Open VSCode and install the C/C++ extension by Microsoft
- Open the project folder in VSCode (the root folder for this repo)
- Make the following changes to the files inside
.vscode
: (assuming you are using the file locations mentioned above)
Replace the following line:
"compilerPath": "F:/libraries/mingw64/bin/gcc.exe",
with:
"compilerPath": "C:/mingw64/bin/gcc.exe",
Replace the following line:
"miDebuggerPath": "F:/libraries/mingw64/bin/gdb.exe",
With:
"miDebuggerPath": "C:/mingw64/bin/gdb.exe",
If everything has gone well you should be able to build and run the project with Terminal > Run Build Task. A window should appear for a few seconds if it has worked.