You need to install Emscripten Download Here!
- Clone the repository using Git. Execute this in a terminal:
git clone https://github.com/siddharthroy12/RaylibTemplate
- Cd into RaylibTemplate.
cd RaylibTemplate
- Install the raylib git submodule using
git submodule update --init --recursive --depth=1
- Make a build folder. Your builds will go here.
mkdir build; cd build
- Setup cmake
emcmake cmake -S .. -D CMAKE_BUILD_TYPE=Release
- Run
cmake --build build
to compile the project - Run a local web server and open the RaylibTemplate.html
- Clone the repository using
git clone https://github.com/siddharthroy12/RaylibTemplate
- Move to the RaylibTemplate directory
cd RaylibTemplate
- Install the raylib git submodule using
git submodule update --init --recursive --depth=1
- Make a build folder and cd to it with
mkdir build && cd build
- Setup cmake
cmake .. -DCMAKE_BUILD_TYPE=Release
- Run
make
to compile the project - Make the binary executable
chmod +x RaylibTemplate
- Run the binary with
./RaylibTemplate
You need to install MinGW. Select make and developer tools in the installer Download MinGW here!
- Clone the repository using Git. Execute this in a terminal:
git clone https://github.com/siddharthroy12/RaylibTemplate
- Cd into RaylibTemplate.
cd RaylibTemplate
- Install the raylib git submodule using
git submodule update --init --recursive --depth=1
- Make a build folder. Your builds will go here.
mkdir build; cd build
- Setup CMake. Make sure to define MinGW Makefiles if you are using MinGW!
cmake .. -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles"
- Make sure you have mingw32-make. If you do, just run it in the build directory and it will start compiling everything. It won't take long, and once it's finished, then
- Run RaylibTemplate.exe! You have just compiled RaylibTemplate for Windows using MinGW.
You need to have Visual Studio 2019 (other versions aren't tested, please tell us if it works for you) with C++ Development selected in the installer.
- Clone the repository using Git. Execute this in a terminal:
git clone https://github.com/siddharthroy12/RaylibTemplate
- Cd into RaylibTemplate.
cd RaylibTemplate
- Install the raylib git submodule using
git submodule update --init --recursive --depth=1
- Make a build folder. Your builds will go here.
mkdir build; cd build
- Setup CMake.
cmake .. -DCMAKE_BUILD_TYPE=Release
- Let's build the project! Run
cmake --build .
- Go into Debug, your build of RaylibTemplate is there. You have now compiled RaylibTemplate for Windows using MSVC.