Build from source system-wide
Nicolas Dufresne
nicolas at ndufresne.ca
Tue Jun 21 14:05:33 UTC 2022
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/9c13dc84/attachment.htm>
More information about the gstreamer-devel
mailing list