Fix svt_av1 undefined symbol
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: libheif
|
name: libheif
|
||||||
description: HEIF and AVIF file format decoder and encoder
|
description: HEIF and AVIF file format decoder and encoder
|
||||||
version: 1.20.2
|
version: 1.20.2
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://github.com/strukturag/libheif
|
url: https://github.com/strukturag/libheif
|
||||||
license: LGPL3-or-later
|
license: LGPL3-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -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)
|
||||||
@@ -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 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
|
# 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
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
@@ -13,7 +20,8 @@ build() {
|
|||||||
-DWITH_FFMPEG_DECODER_PLUGIN=ON \
|
-DWITH_FFMPEG_DECODER_PLUGIN=ON \
|
||||||
-DWITH_SvtEnc=ON \
|
-DWITH_SvtEnc=ON \
|
||||||
-DWITH_OpenJPEG_DECODER=ON \
|
-DWITH_OpenJPEG_DECODER=ON \
|
||||||
-DWITH_GDK_PIXBUF=OFF
|
-DWITH_GDK_PIXBUF=OFF \
|
||||||
|
-DWITH_EXAMPLE_HEIF_THUMB=OFF
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user