<html><head>
<title></title>
</head>
<body><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:0 0 0 .8ex; border-left:2px #729fcf solid;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></body></html>