- Clone the repo with submodules:
git clone --recurse-submodules -j8 ...
- Make sure you are using MinGW64-bit
- Rename C:/MinGW64/bin/mingw32-make.exe -> C:/MinGW64/bin/make.exe
- Clone the repo and include the submodules
- Add MinGW64 binaries to your environment variables into the path
- Add the bin location to path
- Download and install the installer from https://www.msys2.org/
- Run
pacman -Syu
- Reopen terminal and Run
pacman -Su
- Run
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
- Run
- Rename C:/msys64/mingw64/bin/mingw32-make.exe -> C:/msys64/mingw64/bin/make.exe
- Add the bin location to path
- Clone GLSLC from https://github.com/google/shaderc
- Clone SPIR-V Tools into the shaderc/third_party folder: https://github.com/KhronosGroup/SPIRV-Tools
- Then go into the SPIR-V Tools folder located under shaderc/third_party/SPIR-V-Tools
- Go into SPIR-V-Tools/external and clone SPIR-V-Headers: https://github.com/KhronosGroup/SPIRV-Headers
- Now cd to the root of shaderc and run
> cmake . -DSHADERC_SKIP_TESTS=true
- Then you run
cmake --build . --config Release
- Now the binaries for shaderc are under shaderc/libshaderc/Release
- Make sure you have the correct tools
- CMAKE must be version 13 and above, Must have GCC/G++ support of C++17 and up
- sudo apt-get install build-essential manpages-dev
- sudo apt-get install mesa-utils
- sudo apt-get install libgl1-mesa-dev
- sudo apt-get install xorg-dev libglu1-mesa-dev
- sudo apt install vulkan-validationlayers
- Install the vulkan sdk
- run:
export VULKAN_SDK=
and put your path to the parent of the bin folder- This will create temp env, add the above line to ur bashrc file
> make
> make run_vulkan
ormake run_opengl