Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.42 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.42 KB

M1 Macs MoltenVK install

This guide is meant for Computer Graphics students that own ARM-based Macs.

This guide assumes that you will use the command line and a simple text editor (like nano, Neovim, VS Code...), not a fully-fledged IDE.

  1. Follow the tutorial provided in the PDF for the first assignment until the section "Setting up Xcode".
  2. Go to the install folder of VulkanSDK (usually ~/VulkanSDK), specifically to the path:
    ~/VulkanSDK/<vulkan version>
  3. Run the install script via this command:
    sudo python3 install_vulkan.py
  4. Edit your .zshrc and add the following line:
    export DYLD_LIBRARY_PATH=/Users/<your username>/VulkanSDK/1.3.275.0/macOS/lib
  5. Download the script vkcompile.sh provided with this GitHub repository and save it somewhere you can remember
  6. Add execution permissions to the script by running this command:
    chmod +x vkcompile.sh
  7. Alias that script in your .zshrc by adding the following line:
    alias gvk="/path/to/vkcompile.sh"
  8. Update your terminal configuration by running:
    source ~/.zshrc

Now you should be able to compile A01.cpp by running gvk A01.cpp in your terminal in the directory that contains that file.

Please do let me know about any further problems by opening an issue here.