﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
22839	libheif FTBFS if the SVT-AV1 encoder is enabled with SVT-AV1-4.x	Douglas R. Reno	Douglas R. Reno	"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."	defect	closed	normal	13.0	BOOK	git	medium	fixed		
