Problem with cerbero package
GST Developer
gstreamer at gallery.co.uk
Thu Aug 10 16:40:26 UTC 2023
Hi Folks
I am trying to find a way to package up gstreamer 1.22 for Ubuntu 22.04. I can install gstreamer 1.20 from main repositories, but I need 1.22 for a fix related to webrtc,.
I have been using cerbero to do a complete build from source, which works fine to the end of the ninja build, an if I invoke python3 ./gst-env.py i get everything working fine in a sandbox
- To create a package I can easily install on another system I am trying :
./cerbero-uninstalled package gstreamer-1.0
This looks very promising and *almost* gets to the end, but then fails with the trace below:
It appears to be related to x264, but I am unclear of any details or how to resolve this.
Does anyone have any advice ?
Thanks !
End of process, fails here at 86/89:
[86/89] gcc -o ext/x264/libgstx264.so ext/x264/libgstx264.so.p/gstx264enc.c.o ext/x264/libgstx264.so.p/gstencoderbitrateprofilemanager.c.o -L/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libgstx264.so -Wl,-Bsymbolic-functions -Wl,-z,nodelete -m64 -Wl,-rpath,/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu -Wl,-rpath-link,/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstbase-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstreamer-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgobject-2.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libglib-2.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstvideo-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstpbutils-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstaudio-1.0.so /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libx264.so -Wl,--end-group
FAILED: ext/x264/libgstx264.so
gcc -o ext/x264/libgstx264.so ext/x264/libgstx264.so.p/gstx264enc.c.o ext/x264/libgstx264.so.p/gstencoderbitrateprofilemanager.c.o -L/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libgstx264.so -Wl,-Bsymbolic-functions -Wl,-z,nodelete -m64 -Wl,-rpath,/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu -Wl,-rpath-link,/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstbase-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstreamer-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgobject-2.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libglib-2.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstvideo-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstpbutils-1.0.so /home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/libgstaudio-1.0.so /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libx264.so -Wl,--end-group
/usr/bin/ld: ext/x264/libgstx264.so.p/gstx264enc.c.o: in function `x264_element_init':
/home/ubuntu/cerbero/build/sources/linux_x86_64/gstreamer-1.0/subprojects/gst-plugins-ugly/_builddir/../ext/x264/gstx264enc.c:3146: undefined reference to `x264_encoder_open_157'
/usr/bin/ld: /home/ubuntu/cerbero/build/sources/linux_x86_64/gstreamer-1.0/subprojects/gst-plugins-ugly/_builddir/../ext/x264/gstx264enc.c:3146: undefined reference to `x264_encoder_open_157'
collect2: error: ld returned 1 exit status
[87/89] gcc -Igst/asfdemux/libgstasf.so.p -Igst/asfdemux -I../gst/asfdemux -I. -I.. -I../gst-libs -I/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../include/gstreamer-1.0 -I/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../include -I/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../include/glib-2.0 -I/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu/glib-2.0/include -I/home/ubuntu/cerbero/build/dist/linux_x86_64/lib/x86_64-linux-gnu/pkgconfig/../../../include/orc-0.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -Wmissing-declarations -Wredundant-decls -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -Waggregate-return -fno-strict-aliasing -fvisibility=hidden -Wmissing-prototypes -Wold-style-definition -Wnested-externs -DG_DISABLE_DEPRECATED -m64 -fPIC -pthread -DHAVE_CONFIG_H -MD -MQ gst/asfdemux/libgstasf.so.p/gstasfdemux.c.o -MF gst/asfdemux/libgstasf.so.p/gstasfdemux.c.o.d -o gst/asfdemux/libgstasf.so.p/gstasfdemux.c.o -c ../gst/asfdemux/gstasfdemux.c
ninja: build stopped: subcommand failed.
Recipe 'gst-plugins-ugly-1.0' failed at the build step 'compile'
Command Error: Running ['ninja', '-v', '-d', 'keeprsp', '-j8'] returned 1
Output in logfile /home/ubuntu/cerbero/build/logs/linux_x86_64/gst-plugins-ugly-1.0-compile.log
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230810/99a49f92/attachment.htm>
More information about the gstreamer-devel
mailing list