<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Yes, a very helpful FAQ! Following on from that, are there easy/straightforward ways to bundle the build so that it can be installed on another system (via, e.g., a .deb package, or whatever)?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 21, 2022 at 7:05 AM Nicolas Dufresne via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>Hi,</div><div><br></div><div>Le mardi 21 juin 2022 à 01:57 +1000, Steve W via gstreamer-devel a écrit :</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div name="messageBodySection"><div dir="auto">Hi all,<br><br>I have success building from source using Meson and using it in a development environment, as per <a href="https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c" target="_blank">https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c</a><br><br>But does anyone know how to build from source (using Meson) for a system-wide installation?</div></div></blockquote><div><br></div><div>I don't know if it was you asking on the IRC channel, but I think its generally nice question. For system wide installation, there is two steps you need to modify.</div><div><br></div><div>1. Selecting a prefix during setup</div><div><br></div><pre> meson setup --prefix=/usr build/</pre><div><br></div><div>This will determin where the files are to be deployed, and will adjust the path that are compiled in the binary according to that final installation. By default, it will be /usr/local. Meson is smart and will adapt correctly the path according to the detect host OS particularity. Like the /usr/lib64 on Fedora/Redhat, or the more complex multilib pattern on Debian/Ubuntu. You can always use --libdir to keep control.</div><div><br></div><div>2. Installation</div><div><br></div><pre> ninja -C build install</pre><div><br></div><div>A special target is created for the installation, you may require to use sudo. You can set the DESTDIR env to install to a tempory location, if you want to.</div><div><br></div><div>regards,</div><div>Nicolas</div><div><span></span></div></div>
</blockquote></div>