Shaderc-2026.1

Introduction to Shaderc

Shaderc provides a suite of software, helping developers transform and compile GLSL/HLSL/SPIR-V shaders.

BLFS provides glslc from this package, but not all of the package which some other packages may expect.

Shaderc Dependencies

Required

CMake

Recommended

Installation of Shaderc

Allow building with the system-installed Glslang and SPIRV-Tools if present:

sed '/build-version/d'   -i glslc/CMakeLists.txt            &&
sed '/third_party/d'     -i CMakeLists.txt                  &&
sed 's|SPIRV|glslang/&|' -i libshaderc_util/src/compiler.cc &&
echo '"2026.1"' > glslc/src/build-version.inc

Now install Shaderc by running the following commands:

mkdir build &&
cd    build &&

cmake -D CMAKE_INSTALL_PREFIX=/usr \
      -D CMAKE_BUILD_TYPE=Release  \
      -D SHADERC_SKIP_TESTS=ON     \
      -G Ninja ..
ninja

Now, as the root user:

ninja install

Contents

Installed Programs: glslc
Installed Libraries: libshaderc (static), libshaderc_shared, and libshaderc_combined (static)
Installed Directories: /usr/include/shaderc

Short Descriptions

glslc

compiles GLSL/HLSL shader files to SPIR-V files

libshaderc

contains functions to compile GLSL/HLSL shader strings to SPIR-V