uavs3 / uavs3e

AVS3 encoder which supports AVS3-P2 baseline profile.
Other
135 stars 62 forks source link

Build error #19

Closed dbermond closed 3 years ago

dbermond commented 3 years ago

I'm getting the following build error:

[100%] Linking C executable uavs3enc
/usr/bin/ld: src/libuavs3e.so: undefined reference to `min'
/usr/bin/ld: src/libuavs3e.so: undefined reference to `max'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/uavs3enc.dir/build.make:104: uavs3enc] Error 1
make[2]: Leaving directory '/build/uavs3e-git/src/uavs3e/build/linux'
make[1]: *** [CMakeFiles/Makefile2:115: CMakeFiles/uavs3enc.dir/all] Error 2
make[1]: Leaving directory '/build/uavs3e-git/src/uavs3e/build/linux'
make: *** [Makefile:149: all] Error 2
make: Leaving directory '/build/uavs3e-git/src/uavs3e/build/linux'

A git bisect shows that is caused by commit 218528c36d942b87021e0235e9e8b11bddd209fb.

I can confirm that it was building fine until commit 457b5c9fa9e491be63104461c2c5d8908df373f5.

System information:

OS: Arch Linux x86_64 Compiler: gcc 10.2.0 CMake: 3.19.2 glibc: 2.32

dbermond commented 3 years ago

I can confirm that this issue was fixed by commit https://github.com/uavs3/uavs3e/commit/2af374fc682c0cd869c5f141a481e2c243b275d3.

Thank you for fixing this. Closing.