Unicorn Engine from source compilation - Godlike/Unicorn GitHub Wiki

Windows

  1. Download and install latest Vulkan SDK for Windows here
  2. Download and install Vulkan validation layers from here, follow Windows Build instructions how to install them
  3. Download repository from github git clone [email protected]:Godlike/Unicorn.git --recursive && cd Unicorn
  4. Make build dir and genererate sln via cmake -G "Visual Studio 15 2017 Win64"
  5. 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

  1. Download and install latest Vulkan SDK for Linux here
  2. Make sure to set up environmental variables VULKAN_SDK and VK_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

  1. Download repository from github git clone [email protected]:Godlike/Unicorn.git --recursive && cd Unicorn
  2. Create and go to your build directory mkdir .build && cd .build
  3. Create a solution cmake ..
  4. Compile the project make -j${nproc} .

Apple

  1. Download and install latest Vulkan SDK for Mac here
  2. 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

  1. Download repository from github git clone [email protected]:Godlike/Unicorn.git --recursive && cd Unicorn
  2. Create and go to your build directory mkdir .build && cd .build
  3. Create a solution cmake .. -G Xcode _ If you have error like "No C or CXX compiler set" try this - sudo xcode-select --reset
  4. Open in Xcode and compile