Build from source system-wide

Bill Hofmann bill at theliquidview.com
Tue Jun 21 17:33:07 UTC 2022


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)?

On Tue, Jun 21, 2022 at 7:05 AM Nicolas Dufresne via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:

> Hi,
>
> Le mardi 21 juin 2022 à 01:57 +1000, Steve W via gstreamer-devel a écrit :
>
> Hi all,
>
> I have success building from source using Meson and using it in a
> development environment, as per
> https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c
>
> But does anyone know how to build from source (using Meson) for a
> system-wide installation?
>
>
> 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.
>
> 1. Selecting a prefix during setup
>
>   meson setup --prefix=/usr build/
>
>
> 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.
>
> 2. Installation
>
>   ninja -C build install
>
>
> 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.
>
> regards,
> Nicolas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220621/449d104e/attachment.htm>


More information about the gstreamer-devel mailing list