Build libdav1d for L4T Bionic packages
This commit is contained in:
@@ -17,6 +17,7 @@ RUN /bin/bash -c /opt/scripts/install-base-deps.sh && \
|
|||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY dav1d /opt/dav1d
|
||||||
COPY FFmpeg-l4t /opt/FFmpeg
|
COPY FFmpeg-l4t /opt/FFmpeg
|
||||||
COPY SDL2 /opt/SDL2
|
COPY SDL2 /opt/SDL2
|
||||||
COPY SDL_ttf /opt/SDL_ttf
|
COPY SDL_ttf /opt/SDL_ttf
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
BASE_FFMPEG_ARGS="--enable-pic --enable-static --disable-shared --disable-all --disable-vulkan --enable-avcodec --enable-swscale --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=av1 --enable-libdrm --enable-decoder=h264_v4l2m2m --enable-decoder=hevc_v4l2m2m --extra-cflags=-I/usr/include/libdrm"
|
BASE_FFMPEG_ARGS="--enable-pic --enable-static --disable-shared --disable-all --disable-vulkan --enable-avcodec --enable-swscale --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=av1 --enable-libdav1d --enable-decoder=libdav1d --enable-libdrm --enable-decoder=h264_v4l2m2m --enable-decoder=hevc_v4l2m2m --extra-cflags=-I/usr/include/libdrm"
|
||||||
|
|
||||||
echo "Building dependencies for $TARGET"
|
echo "Building dependencies for $TARGET"
|
||||||
if [ "$TARGET" == "rpi" ] || [ "$TARGET" == "rpi64" ]; then
|
if [ "$TARGET" == "rpi" ] || [ "$TARGET" == "rpi64" ]; then
|
||||||
@@ -66,17 +66,11 @@ sed -i 's/-lSDL2_ttf/-lSDL2_ttf -lfreetype/g' SDL2_ttf.pc
|
|||||||
cat SDL2_ttf.pc
|
cat SDL2_ttf.pc
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# FFmpeg-l4t is too old to support dav1d 1.2.1
|
# Build and install libdav1d
|
||||||
if [ "$TARGET" != "l4t" ] || [ "$DISTRO" != "bionic" ]; then
|
cd /opt/dav1d
|
||||||
# Build and install libdav1d
|
meson setup build -Ddefault_library=static -Dbuildtype=debugoptimized -Denable_tools=false -Denable_tests=false
|
||||||
cd /opt/dav1d
|
ninja -C build
|
||||||
meson setup build -Ddefault_library=static -Dbuildtype=debugoptimized -Denable_tools=false -Denable_tests=false
|
ninja install -C build
|
||||||
ninja -C build
|
|
||||||
ninja install -C build
|
|
||||||
|
|
||||||
# Enable libdav1d during FFmpeg build
|
|
||||||
DAV1D_FFMPEG_ARGS="--enable-libdav1d --enable-decoder=libdav1d"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd /opt/FFmpeg
|
cd /opt/FFmpeg
|
||||||
./configure $BASE_FFMPEG_ARGS $EXTRA_FFMPEG_ARGS $DAV1D_FFMPEG_ARGS
|
./configure $BASE_FFMPEG_ARGS $EXTRA_FFMPEG_ARGS $DAV1D_FFMPEG_ARGS
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ set -e
|
|||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y curl g++ make ninja-build meson devscripts fakeroot debhelper git nasm libgbm-dev libdrm-dev libasound2-dev libdbus-1-dev libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libibus-1.0-dev libpulse-dev libudev-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev cmake
|
apt-get install -y curl g++ make ninja-build devscripts fakeroot debhelper git nasm libgbm-dev libdrm-dev libasound2-dev libdbus-1-dev libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libibus-1.0-dev libpulse-dev libudev-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev cmake
|
||||||
apt-get install -y --no-install-recommends libssl-dev qtbase5-dev qtquickcontrols2-5-dev qtdeclarative5-dev libqt5svg5-dev libopus-dev
|
apt-get install -y --no-install-recommends libssl-dev qtbase5-dev qtquickcontrols2-5-dev qtdeclarative5-dev libqt5svg5-dev libopus-dev
|
||||||
|
|
||||||
if [ "$DISTRO" != "buster" ] && [ "$DISTRO" != "bionic" ]; then
|
if [ "$DISTRO" != "buster" ] && [ "$DISTRO" != "bionic" ]; then
|
||||||
@@ -12,9 +12,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DISTRO" != "bionic" ]; then
|
if [ "$DISTRO" != "bionic" ]; then
|
||||||
apt-get install -y libgl-dev
|
apt-get install -y libgl-dev meson
|
||||||
else
|
else
|
||||||
apt-get install -y libgl1-mesa-dev
|
apt-get install -y libgl1-mesa-dev python3-pip
|
||||||
|
pip3 install meson==0.61.5 # Last version compatible with Python 3.6 on Bionic
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DISTRO" != "buster" ] && [ "$DISTRO" != "bullseye" ] && [ "$DISTRO" != "bionic" ]; then
|
if [ "$DISTRO" != "buster" ] && [ "$DISTRO" != "bullseye" ] && [ "$DISTRO" != "bionic" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user