LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-28-2023, 09:32 PM   #1
kaott
Member
 
Registered: Mar 2020
Posts: 63

Rep: Reputation: Disabled
regression on -current with ffmpeg


Appears to be related to the new vulkan-sdk package.

The config.log file reports:

Code:
gcc -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.xfIYNHUx/test /tmp/ffconf.xfIYNHUx/test.o -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
/usr/bin/ld: cannot find -lOSDependent: No such file or directory
/usr/bin/ld: cannot find -lOGLCompiler: No such file or directory
collect2: error: ld returned 1 exit status
ERROR: spirv_compiler not found
Looking at the files installed by the old vulkan-sdk package there are both files:
Code:
-rw-r--r-- root/root      3308 2022-03-06 13:18 usr/lib64/libOGLCompiler.a
-rw-r--r-- root/root      4942 2022-03-06 13:18 usr/lib64/libOSDependent.a
Not sure if this is a vulkan-sdk packaging problem (looks like a lot of churn in the SlackBuild), or an ffmpeg problem that is fixed in a newer version.

Last edited by kaott; 08-28-2023 at 09:54 PM. Reason: clarify on ffmpeg problem
 
Old 08-29-2023, 04:39 AM   #2
lucabon
Member
 
Registered: Oct 2021
Location: Italy
Distribution: Slackware
Posts: 104

Rep: Reputation: 74
Quote:
Originally Posted by kaott View Post
Appears to be related to the new vulkan-sdk package.

The config.log file reports:

Code:
gcc -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.xfIYNHUx/test /tmp/ffconf.xfIYNHUx/test.o -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
/usr/bin/ld: cannot find -lOSDependent: No such file or directory
/usr/bin/ld: cannot find -lOGLCompiler: No such file or directory
collect2: error: ld returned 1 exit status
ERROR: spirv_compiler not found
The new glslang's cmake files do not intall static libraries if BUILD_SHARED_LIBS is defined:
Code:
--- glslang-sdk-1.3.204/OGLCompilersDLL/CMakeLists.txt  2022-03-06 20:05:33.000000000 +0100
+++ glslang-sdk-1.3.250/OGLCompilersDLL/CMakeLists.txt  2023-08-12 20:54:02.000000000 +0200
@@ -41,8 +41,19 @@
     source_group("Source" FILES ${SOURCES})
 endif(WIN32)
 
-if(ENABLE_GLSLANG_INSTALL)
-    install(TARGETS OGLCompiler EXPORT OGLCompilerTargets
-            ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
-       install(EXPORT OGLCompilerTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
-endif(ENABLE_GLSLANG_INSTALL)
+if(ENABLE_GLSLANG_INSTALL AND NOT BUILD_SHARED_LIBS)
+    install(TARGETS OGLCompiler EXPORT glslang-targets)
+
Quote:
Originally Posted by kaott View Post
Not sure if this is a vulkan-sdk packaging problem (looks like a lot of churn in the SlackBuild), or an ffmpeg problem that is fixed in a newer version.
It seems an ffmpeg configure problem: removing the static libraries from configure's tests solves the issue.
Code:
--- 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++; }
Submitted the patch to ffmpeg-devel mailing list: https://ffmpeg.org/pipermail/ffmpeg-devel/
 
6 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] regression on -current with ffmpeg marav Slackware 6 12-13-2023 06:12 PM
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avformat_alloc_context YeeHaa4LINUX Linux - Software 2 10-16-2009 11:09 PM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration