[FFmpeg-user] ffmpeg > 5.0 refuses to build with x264-static

Reindl Harald h.reindl at thelounge.net
Thu Mar 2 01:24:34 EET 2023



Am 01.03.23 um 23:47 schrieb Reindl Harald:
> Am 01.03.23 um 16:48 schrieb Ferdi Scholten:
>> unchanged nonsense with 6.0.0
>>>
>>> [builduser at testserver:/rpmbuild/SPECS]$ ls 
>>> /rpmbuild/BUILD/ffmpeg-20230301/x264-static/
>>> total 2.6M
>>> drwxr-xr-x 2 builduser builduser   60 2023-03-01 15:44 pkgconfig
>>> -rw-r--r-- 1 builduser builduser 2.6M 2023-03-01 15:44 libx264.a
>>> -rw-r--r-- 1 builduser builduser  48K 2023-03-01 15:44 x264.h
>>> -rw-r--r-- 1 builduser builduser  172 2023-03-01 15:44 x264_config.h
>>>
>>> ERROR: x264 not found using pkg-config
>>>
>> Apparently it looks like the directory containing x264.pc (most likely 
>> in /rpmbuild/BUILD/ffmpeg-20230301/x264-static/pkgconfig) can not be 
>> found
>> either the file is not in there, or the directory is not in your 
>> PKG_CONFIG_PATH environment variable. Simply add the location x264.pc 
>> to this variable and it should work
> and why is this now needed after 10 years?
> 
> i mean what is the problem linking libx264.a static as before when the 
> path is defined in the configure string?

so genius - it's in the PATH and nothing chaned - pretty sure i tried 
that long ago before considering postign here

[builduser at testserver:/rpmbuild/SPECS]$ ls 
/rpmbuild/BUILD/ffmpeg-20230302/x264-static/pkgconfig
total 4.0K
-rw-r--r-- 1 builduser builduser 420 2023-03-02 00:21 x264.pc

+ export 
PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/rpmbuild/BUILD/ffmpeg-20230302/x264-static/pkgconfig
+ 
PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/rpmbuild/BUILD/ffmpeg-20230302/x264-static/pkgconfig
+ mkdir generic
+ pushd generic
~/rpmbuild/BUILD/ffmpeg-20230302/generic ~/rpmbuild/BUILD/ffmpeg-20230302
++ sed s/sandybridge/skylake/g
++ sed s/sandybridge/skylake/g
+ ../configure --prefix=/usr/local --bindir=/usr/local/bin 
--mandir=/usr/local/man 
'--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20230302/x264-static -m64 -O2 
-g0 -march=skylake -mtune=skylake -mno-avx512f -mfpmath=sse -msse2avx 
-ftree-slp-vectorize -fopenmp -pipe -fno-strict-aliasing 
-fomit-frame-pointer -fexceptions -fno-asynchronous-unwind-tables 
-fstack-protector-strong --param=ssp-buffer-size=6 
-Wp,-D_FORTIFY_SOURCE=2 -w -Wformat -Werror=format-security -fPIC -O3 
-mno-avx512f -fno-strict-aliasing -fno-tree-vectorize 
-ftree-slp-vectorize -fno-gcse-after-reload -fno-inline-functions 
-fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops -fno-predictive-commoning 
-fno-tree-loop-distribute-patterns -fno-unswitch-loops -flto=6 
-fwhole-program -w' 
'--extra-ldflags=-I/rpmbuild/BUILD/ffmpeg-20230302/x264-static 
-L/rpmbuild/BUILD/ffmpeg-20230302/x264-static -ldl -Wl,--as-needed 
-Wl,-z,now -Wl,-z,relro -m64 -O2 -g0 -march=skylake -mtune=skylake 
-mno-avx512f -mfpmath=sse -msse2avx -ftree-slp-vectorize -fopenmp -pipe 
-fno-strict-aliasing -fomit-frame-pointer -fexceptions 
-fno-asynchronous-unwind-tables -fstack-protector-strong 
--param=ssp-buffer-size=6 -Wp,-D_FORTIFY_SOURCE=2 -w -Wformat 
-Werror=format-security -fPIC -O3 -mno-avx512f -fno-strict-aliasing 
-fno-tree-vectorize -ftree-slp-vectorize -fno-gcse-after-reload 
-fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops 
-fno-predictive-commoning -fno-tree-loop-distribute-patterns 
-fno-unswitch-loops -flto=6 -fwhole-program -pie -fPIE -w' --ar=gcc-ar 
--ranlib=true --enable-lto --enable-gpl --enable-libmp3lame 
--enable-libtheora --enable-libvpx --enable-libx264 --enable-libx265 
--enable-nonfree --enable-openssl --enable-pic 
--enable-runtime-cpudetect --enable-static --enable-version3 
--disable-amf --disable-appkit --disable-autodetect --disable-avdevice 
--disable-avfoundation --disable-coreimage --disable-debug 
--disable-devices --disable-ffplay --disable-ffprobe --disable-htmlpages 
--disable-hwaccels --disable-iconv --disable-libdc1394 
--disable-libfreetype --disable-libgsm --disable-libopencore-amrnb 
--disable-libopencore-amrwb --disable-libopencv --disable-libopenjpeg 
--disable-libopus --disable-librtmp --disable-libspeex 
--disable-libvorbis --disable-libxcb --disable-libxcb-shape 
--disable-libxcb-shm --disable-libxcb-xfixes --disable-libxvid 
--disable-podpages --disable-postproc --disable-protocol=gopher 
--disable-shared --disable-txtpages --disable-xlib
ERROR: x264 not found using pkg-config


More information about the ffmpeg-user mailing list