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

Reindl Harald h.reindl at thelounge.net
Wed Sep 7 13:08:27 EEST 2022


ffmpeg 5.1 refuses to build with x264-static, 5.0 built as all the years 
before, it's supposed to link the "libx264.a" which is built at stage 1 
of the rpm-sepc

--extra-cflags and --extra-ldflags pointing to the directory and i don't 
get what pkg-config has to do here at all for static linking

ERROR: x264 not found using pkg-config

make install
install -d /rpmbuild/BUILD/ffmpeg-20220907/x264-static 
/rpmbuild/BUILD/ffmpeg-20220907/x264-static/pkgconfig
install -m 644 ./x264.h x264_config.h 
/rpmbuild/BUILD/ffmpeg-20220907/x264-static
install -m 644 x264.pc /rpmbuild/BUILD/ffmpeg-20220907/x264-static/pkgconfig
install -d /rpmbuild/BUILD/ffmpeg-20220907/x264-static
install -m 644 libx264.a /rpmbuild/BUILD/ffmpeg-20220907/x264-static
gcc-ranlib /rpmbuild/BUILD/ffmpeg-20220907/x264-static/libx264.a
strip --strip-unneeded --strip-debug 
/rpmbuild/BUILD/ffmpeg-20220907/x264-static/libx264.a

../configure --prefix=/usr/local --bindir=/usr/local/bin 
--mandir=/usr/local/man 
'--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20220907/x264-static -m64 -O2 
-g0 -march=sandybridge -mtune=sandybridge -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=8 
-fwhole-program -w' 
'--extra-ldflags=-I/rpmbuild/BUILD/ffmpeg-20220907/x264-static 
-L/rpmbuild/BUILD/ffmpeg-20220907/x264-static -ldl -Wl,--as-needed 
-Wl,-z,now -Wl,-z,relro -m64 -O2 -g0 -march=sandybridge 
-mtune=sandybridge -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=8 
-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

-------------------------

[builduser at buildserver:~/BUILD/ffmpeg-20220907]$ ls -R 
/rpmbuild/BUILD/ffmpeg-20220907/x264-static
/rpmbuild/BUILD/ffmpeg-20220907/x264-static:
total 2.7M
drwxr-xr-x 2 builduser builduser   60 2022-09-07 11:53 pkgconfig
-rw-r--r-- 1 builduser builduser 2.6M 2022-09-07 11:53 libx264.a
-rw-r--r-- 1 builduser builduser  48K 2022-09-07 11:53 x264.h
-rw-r--r-- 1 builduser builduser  172 2022-09-07 11:53 x264_config.h

/rpmbuild/BUILD/ffmpeg-20220907/x264-static/pkgconfig:
total 4.0K
-rw-r--r-- 1 builduser builduser 420 2022-09-07 11:53 x264.pc

-------------------------

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this 
will help
solve the problem

that file don't exist

[builduser at buildserver:~/BUILD/ffmpeg-20220907/ffbuild]$ ls
total 36K
-rw-r--r-- 1 builduser builduser 2.2K 2022-07-22 19:58 bin2c.c
-rw-r--r-- 1 builduser builduser  961 2022-07-22 19:58 arch.mak
-rw-r--r-- 1 builduser builduser 6.4K 2022-07-22 19:58 common.mak
-rw-r--r-- 1 builduser builduser 4.6K 2022-07-22 19:58 library.mak
-rwxr-xr-x 1 builduser builduser  594 2022-07-22 19:58 libversion.sh
-rwxr-xr-x 1 builduser builduser 1.5K 2022-07-22 19:58 pkgconfig_generate.sh
-rwxr-xr-x 1 builduser builduser 1.9K 2022-07-22 19:58 version.sh



-- 

Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / CISO / Software-Development
m: +43 676 40 221 40
p: +43 1 595 3999 33
http://www.thelounge.net/

GPG-Public-Key:
https://arrakis-tls.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt


More information about the ffmpeg-user mailing list