[FFmpeg-devel] [PATCH] Build failed with newer glslang

Luca Bonissi ffmpeg at bonslack.org
Tue Aug 29 12:33:43 EEST 2023


Newer glslang does no more provide static libraries libOSDependent.a and 
libOGLCompiler.a.
These libraries are only used in configure's test to detect 
spirv_compiler, but are no more necessary even with older glslang.

The following patch fixes the build issue.

Signed-off-by: Luca Bonissi <ffmpeg at bonslack.org>
--

--- ffmpeg-5.1.3/configure.orig	2023-03-26 16:21:00.000000000 +0200
+++ ffmpeg-5.1.3/configure	2023-08-29 10:50:29.433307045 +0200
@@ -6551,10 +6551,10 @@
  enabled libfreetype       && require_pkg_config libfreetype freetype2 
"ft2build.h FT_FREETYPE_H" FT_Init_FreeType
  enabled libfribidi        && require_pkg_config libfribidi fribidi 
fribidi.h fribidi_version_info
  enabled libglslang && { check_lib spirv_compiler 
glslang/Include/glslang_c_interface.h glslang_initialize_process \
-                            -lglslang -lMachineIndependent 
-lOSDependent -lHLSL -lOGLCompiler -lGenericCodeGen \
+                            -lglslang -lMachineIndependent -lHLSL 
-lGenericCodeGen \
                              -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt 
-lSPIRV-Tools -lpthread -lstdc++ -lm ||
                          require spirv_compiler 
glslang/Include/glslang_c_interface.h glslang_initialize_process \
-                            -lglslang -lOSDependent -lHLSL -lOGLCompiler \
+                            -lglslang -lHLSL \
                              -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt 
-lSPIRV-Tools -lpthread -lstdc++ -lm; }
  enabled libgme            && { check_pkg_config libgme libgme 
gme/gme.h gme_new_emu ||
                                 require libgme gme/gme.h gme_new_emu 
-lgme -lstdc++; }


More information about the ffmpeg-devel mailing list