Closed AryanSethi closed 3 years ago
If you're using a Linux based system, then you need to make sure you have the following packages installed:
g++
compiler itself, in order to compile the codegnu make
in order to utilize the provided makefilesfml
in order to have access to the graphics library usedOn a Debian based system, the command would look something like this:
sudo apt install g++ make libsfml-dev -y
Once you have these installed, clone the repo, and in the root of the project (in the same directory where the Makefile is), you have a few options:
make build-debug
which will compile the project with the debug directives
These directives enable features such as:
make build-release
which will compile the project without the debug directives
Without the debug directives, you will be looking at the program stripped down of the previously mentioned features.If you're using a windows based systems, it'll be a bit more tricky. You have to install MinGW to get the g++
compiler and download and install SFML from the official site. Then, you have to manually extract the contents of the makefile and run them manually.
I will be adding soon a CONTRIBUTING.md
file which will detail the steps mentioned above. Thank you for the heads up!
I'm relatively new to C++ dev. How can I compile the code on my own PC ?