Fix svt_av1 undefined symbol

This commit is contained in:
2025-12-15 14:56:20 +02:00
parent b3ba755574
commit 0a2d138f99
3 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: libheif
description: HEIF and AVIF file format decoder and encoder
version: 1.20.2
revision: 1
revision: 2
url: https://github.com/strukturag/libheif
license: LGPL3-or-later
architecture: any
+22
View File
@@ -0,0 +1,22 @@
From 6c3fb973c5d9f954899839f6f4aaa6a173cab098 Mon Sep 17 00:00:00 2001
From: Joachim Bauch <[email protected]>
Date: Mon, 28 Jul 2025 09:21:22 +0200
Subject: [PATCH] Fix undefined symbol "Error::Ok" in svtenc plugin.
---
libheif/plugins/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libheif/plugins/CMakeLists.txt b/libheif/plugins/CMakeLists.txt
index f7379c09da..643f413a1c 100644
--- a/libheif/plugins/CMakeLists.txt
+++ b/libheif/plugins/CMakeLists.txt
@@ -66,7 +66,7 @@ set(AOM_ENCODER_extra_plugin_sources ../error.cc ../common_utils.cc ../common_ut
plugin_compilation(aomenc AOM AOM_ENCODER_FOUND AOM_ENCODER AOM_ENCODER)
set(SvtEnc_sources encoder_svt.cc encoder_svt.h)
-set(SvtEnc_extra_plugin_sources ../common_utils.cc ../common_utils.h)
+set(SvtEnc_extra_plugin_sources ../error.cc ../common_utils.cc ../common_utils.h)
plugin_compilation(svtenc SvtEnc SvtEnc_FOUND SvtEnc SvtEnc)
set(RAV1E_sources encoder_rav1e.cc encoder_rav1e.h)
+9 -1
View File
@@ -2,6 +2,13 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
# The prepare function is executed in the root of the temp directory
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/svt-av1-fix.patch
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
@@ -13,7 +20,8 @@ build() {
-DWITH_FFMPEG_DECODER_PLUGIN=ON \
-DWITH_SvtEnc=ON \
-DWITH_OpenJPEG_DECODER=ON \
-DWITH_GDK_PIXBUF=OFF
-DWITH_GDK_PIXBUF=OFF \
-DWITH_EXAMPLE_HEIF_THUMB=OFF
cmake --build build
}