Unicorn Engine from source compilation - Godlike/Unicorn GitHub Wiki
Windows
- Download and install latest Vulkan SDK for Windows here
- Download and install Vulkan validation layers from here, follow Windows Build instructions how to install them
- Download repository from github
git clone [email protected]:Godlike/Unicorn.git --recursive && cd Unicorn
- Make build dir and genererate sln via cmake -G "Visual Studio 15 2017 Win64"
- Compile it
Linux
Ubuntu:
sudo apt-get install cmake git xorg-dev libglu1-mesa-dev libglm-dev graphviz libxcb-dri3-0 libxcb-present0 libpciaccess0 libpng-dev libxcb-dri3-dev libx11-dev libmirclient-dev libwayland-dev libxrandr-dev minizip libminizip-dev
- Download and install latest Vulkan SDK for Linux here
- Make sure to set up environmental variables
VULKAN_SDK
andVK_LAYER_PATH
export VULKAN_SDK=~/vulkan/VulkanSDK/1.0.xx.0/x86_64
replacing the 'xx' with the version you are installing.
and then:
export PATH=$VULKAN_SDK/bin:$PATH
export LD_LIBRARY_PATH=$VULKAN_SDK/lib:$LD_LIBRARY_PATH
export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d
- Download repository from github
git clone [email protected]:Godlike/Unicorn.git --recursive && cd Unicorn
- Create and go to your build directory
mkdir .build && cd .build
- Create a solution
cmake ..
- Compile the project
make -j${nproc}
.
Apple
- Download and install latest Vulkan SDK for Mac here
- Make sure to set up environmental variables
VULKAN_SDK
export VULKAN_SDK=/Users/.../vulkansdk-macos-1.0.69.0/macOS (replace 1.0.69.0 with your version)
export PATH=$VULKAN_SDK/bin:$PATH
export VK_ICD_FILENAMES=$VULKAN_SDK/etc/vulkan/icd.d/MoltenVK_icd.json
export VK_LAYER_PATH=$VULKAN_SDK/etc/vulkan/explicit_layers.d
- Download repository from github
git clone [email protected]:Godlike/Unicorn.git --recursive && cd Unicorn
- Create and go to your build directory
mkdir .build && cd .build
- Create a solution
cmake .. -G Xcode
_ If you have error like "No C or CXX compiler set" try this -sudo xcode-select --reset
- Open in Xcode and compile