Opened 8 months ago

Closed 8 months ago

#22839 closed defect (fixed)

libheif FTBFS if the SVT-AV1 encoder is enabled with SVT-AV1-4.x

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 13.0
Component: BOOK Version: git
Severity: medium Keywords:
Cc:

Description

When I build libheif, I normally enable the optional dependencies when it's practical to do so. I had SVT-AV1 installed already because of libavif, so I enabled it for libheif.

I get the following build failure:

FAILED: [code=1] libheif/plugins/CMakeFiles/heif-svtenc.dir/encoder_svt.cc.o

/usr/bin/c++ -DHAVE_BIT -DHAVE_LIBSHARPYUV=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DIS_BIG_ENDIAN=0 -DLIBHEIF_EXPORTS -DPLUGIN_SvtEnc=1 -Dheif_svtenc_EXPORTS -I/sources/libheif-1.21.2/libheif-1.21.2 -I/sources/libheif-1.21.2/libheif-1.21.2/build -I/sources/libheif-1.21.2/libheif-1.21.2/libheif -I/sources/libheif-1.21.2/libheif-1.21.2/libheif/api -I/sources/libheif-1.21.2/libheif-1.21.2/include/libheif -I/sources/libheif-1.21.2/libheif-1.21.2/include -O3 -DNDEBUG -std=c++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -MD -MT libheif/plugins/CMakeFiles/heif-svtenc.dir/encoder_svt.cc.o -MF libheif/plugins/CMakeFiles/heif-svtenc.dir/encoder_svt.cc.o.d -o libheif/plugins/CMakeFiles/heif-svtenc.dir/encoder_svt.cc.o -c /sources/libheif-1.21.2/libheif-1.21.2/libheif/plugins/encoder_svt.cc

/sources/libheif-1.21.2/libheif-1.21.2/libheif/plugins/encoder_svt.cc: In function ‘heif_error svt_start_sequence_encoding_intern(void*, const heif_image*, heif_image_input_class, uint32_t, uint32_t, const heif_sequence_encoding_options*, bool)’:

/sources/libheif-1.21.2/libheif-1.21.2/libheif/plugins/encoder_svt.cc:851:37: error: ‘SvtAv1PredStructure’ has not been declared

851 | svt_config.pred_structure = SvtAv1PredStructure::SVT_AV1_PRED_RANDOM_ACCESS;

|

​https://github.com/strukturag/libheif/pull/1680 fixes the build failure for me, and the tests all pass with two skips like normal.

Change History (2)

comment:1 by Douglas R. Reno, 8 months ago

Owner: changed from blfs-book to Douglas R. Reno
Status: new → assigned

comment:2 by Douglas R. Reno, 8 months ago

Resolution: → fixed
Status: assigned → closed
Note: See TracTickets for help on using tickets.