strukturag / libheif

libheif is an HEIF and AVIF file format decoder and encoder.
Other
1.76k stars 304 forks source link

Unable to build current "master" branch #1229

Closed SchweinDeBurg closed 4 months ago

SchweinDeBurg commented 4 months ago

Using GCC 9.3 and just got the folloving errors:

[73/81] Linking CXX executable tests/encode
FAILED: tests/encode 
: && /usr/bin/g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=native -mtune=native -fasynchronous-unwind-tables -mno-aes  -w -O2 -g -DNDEBUG  tests/CMakeFiles/encode.dir/main.cc.o tests/CMakeFiles/encode.dir/__/generated/test-config.cc.o tests/CMakeFiles/encode.dir/test_utils.cc.o tests/CMakeFiles/encode.dir/encode.cc.o -o tests/encode  -Wl,-rpath,/home/elijah/.local/rpmbuild/BUILD/libheif/x86_64-redhat-linux-gnu/libheif  libheif/libheif.so.1.18.0 && :
/usr/bin/ld: libheif/libheif.so.1.18.0: undefined reference to `typeinfo for Box_cmpC'
/usr/bin/ld: libheif/libheif.so.1.18.0: undefined reference to `typeinfo for Box_icbr'
farindk commented 4 months ago

Currently fixing it. Enable WITH_UNCOMPRESSED_CODEC to make it compile.