<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Folks<div><br></div><div>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,.</div><div><br></div><div>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</div><div><br></div><div>- To create a package I can easily install on another system I am trying :</div><div><b>./cerbero-uninstalled package gstreamer-1.0</b></div><div><br></div><div>This looks very promising and *almost* gets to the end, but then fails with the trace below:</div><div><br></div><div>It appears to be related to x264, but I am unclear of any details or how to resolve this.</div><div><br></div><div>Does anyone have any advice ?</div><div><br></div><div>Thanks ! </div><div><br></div><div><br></div><div>End of process, fails here at 86/89: </div><div><br></div><div><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">[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</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">FAILED: ext/x264/libgstx264.so </span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">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</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">/usr/bin/ld: ext/x264/libgstx264.so.p/gstx264enc.c.o: in function `x264_element_init':</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">/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'</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">/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'</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">collect2: error: ld returned 1 exit status</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">[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</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">ninja: build stopped: subcommand failed.</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; min-height: 15px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; min-height: 15px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">Recipe 'gst-plugins-ugly-1.0' failed at the build step 'compile'</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">Command Error: Running ['ninja', '-v', '-d', 'keeprsp', '-j8'] returned 1</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">Output in logfile /home/ubuntu/cerbero/build/logs/linux_x86_64/gst-plugins-ugly-1.0-compile.log</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">Select an action to proceed:</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">[0] Enter the shell</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">[1] Rebuild the recipe from scratch</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">[2] Rebuild starting from the failed step</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">[3] Skip recipe</span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">[4] Abort</span></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures"><br></span></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures"><br></span></p></div></body></html>