spirv-cross command not found
In this troubleshooting guide we learn how to fix spirv-cross command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
spirv-cross: command not found
or when using sudo you get the following error message
sudo: spirv-cross: command not found
Solutions to spirv-cross: command not found
How To Fix spirv-cross: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu spirv-cross is provided by spirv-cross package.
spirv-cross is:
SPIRV-Cross is a tool designed for parsing and converting SPIR-V to other shader languages:
- Convert SPIR-V to readable, usable and efficient GLSL
- Convert SPIR-V to readable, usable and efficient MSL
- Convert SPIR-V to readable, usable and efficient HLSL
- Reflection API to simplify the creation of Vulkan pipeline layouts
- Reflection API to modify and tweak OpDecorations
- Supports “all” of vertex, fragment, tessellation, geometry and compute shaders
To fix this problem, we can install more using the command below.
sudo apt-get -y install spirv-cross
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install spirv-cross.
sudo apt -y install spirv-cross
Or if you have aptitude installed you can use the following command.
sudo aptitude install spirv-cross
Summary
In this tutorial we learn how to fix spirv-cross command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.