2018-11-25 00:03:29 +00:00
|
|
|
set -eu
|
|
|
|
|
2019-03-15 11:53:54 +00:00
|
|
|
dnf install -y git-core ninja-build dnf-plugins-core
|
2018-11-25 00:03:29 +00:00
|
|
|
|
|
|
|
# Configure git for various usage
|
|
|
|
git config --global user.email "gst-build@gstreamer.net"
|
|
|
|
git config --global user.name "Gstbuild Runner"
|
|
|
|
|
|
|
|
# Add rpm fusion repositories in order to access all of the gst plugins
|
|
|
|
dnf install -y "http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-29.noarch.rpm" \
|
|
|
|
"http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-29.noarch.rpm"
|
|
|
|
|
|
|
|
rpm --import "/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-29"
|
|
|
|
rpm --import "/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-29"
|
|
|
|
dnf upgrade -y
|
|
|
|
|
|
|
|
# Enable the cisco openh264 repo
|
|
|
|
dnf config-manager --set-enabled fedora-cisco-openh264
|
|
|
|
|
|
|
|
# install rest of the extra deps
|
2018-11-29 10:43:55 +00:00
|
|
|
dnf install -y \
|
|
|
|
aom \
|
|
|
|
aom-extra-tools \
|
|
|
|
libaom \
|
|
|
|
libaom-devel \
|
|
|
|
ccache \
|
2018-11-25 00:03:29 +00:00
|
|
|
cmake \
|
|
|
|
elfutils \
|
2018-11-29 10:43:55 +00:00
|
|
|
elfutils-libs \
|
|
|
|
elfutils-devel \
|
2018-11-25 00:03:29 +00:00
|
|
|
gcc \
|
|
|
|
gcc-c++ \
|
|
|
|
gdb \
|
2019-02-01 16:36:28 +00:00
|
|
|
git-lfs \
|
2018-11-25 00:03:29 +00:00
|
|
|
gtk3 \
|
|
|
|
gtk3-devel \
|
2018-11-29 10:43:55 +00:00
|
|
|
graphene \
|
|
|
|
graphene-devel \
|
|
|
|
gsl \
|
|
|
|
gsl-devel \
|
2018-11-25 00:03:29 +00:00
|
|
|
ffmpeg \
|
|
|
|
ffmpeg-libs \
|
|
|
|
ffmpeg-devel \
|
2018-11-29 10:43:55 +00:00
|
|
|
flite \
|
|
|
|
flite-devel \
|
2019-02-25 21:00:02 +00:00
|
|
|
mono-devel \
|
2018-11-25 00:03:29 +00:00
|
|
|
procps-ng \
|
|
|
|
patch \
|
|
|
|
redhat-rpm-config \
|
|
|
|
json-glib \
|
|
|
|
json-glib-devel \
|
|
|
|
libnice \
|
|
|
|
libnice-devel \
|
|
|
|
libunwind \
|
|
|
|
libunwind-devel \
|
2018-11-29 10:43:55 +00:00
|
|
|
neon \
|
|
|
|
neon-devel \
|
2019-02-25 21:00:02 +00:00
|
|
|
nunit \
|
2018-11-25 00:03:29 +00:00
|
|
|
opencv \
|
|
|
|
opencv-devel \
|
|
|
|
openjpeg2 \
|
|
|
|
openjpeg2-devel \
|
|
|
|
openh264 \
|
|
|
|
openh264-devel \
|
2018-11-29 10:43:55 +00:00
|
|
|
SDL2 \
|
|
|
|
SDL2-devel \
|
|
|
|
sbc \
|
|
|
|
sbc-devel \
|
2018-11-25 00:03:29 +00:00
|
|
|
x264 \
|
|
|
|
x264-libs \
|
|
|
|
x264-devel \
|
|
|
|
python3-gobject \
|
|
|
|
python3-cairo \
|
|
|
|
python3-cairo-devel \
|
2019-03-11 12:38:02 +00:00
|
|
|
valgrind \
|
2018-11-25 00:03:29 +00:00
|
|
|
vulkan \
|
|
|
|
vulkan-devel \
|
2018-11-29 10:43:55 +00:00
|
|
|
mesa-omx-drivers \
|
|
|
|
mesa-libGL \
|
|
|
|
mesa-libGL-devel \
|
|
|
|
mesa-libGLU \
|
|
|
|
mesa-libGLU-devel \
|
|
|
|
mesa-libGLES \
|
|
|
|
mesa-libGLES-devel \
|
|
|
|
mesa-libOpenCL \
|
|
|
|
mesa-libOpenCL-devel \
|
|
|
|
mesa-libgbm \
|
|
|
|
mesa-libgbm-devel \
|
|
|
|
mesa-libd3d \
|
|
|
|
mesa-libd3d-devel \
|
|
|
|
mesa-libOSMesa \
|
|
|
|
mesa-libOSMesa-devel \
|
|
|
|
mesa-vulkan-drivers \
|
2018-11-25 00:03:29 +00:00
|
|
|
xorg-x11-server-utils \
|
|
|
|
xorg-x11-server-Xvfb
|
|
|
|
|
2019-03-12 11:48:59 +00:00
|
|
|
# Install common debug symbols
|
|
|
|
dnf debuginfo-install -y gtk3 \
|
|
|
|
glib2 \
|
|
|
|
glibc \
|
|
|
|
freetype \
|
|
|
|
openjpeg \
|
|
|
|
gobject-introspection \
|
|
|
|
python3 \
|
|
|
|
python3-gobject \
|
|
|
|
libjpeg-turbo \
|
|
|
|
glib-networking \
|
|
|
|
libcurl \
|
|
|
|
libsoup \
|
|
|
|
nss \
|
|
|
|
nss-softokn \
|
|
|
|
nss-softokn-freebl \
|
|
|
|
nss-sysinit \
|
|
|
|
nss-util \
|
|
|
|
openssl \
|
|
|
|
openssl-libs \
|
|
|
|
openssl-pkcs11 \
|
|
|
|
brotli \
|
|
|
|
bzip2-libs \
|
|
|
|
gpm-libs \
|
|
|
|
harfbuzz \
|
|
|
|
harfbuzz-icu \
|
|
|
|
json-c \
|
|
|
|
json-glib \
|
|
|
|
libbabeltrace \
|
|
|
|
libffi \
|
|
|
|
libsrtp \
|
|
|
|
libunwind \
|
|
|
|
mpg123-libs \
|
|
|
|
neon \
|
|
|
|
orc-compiler \
|
|
|
|
orc \
|
|
|
|
pixman \
|
|
|
|
pulseaudio-libs \
|
|
|
|
pulseaudio-libs-glib2 \
|
|
|
|
wavpack \
|
|
|
|
webrtc-audio-processing \
|
|
|
|
ffmpeg \
|
|
|
|
ffmpeg-libs \
|
|
|
|
faad2-libs \
|
|
|
|
libavdevice \
|
|
|
|
libmpeg2 \
|
|
|
|
faac \
|
|
|
|
fdk-aac \
|
|
|
|
x264 \
|
|
|
|
x264-libs \
|
|
|
|
x265 \
|
|
|
|
x265-libs \
|
|
|
|
xz \
|
|
|
|
xz-libs \
|
|
|
|
zip \
|
|
|
|
zlib
|
|
|
|
|
2019-03-15 11:55:13 +00:00
|
|
|
pip3 install meson==0.49.2
|
2019-03-15 11:53:54 +00:00
|
|
|
|
2018-11-25 00:03:29 +00:00
|
|
|
# Install the dependencies of gstreamer
|
|
|
|
dnf builddep -y gstreamer1 \
|
|
|
|
gstreamer1-plugins-base \
|
|
|
|
gstreamer1-plugins-good \
|
|
|
|
gstreamer1-plugins-good-extras \
|
|
|
|
gstreamer1-plugins-ugly \
|
|
|
|
gstreamer1-plugins-ugly-free \
|
|
|
|
gstreamer1-plugins-bad-nonfree \
|
|
|
|
gstreamer1-plugins-bad-free \
|
|
|
|
gstreamer1-plugins-bad-free-extras \
|
|
|
|
gstreamer1-plugins-bad-freeworld \
|
|
|
|
gstreamer1-libav \
|
|
|
|
gstreamer1-rtsp-server \
|
|
|
|
gstreamer1-vaapi \
|
2019-03-15 11:53:54 +00:00
|
|
|
python3-gstreamer1 \
|
|
|
|
-x meson
|
2018-11-25 00:03:29 +00:00
|
|
|
|
|
|
|
# Remove gst-devel packages installed by builddep above
|
|
|
|
dnf remove -y "gstreamer1*devel"
|
|
|
|
|
2019-03-22 21:19:59 +00:00
|
|
|
# Remove Qt5 devel packages as we haven't tested building it and
|
|
|
|
# it leads to build issues in examples.
|
|
|
|
dnf remove -y "qt5-qtbase-devel"
|
|
|
|
|
2018-11-25 00:03:29 +00:00
|
|
|
# get gst-build and make all subprojects available
|
|
|
|
git clone git://anongit.freedesktop.org/gstreamer/gst-build /gst-build/
|
2019-03-14 15:19:49 +00:00
|
|
|
cd /gst-build
|
|
|
|
meson subprojects download
|
|
|
|
|