-
Install
Chocolateyfrom following website:
https://chocolatey.org/install -
After finishing the installation intall
makeusing the following command on the CMD (Run as adimistrator):choco install make
-
Install
MSYS2from the following website:
https://www.msys2.org/ -
Open
MSYS2and intallmakeusing the following command (on the opened console):pacman -S make
-
Go to the following website:
https://code.visualstudio.com/docs/cpp/config-mingw -
Follow the guide on how to install the C/C++ compilers and validate that they are installed by using the following commands on the CMD:
gcc --version g++ --version
-
Install
Xcode Command Line Toolsusing the following command on the Terminal:xcode-select --install -
(Optional) Install
brewfrom the following website:
https://brew.sh/ -
(Optional) Install with
brewtheGLFWlibrary using the following command on the Terminal:brew install glfw
-
(Optional) Update the Linux OS using the following command on the Terminal:
sudo apt update -
Install
g++using the following command on the Terminal:sudo apt install build-essential g++ -
Install
OpenGLandGLFWusing the following command on the Terminal:sudo apt install libgl-dev libglfw3-dev libxi-dev
-
Open the CMD/Terminal.
-
Navigate to the project folder using
cdcommands. -
Run the following command:
make -
Run the following commands:
cd bin ./main
-
Download Visual Studio Code from:
https://code.visualstudio.com/download -
Download the
C/C++ Extension Packfrom the Visual Studio Code Extensions or from:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-extension-pack -
Download the
Makefile Tools Extensionfrom the Visual Studio Code Extensions or from:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.makefile-tools -
Configure the
Makefile Tools Extensionto compile the engine: using the available Makefile:-
Edit the
Makefileoption, and setThe path to the makefile of the projectas:Makefile. -
Click on the
...button near thePlaybutton, and then choose:Makefile:Configure. -
Edit the
Lunch targetoption, and choose the first option:main(). -
Click on the
Playbutton and validate that the program compiles and runs successfully.
-
Notice: With this tool you can run the OpenGL in Debugging mode as well.
The MacOS tends to block the file: "libglfw.3.dylib" which is crucial for running the OpenGL Engine. To remove the block, open the MacOS "Settings", go to "Privacy & Security", scroll down until you find the "libglfw.3.dylib" and choose to enable permission for it.
-
For Windows:
https://www.youtube.com/watch?v=hRInLNR9iRg -
For MacOS:
https://www.youtube.com/watch?v=7-dL6a5_B3I -
For Linux:
https://www.youtube.com/watch?v=JxDLGHil-Cw
-
The Cherno:
https://www.youtube.com/watch?v=W3gAzLwfIP0&list=PLlrATfBNZ98foTJPJ_Ev03o2oq3-GGOS2 -
Victor Gordan:
https://www.youtube.com/watch?v=XpBGwZNyUh0&list=PLPaoO-vpZnumdcb4tZc4x5Q-v7CkrQ6M-
-
GLFW:
https://www.glfw.org/ -
GLAD:
https://glad.dav1d.de/ -
GLEW (Not used, But works similar to GLAD):
https://glew.sourceforge.net/