Build system and instructions copied from SasLuca/raylib-cpp-cmake-template
You need to install Emscripten Download Here!
- Clone the repository using Git. Execute this in a terminal:
git clone https://github.com/gavinskycastle/ConeStacker2.git
- Cd into ConeStacker2.
cd ConeStacker2
- Install the required build tools (for example on Arch, type
sudo pacman -S cmake make gcc pkg-config wayland-protocols
) - 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 ConeStacker2.html
- Clone the repository using
git clone https://github.com/gavinskycastle/ConeStacker2.git
- Move to the ConeStacker2 directory
cd ConeStacker2
- Install the raylib git submodule using
git submodule update --init --recursive --depth=1
- Install the required build tools (for example on Arch, type
sudo pacman -S cmake make gcc
) - 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 ConeStacker2
- Run the binary with
./ConeStacker2
You need to install MinGW-w64. Copy the folder and add C:\mingw64\bin to PATH Download MinGW-w64 here!
- Clone the repository using Git. Execute this in a terminal:
git clone https://github.com/gavinskycastle/ConeStacker2.git
- Cd into ConeStacker2.
cd ConeStacker2
- 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-w64!
cmake .. -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles"
You might also want to set the default generator to MinGW. - 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 ConeStacker2.exe! You have just compiled ConeStacker2 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/gavinskycastle/ConeStacker2.git
- Cd into ConeStacker2.
cd ConeStacker2
- 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 ConeStacker2 is there. You have now compiled ConeStacker2 for Windows using MSVC.