Ubuntu and glslc

I wanted to take my first steps with Vulkan.
I wanted to cmpile a shader that can be done with the “glslc” tool.
I just can’t find this tool anywhere.

This command does not list the tool.
apt-file search glslc

I also installed the following tools from here.
https://docs.vulkan.org/tutorial/latest/02_Development_environment.html
sudo apt install vulkan-validationlayers-dev spirv-tools

The only thing I can find are sources, but cmake fails there.

I can’t imagine that this package glslc doesn’t exist for Ubuntu.
I found it here, but this won’t install either.

Can someone help me ?

It’s in the Vulkan SDK.

I have since found out that it also works with “glslangValidator” instead of “glslc”.
I got this tool through package management.

Is there a difference which of the two tools I use?
“glslangValidator” or “glslc”

glslc wraps around core functionality in glslang and SPIRV-Tools. glslc and its library aims to to provide:

  • a command line compiler with GCC- and Clang-like usage, for better integration with build systems
  • an API where functionality can be added without breaking existing clients
  • an API supporting standard concurrency patterns across multiple operating systems
  • increased functionality such as file #include support

I can’t imagine that this package glslc doesn’t exist for Ubuntu.
I found it here, but this won’t install either.

https://packages.lunarg.com/#

It’s so easy if you know how.

wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo apt update
sudo apt install vulkan-sdk

glslc wraps around core functionality in glslang and SPIRV-Tools . glslc and its library aims to to provide:

So glslc is superior?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.