Skip to content

Commit ec4d769

Browse files
scripts: build_gst: Build rust plugins
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 774e613 commit ec4d769

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/build_gst.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ GST_MESON_OPTIONS_DEFAULT=(
5858
-D orc=disabled
5959
-D python=disabled
6060
-D qt5=disabled
61-
-D rs=disabled
61+
-D rs=enabled
62+
-D gst-plugins-rs:audiofx=disabled
63+
-D gst-plugins-rs:gtk4=disabled
64+
-D gst-plugins-rs:sodium=disabled
65+
-D gst-plugins-rs:inter=enabled
6266
-D rtsp_server=enabled
6367
-D tests=disabled
6468
-D tls=enabled
@@ -229,6 +233,12 @@ apt-get install --assume-yes --no-install-recommends --mark-auto \
229233
"${GST_BUILD_TOOLS[@]}" "${GST_BUILD_LIBS[@]}"
230234
python3 -m pip install --no-cache-dir "${GST_PIP_DEPENDENCIES[@]}"
231235

236+
# Install Rust toolchain (needed for gst-plugins-rs: intersink, intersrc, etc.)
237+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
238+
# shellcheck source=/dev/null
239+
source "$HOME/.cargo/env"
240+
cargo install cargo-c
241+
232242
# Download and install IL headers if needed:
233243
if [ -n "$USERLAND_PATH" ]; then
234244
git clone https://github.com/raspberrypi/userland.git "$USERLAND_PATH" --branch 54fd97ae4066a10b6b02089bc769ceed328737e0 \

0 commit comments

Comments
 (0)