Skip to content

Commit 7fe1496

Browse files
scripts: build_gst: Install Rust and cargo-c
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 27b02be commit 7fe1496

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/build_gst.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ apt-get install --assume-yes --no-install-recommends --mark-auto \
231231
"${GST_BUILD_TOOLS[@]}" "${GST_BUILD_LIBS[@]}"
232232
python3 -m pip install --no-cache-dir "${GST_PIP_DEPENDENCIES[@]}"
233233

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

0 commit comments

Comments
 (0)