You are not logged in.

#1 2024-12-15 12:22:20

okbzl
Member
Registered: 2024-08-03
Posts: 30

[SOLVED] Failure when linking target libgstlibav.so (lib32-gst-libav)

[1/6] Compiling C object subprojects/gst-plugins-bad/tests/check/elements_curlhttpsrc.p/elements_curlhttpsrc.c.o
In file included from ../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/curlhttpsrc.c:29:
../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/curlhttpsrc.c:837:17: warning: ‘test_range_get’ defined but not used [-Wunused-function]
  837 | GST_START_TEST (test_range_get)
      |                 ^~~~~~~~~~~~~~
/usr/include/gstreamer-1.0/gst/check/gstcheck.h:240:13: note: in definition of macro ‘GST_START_TEST’
  240 | static void __testname (int G_GNUC_UNUSED __i__) \
      |             ^~~~~~~~~~
[3/6] Compiling C object subprojects/gst-plugins-bad/tests/check/elements_dash_mpd.p/elements_dash_mpd.c.o
In file included from ../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c:52:
../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c:6012:17: warning: ‘dash_mpdparser_xlink_period’ defined but not used [-Wunused-function]
 6012 | GST_START_TEST (dash_mpdparser_xlink_period)
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gstreamer-1.0/gst/check/gstcheck.h:240:13: note: in definition of macro ‘GST_START_TEST’
  240 | static void __testname (int G_GNUC_UNUSED __i__) \
      |             ^~~~~~~~~~
[4/6] Linking target subprojects/gst-libav/ext/libav/libgstlibav.so
FAILED: subprojects/gst-libav/ext/libav/libgstlibav.so 
gcc -m32 -fpermissive  -o subprojects/gst-libav/ext/libav/libgstlibav.so subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstav.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavcodecmap.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavutils.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavaudenc.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavvidenc.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavauddec.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavviddec.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavcfg.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavdemux.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavmux.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavdeinterlace.c.o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavvidcmp.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libgstlibav.so -Wl,-z,nodelete -Wl,--exclude-libs=ALL -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wl,--start-group /usr/lib32/libavfilter.so /usr/lib32/libavformat.so /usr/lib32/libavcodec.so /usr/lib32/libavutil.so /usr/lib32/libgstreamer-1.0.so /usr/lib32/libgobject-2.0.so /usr/lib32/libglib-2.0.so /usr/lib32/libgstbase-1.0.so /usr/lib32/libgstvideo-1.0.so /usr/lib32/libgstaudio-1.0.so /usr/lib32/libgstpbutils-1.0.so -Wl,--end-group
/usr/bin/ld: /tmp/ccIYEWQD.ltrans0.ltrans.o: in function `gst_ff_vid_caps_new':
<artificial>:(.text+0x11e0): undefined reference to `avcodec_get_supported_config'
/usr/bin/ld: /tmp/ccIYEWQD.ltrans0.ltrans.o: in function `gst_ff_aud_caps_new.lto_priv.0':
<artificial>:(.text+0x2af0): undefined reference to `avcodec_get_supported_config'
/usr/bin/ld: <artificial>:(.text+0x2e24): undefined reference to `avcodec_get_supported_config'
/usr/bin/ld: <artificial>:(.text+0x2f40): undefined reference to `avcodec_get_supported_config'
/usr/bin/ld: /tmp/ccIYEWQD.ltrans0.ltrans.o: in function `gst_ffmpeg_codectype_to_video_caps':
<artificial>:(.text+0x3b7e): undefined reference to `avcodec_get_supported_config'
/usr/bin/ld: /tmp/ccIYEWQD.ltrans0.ltrans.o:<artificial>:(.text+0x734f): more undefined references to `avcodec_get_supported_config' follow
collect2: error: ld returned 1 exit status
[5/6] Linking target subprojects/gst-plugins-bad/tests/check/elements_dash_mpd

tl;dr: can't build lib32-gst-libav at all, pls help

Last edited by okbzl (2024-12-25 08:19:07)

Offline

#2 2024-12-15 19:02:01

loqs
Member
Registered: 2014-03-06
Posts: 18,198

Re: [SOLVED] Failure when linking target libgstlibav.so (lib32-gst-libav)

What is the output of `pacman -Qs ffmpeg`?

Offline

#3 2024-12-17 09:08:36

okbzl
Member
Registered: 2024-08-03
Posts: 30

Re: [SOLVED] Failure when linking target libgstlibav.so (lib32-gst-libav)

local/ffmpeg 2:7.1-3
    Complete solution to record, convert and stream audio and video
local/ffmpeg4.4 4.4.5-1
    Complete solution to record, convert and stream audio and video
local/ffmpegthumbnailer 2.2.3-3
    Lightweight video thumbnailer that can be used by file managers
local/ffmpegthumbs 24.12.0-1 (kde-applications kde-multimedia)
    FFmpeg-based thumbnail creator for video files
local/ffms2 5.0-2
    A libav/ffmpeg based source library and Avisynth plugin for easy frame accurate access
local/ffnvcodec-headers 12.2.72.0-1
    FFmpeg version of headers required to interface with Nvidias codec APIs
local/gst-libav 1.24.10-1
    Multimedia graph framework - libav plugin
local/jellyfin-ffmpeg 1:7.0.2p7-2
    Jellyfin fork of ffmpeg
local/lib32-ffmpeg 2:7.0.2-3
    Complete solution to record, convert and stream audio and video (32 bit)
local/lib32-ffmpeg-debug 2:7.0.2-3
    Detached debugging symbols for lib32-ffmpeg
local/lib32-gst-libav 1.24.8-1
    Multimedia graph framework (32-bit) - libav plugin
local/qt6-multimedia-ffmpeg 6.8.1-2
    FFMpeg backend for qt6-multimedia

Offline

#4 2024-12-17 11:23:52

loqs
Member
Registered: 2014-03-06
Posts: 18,198

Re: [SOLVED] Failure when linking target libgstlibav.so (lib32-gst-libav)

local/ffmpeg 2:7.1-3
    Complete solution to record, convert and stream audio and video
....
local/lib32-ffmpeg 2:7.0.2-3
    Complete solution to record, convert and stream audio and video (32 bit)

lib32-ffmpeg is outdated while ffmpeg is up to date, the mismatch is the cause of the issue.

Offline

#5 2024-12-25 08:18:44

okbzl
Member
Registered: 2024-08-03
Posts: 30

Re: [SOLVED] Failure when linking target libgstlibav.so (lib32-gst-libav)

Solved after lib32-ffmpeg updated

Offline

Board footer

Powered by FluxBB