-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpipewire-new
More file actions
228 lines (185 loc) · 7.38 KB
/
Copy pathpipewire-new
File metadata and controls
228 lines (185 loc) · 7.38 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# System-Abhängigkeiten holen Raspberry Pi 5
sudo apt build-dep pipewire wireplumber -y
# Pfade und RAM-Optimierung setzen
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
mkdir -p /home/spook/tmp
export TMPDIR=/home/spook/tmp
# Bereinigung alter Verzeichnisse
rm -rf pipewire
# Compiler-Flags für Raspberry Pi 5 (Cortex-A76)
export OPT_FLAGS="-mcpu=cortex-a76+crypto -O3 -pipe -ftree-vectorize -flto -Wno-stringop-overflow -ffast-math -funsafe-math-optimizations"
# Klonen, Konfigurieren mit RT, FFmpeg & libcamera, Kompilieren und Installieren
apt source pipewire && cd pipewire-1.4.2/ && \
meson setup builddir --buildtype=release -Dprefix=/usr \
-Dc_args="$OPT_FLAGS" \
-Dcpp_args="$OPT_FLAGS" \
-Dexamples=disabled -Dtests=disabled -Ddocs=disabled -Dman=disabled \
-Drlimits-install=true \
-Drlimits-match='@pipewire' \
-Drtprio-server=88 \
-Drtprio-client=83 \
-Drlimits-rtprio=95 \
-Drlimits-memlock='4194304' \
-Drlimits-nice=-19 \
-Dffmpeg=enabled \
-Dpw-cat-ffmpeg=enabled \
-Dlibcamera=enabled -Dauto_features=enabled -Dbluez5-codec-lc3plus=disabled -Dsession-managers=libsystemd && \
ninja -C builddir -j 2 && \
sudo ninja -C builddir install && cd ..
wirepluber
sudo apt build-dep wireplumber
apt source wireplumber && cd wireplumber-0.5.8/
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
export TMPDIR=/home/spook/tmp
export OPT_FLAGS="-mcpu=cortex-a76+crypto -O3 -pipe -ftree-vectorize -flto -Wno-stringop-overflow -ffast-math -funsafe-math-optimizations"
# Konfigurieren (jetzt mit -Dtests=false), Kompilieren und Installieren
meson setup builddir --buildtype=release -Dprefix=/usr -Dintrospection=disabled \
-Dc_args="$OPT_FLAGS" \
-Dcpp_args="$OPT_FLAGS" \
-Dintrospection=disabled -Ddoc=disabled -Dtests=false && \
ninja -C builddir -j 2 && \
sudo ninja -C builddir install && cd ..
#############################################
# System-Abhängigkeiten holen Raspberry Pi 4
sudo apt build-dep pipewire wireplumber -y
# Pfade und RAM-Optimierung setzen
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
mkdir -p /home/spook/tmp
export TMPDIR=/home/spook/tmp
# Bereinigung alter Verzeichnisse
rm -rf pipewire
# Compiler-Flags für Raspberry Pi 4 (Cortex-A72)
export OPT_FLAGS="-mcpu=cortex-a72+crypto -O3 -pipe -ftree-vectorize -flto -Wno-stringop-overflow -ffast-math -funsafe-math-optimizations"
# Klonen, Konfigurieren mit RT, FFmpeg & libcamera, Kompilieren und Installieren
apt source pipewire && cd pipewire-1.4.2/ && \
meson setup builddir --buildtype=release -Dprefix=/usr \
-Dc_args="$OPT_FLAGS" \
-Dcpp_args="$OPT_FLAGS" \
-Dexamples=disabled -Dtests=disabled -Ddocs=disabled -Dman=disabled \
-Drlimits-install=true \
-Drlimits-match='@pipewire' \
-Drtprio-server=88 \
-Drtprio-client=83 \
-Drlimits-rtprio=95 \
-Drlimits-memlock='4194304' \
-Drlimits-nice=-19 \
-Dffmpeg=enabled \
-Dpw-cat-ffmpeg=enabled \
-Dlibcamera=enabled -Dauto_features=enabled -Dbluez5-codec-lc3plus=disabled -Dsession-managers=libsystemd && \ninja -C builddir -j 2 && \
sudo ninja -C builddir install && cd ..
sudo apt build-dep wireplumber
apt source wireplumber && cd wireplumber-0.5.8
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
export TMPDIR=/home/spook/tmp
export OPT_FLAGS="-mcpu=cortex-a72+crypto -O3 -pipe -ftree-vectorize -flto -Wno-stringop-overflow -ffast-math -funsafe-math-optimizations"
# Konfigurieren (jetzt mit -Dtests=false), Kompilieren und Installieren
meson setup builddir --buildtype=release -Dprefix=/usr -Dintrospection=disabled \
-Dc_args="$OPT_FLAGS" \
-Dcpp_args="$OPT_FLAGS" \
-Dintrospection=disabled -Ddoc=disabled -Dtests=false && \
ninja -C builddir -j 2 && \
sudo ninja -C builddir install && cd ..
###############################################################
### RPI3 pipewire
#!/bin/bash
# 1. System-Abhängigkeiten holen
sudo apt build-dep pipewire wireplumber -y
# 2. 32-Bit Pfade und RAM-Optimierung setzen
export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig:$PKG_CONFIG_PATH
mkdir -p /home/spook/tmp
export TMPDIR=/home/spook/tmp
# 3. Bereinigung alter Verzeichnisse
rm -rf pipewire*
# 4. Compiler-Filter einrichten (Deaktiviert armv6-Injektion des Systems)
mkdir -p /home/spook/bin
export PATH=/home/spook/bin:$PATH
cat << 'EOF' > /home/spook/bin/gcc
#!/bin/bash
args=("$@")
new_args=()
for arg in "${args[@]}"; do
if [[ "$arg" != "-march=armv6+fp" ]]; then
new_args+=("$arg")
fi
done
exec /usr/bin/gcc "${new_args[@]}"
EOF
cat << 'EOF' > /home/spook/bin/g++
#!/bin/bash
args=("$@")
new_args=()
for arg in "${args[@]}"; do
if [[ "$arg" != "-march=armv6+fp" ]]; then
new_args+=("$arg")
fi
done
exec /usr/bin/g++ "${new_args[@]}"
EOF
chmod +x /home/spook/bin/gcc /home/spook/bin/g++
# 5. Korrigierte Compiler-Flags für Raspberry Pi 3 (Cortex-A53 32-Bit)
export CFLAGS="-march=armv8-a+crc+crypto -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -O3 -ftree-vectorize -Wno-stringop-overflow -ffast-math -funsafe-math-optimizations -pipe"
export CXXFLAGS="$CFLAGS"
# 6. Source holen, konfigurieren, kompilieren und installieren
apt source pipewire && cd pipewire-*/ && \
meson setup builddir --buildtype=release -Dprefix=/usr \
-Dexamples=disabled -Dtests=disabled -Ddocs=disabled -Dman=disabled \
-Drlimits-install=true \
-Drlimits-match='@pipewire' \
-Drtprio-server=88 \
-Drtprio-client=83 \
-Drlimits-rtprio=95 \
-Drlimits-memlock='4194304' \
-Drlimits-nice=-19 \
-Dffmpeg=enabled \
-Dpw-cat-ffmpeg=enabled \
-Dlibcamera=enabled -Dauto_features=enabled -Dbluez5-codec-lc3plus=disabled -Dsession-managers=libsystemd && \ninja -C builddir -j 2 && \
sudo ninja -C builddir install && cd ..
############################################################################
### RPI 3 wireplumber
#!/bin/bash
# 1. System-Abhängigkeiten holen
sudo apt build-dep wireplumber -y
# 2. 32-Bit Pfade und RAM-Optimierung setzen
export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig:$PKG_CONFIG_PATH
mkdir -p /home/spook/tmp
export TMPDIR=/home/spook/tmp
# 3. Bereinigung alter Verzeichnisse
rm -rf wireplumber*
# 4. Compiler-Filter einrichten (Deaktiviert armv6-Injektion des Systems)
mkdir -p /home/spook/bin
export PATH=/home/spook/bin:$PATH
cat << 'EOF' > /home/spook/bin/gcc
#!/bin/bash
args=("$@")
new_args=()
for arg in "${args[@]}"; do
if [[ "$arg" != "-march=armv6+fp" ]]; then
new_args+=("$arg")
fi
done
exec /usr/bin/gcc "${new_args[@]}"
EOF
cat << 'EOF' > /home/spook/bin/g++
#!/bin/bash
args=("$@")
new_args=()
for arg in "${args[@]}"; do
if [[ "$arg" != "-march=armv6+fp" ]]; then
new_args+=("$arg")
fi
done
exec /usr/bin/g++ "${new_args[@]}"
EOF
chmod +x /home/spook/bin/gcc /home/spook/bin/g++
# 5. Korrigierte Compiler-Flags für Raspberry Pi 3 (Cortex-A53 32-Bit)
export CFLAGS="-march=armv8-a+crc+crypto -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -O3 -ftree-vectorize -Wno-stringop-overflow -ffast-math -funsafe-math-optimizations -pipe"
export CXXFLAGS="$CFLAGS"
# 6. Source holen, konfigurieren, kompilieren und installieren
apt source wireplumber && cd wireplumber-*/ && \
meson setup builddir --buildtype=release -Dprefix=/usr -Dintrospection=disabled && \
ninja -C builddir -j 2 && \
sudo ninja -C builddir install && cd ..
# 7. Benutzer-Daemons neu laden und Dienste restarten
systemctl --user daemon-reload
systemctl --user restart pipewire wireplumber
###############################