Open RogueScholar opened 6 months ago
Additionally, the glslang README indicates that the GenericCodeGen, MachineIndependent, OSDependent, and SPIRV libraries are currently empty stubs and will be removed in future versions as well. I have no idea of the best way to solve this, as just removing linking to these libraries will break against older glslang versions (as the glslang version included in the stable version of the distro I use).
Of course, this would all be easy if glslang had just added the glslang.pc file to upstream years ago. A lot of distros have a glslang.pc file, but it's not part of the upstream glslang. Detecting it by CMake might be possible; it isn't possible via the command line (cmake --find-package -DNAME=glslang
) but you might be able to create a CMakeLists.txt file to test for it. I guess you could also do something like glslangValidator --version | head -n1 | cut -d: -f3 | cut -d. -f 1
, but that depends on the output format of glslangValidator --version
not changing.
Beginning with GLSL v14.0.0 (released 2023-12-21), the legacy HLSL and OGLCompiler stub libraries were completed removed from the upstream buildsystem. This is causing compilations with the
--enable-glslang
flag explicitly set to error out after failing to locate those libraries, despite a complete and functioning GLSL installation being present on the system. Currently both Debian Unstable and Ubuntu 24.04 LTS "Noble Numbat" are shipping with GLSL ⩾14.0.0.Expected behavior
QuickBuild tests for the presence of GLSL using the upstream linking information published with pkgconf and/or CMake. (Ironically, I believe I saw a notice in their release notes that they have also ceased supporting pkgconf and now only officially support linking through the CMake buildsystem.) Based on my cursory inspection of QuickBuild, it is brittle in this instance because it manually tests for the presence of each of the (former) GLSL constituent libraries rather than querying one of the above-mentioned tools and accepting the linker flags supplied therein. (To wit, QB test for libOGLCompiler and QB test for libHLSL)
Actual behavior
Relevant build log output from failed compilation
```console +------------------------------------------------------------------------------+ | Build environment | +------------------------------------------------------------------------------+ Kernel: Linux 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 amd64 (x86_64) Toolchain package versions: binutils_2.42-4ubuntu2 dpkg-dev_1.22.6ubuntu6 g++-13_13.2.0-23ubuntu4 gcc-13_13.2.0-23ubuntu4 libc6-dev_2.39-0ubuntu8.1 libstdc++-13-dev_13.2.0-23ubuntu4 libstdc++6_14-20240412-0ubuntu1 linux-libc-dev_6.8.0-31.31 $ /<Steps to reproduce the bug
[sudo] apt -y install glslang-dev
).--enable-glslang
.Version/Commit
Environment information