<html><head></head><body><div class="ydp46b32620yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div><br></div><div dir="ltr" data-setdir="false"><h2 id="ydp7588f453yiv7202207353ydpb67c06abGetSource1">Get Source</h2>
<ol><li>get source: git clone <a shape="rect" href="https://gitlab.freedesktop.org/gstreamer/gstreamer.git" class="ydp7588f453yiv7202207353ydpb67c06abext-link" rel="nofollow" target="_blank"><span class="ydp7588f453yiv7202207353ydpb67c06abicon">​</span>https://gitlab.freedesktop.org/gstreamer/gstreamer.git</a>
</li><li>git tag -l <==== to list all tags
</li><li>git checkout tags/1.22.5 <==== for example
</li></ol><h2 id="ydp7588f453yiv7202207353ydpb67c06abBuildandinstall1">Build and install</h2>
<ol dir="ltr"><li>cd gstreamer
</li><li>meson setup --prefix=/opt/thirdParties/gstreamer1-22-2 -Dlibdir=lib builddir
</li><li>ninja -C builddir
</li><li>sudo ninja install -C builddir
</li></ol><div><br clear="none"></div><div><br clear="none"></div><div dir="ltr">Do not build into default places. Otherwise, you may have hard time to clean it up if you want to remove it or change it.</div><div>Set the proper path for your own use after it is installed. <br></div><div><br></div><div dir="ltr" data-setdir="false">meson version may not be compatible. If not, get meson source code and build a new one to use.<br></div></div>
        
        </div><div id="yahoo_quoted_2609988748" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Thursday, August 10, 2023, 01:45:32 p.m. EDT, GST Developer via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv3585051197"><div>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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">[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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">FAILED: ext/x264/libgstx264.so </span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">/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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">/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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">/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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">collect2: error: ld returned 1 exit status</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">[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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">ninja: build stopped: subcommand failed.</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;min-height:15px;"><span style=""></span><br></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;min-height:15px;"><span style=""></span><br></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">Recipe 'gst-plugins-ugly-1.0' failed at the build step 'compile'</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">Command Error: Running ['ninja', '-v', '-d', 'keeprsp', '-j8'] returned 1</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">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-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">Select an action to proceed:</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">[0] Enter the shell</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">[1] Rebuild the recipe from scratch</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">[2] Rebuild starting from the failed step</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">[3] Skip recipe</span></p>
<p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style="">[4] Abort</span></p><p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style=""><br></span></p><p style="margin:0px;font-style:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;font-size-adjust:none;"><span style=""><br></span></p></div></div></div></div>
            </div>
        </div></body></html>