Build from source system-wide
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Jun 22 14:20:52 UTC 2022
Le mardi 21 juin 2022 à 10:33 -0700, Bill Hofmann a écrit :
> 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)?
If you target a specific distro, best is to pick the distro scripts to generate
a proper package. If you just want a quick solution:
DESTDIR=~/gstreamer-master-2022-06-21 ninja -C builld install
tar -C ~/gstreamer-master-2022-06-21 -czf gstreamer-master-2022-06-21.tar.gz .
Or some variation ;-D
>
> 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-fr
> > > om-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
More information about the gstreamer-devel
mailing list