ffmpeg-build-script icon indicating copy to clipboard operation
ffmpeg-build-script copied to clipboard

x265 issue on Debian 11 / ffmpeg configure fails / not linking against libnuma

Open Stefan-Olt opened this issue 3 years ago • 1 comments
trafficstars

Hello, x265 builds, but configure of ffmpeg shows ERROR: x265 not found using pkg-config I looked into the ffbuild/config.log at it seems to have not been linked against libnuma (libnuma is installed on the system):

threadpool.cpp:(.text+0x962): undefined reference to `numa_available'
/usr/bin/ld: threadpool.cpp:(.text+0xecb): undefined reference to `numa_allocate_cpumask'
/usr/bin/ld: threadpool.cpp:(.text+0xef4): undefined reference to `numa_bitmask_weight'
/usr/bin/ld: threadpool.cpp:(.text+0xf0c): undefined reference to `numa_node_to_cpus'
/usr/bin/ld: threadpool.cpp:(.text+0xf3c): undefined reference to `numa_bitmask_free'
/usr/bin/ld: threadpool.cpp:(.text+0x11ad): undefined reference to `numa_available'
/usr/bin/ld: threadpool.cpp:(.text+0x120b): undefined reference to `numa_allocate_cpumask'
/usr/bin/ld: threadpool.cpp:(.text+0x121f): undefined reference to `numa_bitmask_free'

I was able to fix that by adding -lnuma to EXTRALIBS, but I'm not sure if that's a good idea in general and won't cause issues on other systems. Best regards Stefan

Stefan-Olt avatar Mar 29 '22 19:03 Stefan-Olt

With the script I downloaded on 2022-0806, it also shows x265 error, but the config.log shows it's the '-lnuma' problem. Since the numa library is written in 'go', it's too troublesome for me to integrate it into the script to build from source. I just $ sudo apt install libnuma-dev to get it compiled.

Oh, my system is xUbuntu 22.04.1 LTS. $ ./build-ffmpeg --build --enable-gpl-and-non-free

AlamyLiu avatar Aug 06 '22 20:08 AlamyLiu