-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_gstreamer.sh
More file actions
100 lines (81 loc) · 3.34 KB
/
Copy pathinstall_gstreamer.sh
File metadata and controls
100 lines (81 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash
VERSION=1.20.1
ENVPATH=/home/pi/Ubiquo/env
mkdir gstreamer-$VERSION
cd gstreamer-$VERSION
wget wget https://gitlab.freedesktop.org/libnice/libnice/-/archive/0.1.18/libnice-0.1.18.tar
wget https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$VERSION.tar.xz
wget https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$VERSION.tar.xz
wget https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$VERSION.tar.xz
wget https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-$VERSION.tar.xz
wget https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-$VERSION.tar.xz
wget https://gstreamer.freedesktop.org/src/gst-omx/gst-omx-$VERSION.tar.xz
wget https://gstreamer.freedesktop.org/src/gst-python/gst-python-$VERSION.tar.xz
for a in `ls -1 *.tar*`; do tar -xf $a; done
sudo apt-get install build-essential cmake meson flex bison \
libglib2.0-dev mesa-utils libgtk2.0-dev libx264-dev libx264-dev \
python-gi-dev libgirepository1.0-dev libcairo2-dev python3-gst-1.0 autoconf \
libopus-dev gtk-doc-tools libtool libsrtp2-dev openssl libssl-dev \
alsa-utils alsa-utils libalsa-ocaml libasound2-dev libatlas-base-dev \
libjson-glib-dev libegl-dev libvpx-dev libgudev-1.0-dev libusb-1.0-0-dev -y
pip3 install meson pycairo PyGObject smbus2 websockets pyserial
cd gstreamer-$VERSION
mkdir build && cd build
meson --prefix=/usr \
--buildtype=release \
-Dgst_debug=false \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer 1.20.1 BLFS" &&
ninja && sudo ninja install && sudo ldconfig
cd ../../
cd gst-plugins-base-$VERSION
mkdir build && cd build
meson --prefix=/usr \
--buildtype=release \
-Dgl=disabled \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer 1.20.1 BLFS" \
--wrap-mode=nodownload &&
ninja && sudo ninja install && sudo ldconfig
cd ../../
cd libnice-0.1.18
mkdir build && cd build
meson --prefix=/usr
ninja && sudo ninja install && sudo ldconfig
cd ../../
cd gst-plugins-good-$VERSION
mkdir build && cd build
meson --prefix=/usr \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer 1.20.1 BLFS"
ninja && sudo ninja install && sudo ldconfig
cd ../../
cd gst-plugins-bad-$VERSION
mkdir build && cd build
meson --prefix=/usr \
-Duvch264=enabled \
--buildtype=release \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer 1.20.1 BLFS"
ninja && sudo ninja install && sudo ldconfig
cd ../../
cd gst-plugins-ugly-$VERSION
mkdir build && cd build
meson --prefix=/usr \
--buildtype=release \
-Dgpl=enabled \
-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/svn/ \
-Dpackage-name="GStreamer 1.20.1 BLFS"
ninja && sudo ninja install && sudo ldconfig
cd ../../
cd gst-omx-$VERSION
mkdir build && cd build
meson --prefix=/usr -D target=rpi -D header_path=/opt/vc/include/IL
ninja && sudo ninja install && sudo ldconfig
cd ../../
cd gst-python-$VERSION
mkdir build && cd build
meson --prefix=$ENVPATH -Dbuildtype=release -Dlibpython-dir=/usr/lib/arm-linux-gnueabihf ..
ninja && sudo ninja install && sudo ldconfig
cd ../../