makepad/tools/linux_deps.sh
Jason Yau 947f815181
Video playback fixes and improvements (#1155)
* android oes video zero-copy and gles shader fixes

* regenerate windows-rs by windows-strip

* fix windows video freezes with MF on an MTA worker

* regenerate windows-rs by windows-strip

* MTA MF video, COM notify, YUV texture reuse

* add local video file playback support to video-player example

* NV12 Metal present, seek warm-up gate, YUV full range

* fix Linux GStreamer video: A/V mute, HLS prepare, async teardown

* no-op SelectVideoTrack/SelectAudioTrack on non-Linux backends

* Linux ALSA/Pulse: bigger buffers, fix resample setup, report device rate

* fix some warnings

* Move XInput/DirectInput device discovery off the UI thread

* fix GLSL unpack4u8 for GLES 3.0 (#version 300 es)

* Linux GStreamer: DMA-Buf NV12 OES zero-copy, optional GLMemory path

* Linux MediaPlugin: DMA-Buf NV12 and GLMemory zero-copy present APIs

* Add Windows SourceReader DXGI NV12 zero-copy video path

* fix build error

* fix GLES: add highp precision for sampler2DArray in Linux shaders

* playback speed support for android

---------

Co-authored-by: jasonqiu <jasonqiuchen@outlook.com>
Co-authored-by: jasonqiu <jasonqiu@futunn.com>
2026-08-10 12:29:33 +02:00

58 lines
1.3 KiB
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
if [[ "${EUID}" -eq 0 ]]; then
SUDO=""
else
SUDO="sudo"
fi
# Linux build/runtime deps for Makepad on Ubuntu/WSL2:
# - X11 backend
# - Wayland backend
# - OpenGL/EGL
# - Audio (ALSA + PulseAudio)
# - TLS for HTTP(S)/WSS (OpenSSL)
# - GStreamer video/audio playback (HLS/DASH needs good+bad+libav)
${SUDO} apt-get update
${SUDO} apt-get install -y --no-install-recommends \
build-essential \
pkg-config \
clang \
ca-certificates \
libssl-dev \
libx11-dev \
libxcursor-dev \
libxkbcommon-dev \
libxrandr-dev \
libxi-dev \
libxinerama-dev \
libasound2-dev \
libpulse-dev \
libwayland-dev \
wayland-protocols \
libegl1-mesa-dev \
libgl1-mesa-dev \
libgles2-mesa-dev \
libglx-dev \
libdrm-dev \
libgbm-dev \
libgl1-mesa-dri \
mesa-vulkan-drivers \
mesa-utils \
mesa-utils-extra \
x11-apps \
gstreamer1.0-tools \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-gl \
gstreamer1.0-alsa \
gstreamer1.0-pipewire \
libgstreamer1.0-0 \
libgstreamer-plugins-base1.0-0 \
libgstreamer-gl1.0-0
echo "Makepad Linux dependencies installed."