ffmpeg 5.1 refuses to build with x264-static
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@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@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@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
unchanged nonsense with 5.1.2 "x264 not found using pkg-config" just don't use pkg-config or don't insist on it install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -m 644 ./x264.h x264_config.h /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 x264.pc /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 libx264.a /rpmbuild/BUILD/ffmpeg-20221010/x264-static gcc-ranlib /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + strip --strip-unneeded --strip-debug /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + popd ~/rpmbuild/BUILD/ffmpeg-20221010 + mkdir generic + pushd generic ~/rpmbuild/BUILD/ffmpeg-20221010/generic ~/rpmbuild/BUILD/ffmpeg-20221010 ++ sed s/sandybridge/sandybridge/g ++ sed s/sandybridge/sandybridge/g + ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20221010/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=6 -fwhole-program -w' '--extra-ldflags=-I/rpmbuild/BUILD/ffmpeg-20221010/x264-static -L/rpmbuild/BUILD/ffmpeg-20221010/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=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 Am 07.09.22 um 12:08 schrieb Reindl Harald:
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@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@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@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
unchanged nonsense with 6.0.0 [builduser@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 + ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20230301/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-20230301/x264-static -L/rpmbuild/BUILD/ffmpeg-20230301/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 Am 10.10.22 um 21:35 schrieb Reindl Harald:
unchanged nonsense with 5.1.2
"x264 not found using pkg-config" just don't use pkg-config or don't insist on it
install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -m 644 ./x264.h x264_config.h /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 x264.pc /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 libx264.a /rpmbuild/BUILD/ffmpeg-20221010/x264-static gcc-ranlib /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + strip --strip-unneeded --strip-debug /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + popd ~/rpmbuild/BUILD/ffmpeg-20221010 + mkdir generic + pushd generic ~/rpmbuild/BUILD/ffmpeg-20221010/generic ~/rpmbuild/BUILD/ffmpeg-20221010 ++ sed s/sandybridge/sandybridge/g ++ sed s/sandybridge/sandybridge/g
+ ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20221010/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=6 -fwhole-program -w' '--extra-ldflags=-I/rpmbuild/BUILD/ffmpeg-20221010/x264-static -L/rpmbuild/BUILD/ffmpeg-20221010/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=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
Am 07.09.22 um 12:08 schrieb Reindl Harald:
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@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@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@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
unchanged nonsense with 6.0.0
[builduser@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
+ ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20230301/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-20230301/x264-static -L/rpmbuild/BUILD/ffmpeg-20230301/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
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
Am 10.10.22 um 21:35 schrieb Reindl Harald:
unchanged nonsense with 5.1.2
"x264 not found using pkg-config" just don't use pkg-config or don't insist on it
install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -m 644 ./x264.h x264_config.h /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 x264.pc /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 libx264.a /rpmbuild/BUILD/ffmpeg-20221010/x264-static gcc-ranlib /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + strip --strip-unneeded --strip-debug /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + popd ~/rpmbuild/BUILD/ffmpeg-20221010 + mkdir generic + pushd generic ~/rpmbuild/BUILD/ffmpeg-20221010/generic ~/rpmbuild/BUILD/ffmpeg-20221010 ++ sed s/sandybridge/sandybridge/g ++ sed s/sandybridge/sandybridge/g
+ ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20221010/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=6 -fwhole-program -w' '--extra-ldflags=-I/rpmbuild/BUILD/ffmpeg-20221010/x264-static -L/rpmbuild/BUILD/ffmpeg-20221010/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=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
Am 07.09.22 um 12:08 schrieb Reindl Harald:
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@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@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@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
ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Am 01.03.23 um 16:48 schrieb Ferdi Scholten:
unchanged nonsense with 6.0.0
[builduser@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 defcined in the configure string?
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@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@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
unchanged nonsense with 6.0.0
[builduser@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
+ ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20230301/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-20230301/x264-static -L/rpmbuild/BUILD/ffmpeg-20230301/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
So, what are the contents of x264.pc and, what is the result of pkg-config --debug x264 pkg-config is telling the linker how to link the library, If it is not found or incorrect you will get the not found message from configure
Am 10.10.22 um 21:35 schrieb Reindl Harald:
unchanged nonsense with 5.1.2
"x264 not found using pkg-config" just don't use pkg-config or don't insist on it
install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -m 644 ./x264.h x264_config.h /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 x264.pc /rpmbuild/BUILD/ffmpeg-20221010/x264-static/pkgconfig install -d /rpmbuild/BUILD/ffmpeg-20221010/x264-static install -m 644 libx264.a /rpmbuild/BUILD/ffmpeg-20221010/x264-static gcc-ranlib /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + strip --strip-unneeded --strip-debug /rpmbuild/BUILD/ffmpeg-20221010/x264-static/libx264.a + popd ~/rpmbuild/BUILD/ffmpeg-20221010 + mkdir generic + pushd generic ~/rpmbuild/BUILD/ffmpeg-20221010/generic ~/rpmbuild/BUILD/ffmpeg-20221010 ++ sed s/sandybridge/sandybridge/g ++ sed s/sandybridge/sandybridge/g
+ ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20221010/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=6 -fwhole-program -w' '--extra-ldflags=-I/rpmbuild/BUILD/ffmpeg-20221010/x264-static -L/rpmbuild/BUILD/ffmpeg-20221010/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=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
Am 07.09.22 um 12:08 schrieb Reindl Harald:
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@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@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@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
ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
unchanged nonsense with 6.0.0
[builduser@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
+ ../configure --prefix=/usr/local --bindir=/usr/local/bin --mandir=/usr/local/man '--extra-cflags=-I/rpmbuild/BUILD/ffmpeg-20230301/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-20230301/x264-static -L/rpmbuild/BUILD/ffmpeg-20230301/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
So, what are the contents of x264.pc and, what is the result of pkg-config --debug x264
pkg-config is telling the linker how to link the library, If it is not found or incorrect you will get the not found message from configure On closer inspection, you might try adding
--pkg-config-flags="--static" to your ./configure commandline to inform pkg-config that you are using statically linked libraries otherwise it assumes dynamically linked libraries
Am 02.03.23 um 08:38 schrieb Ferdi Scholten:
ERROR: x264 not found using pkg-config
So, what are the contents of x264.pc and, what is the result of pkg-config --debug x264
pkg-config is telling the linker how to link the library, If it is not found or incorrect you will get the not found message from configure On closer inspection, you might try adding
--pkg-config-flags="--static" to your ./configure commandline to inform pkg-config that you are using statically linked libraries otherwise it assumes dynamically linked libraries
x264 works with your suggestions, x265 which are ordinary Fedora 36 packages has the same issue luckily i don't care much about x265 and so disbaled it before ffmpeg 5.1 both worked for years - period ------------------------- - update to 6.0.0 - work around 'ERROR: x265 not found using pkg-config' with '--disable-libx265' for now - add '/rpmbuild/BUILD/ffmpeg-snapshot/x264-static' to PKG_CONFIG_PATH - add --pkg-config-flags="--static" to configure-flags ------------------------- [builduser@testserver:~]$ rpm -qa | grep x265 x265-libs-3.5-5.fc36.x86_64 x265-devel-3.5-5.fc36.x86_64 [builduser@testserver:~]$ locate x265.pc /usr/lib64/pkgconfig/x265.pc [builduser@testserver:~]$ cat /usr/lib64/pkgconfig/x265.pc prefix=/usr exec_prefix=${prefix} libdir=/usr/lib64 includedir=${prefix}/include Name: x265 Description: H.265/HEVC video encoder Version: 3.5 Libs: -L${libdir} -lx265 Libs.private: -lstdc++ -lm -lgcc_s -lgcc -lgcc_s -lgcc -lrt -ldl -lnuma Cflags: -I${includedir} [builduser@testserver:~]$ pkg-config --debug x265 libpkgconf/dependency.c:115 [add_or_replace_dependency_node]: added dependency [x265] to list @0x7ffdfa02f7b8; flags=0 libpkgconf/pkg.c:1565 [pkgconf_pkg_traverse]: virtual:world: level 2000 libpkgconf/pkg.c:1580 [pkgconf_pkg_traverse]: virtual:world: walking requires list libpkgconf/pkg.c:1346 [pkgconf_pkg_verify_dependency]: trying to verify dependency: x265 libpkgconf/pkg.c:733 [pkgconf_pkg_find]: looking for: x265 libpkgconf/cache.c:62 [pkgconf_cache_lookup]: miss: x265 libpkgconf/pkg.c:571 [pkgconf_pkg_try_specific_path]: trying path: /usr/lib64/pkgconfig for x265 libpkgconf/pkg.c:585 [pkgconf_pkg_try_specific_path]: found: /usr/lib64/pkgconfig/x265.pc libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: pcfiledir => /usr/lib64/pkgconfig (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: prefix => /usr (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: exec_prefix => ${prefix} (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: libdir => /usr/lib64 (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: includedir => ${prefix}/include (parsed? 1) libpkgconf/fragment.c:676 [pkgconf_fragment_parse]: post-subst: [-L${libdir} -lx265] -> [-L/usr/lib64 -lx265] libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {L, '/usr/lib64'} to list @0x55ca70dd4b18 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'x265'} to list @0x55ca70dd4b18 libpkgconf/fragment.c:676 [pkgconf_fragment_parse]: post-subst: [-lstdc++ -lm -lgcc_s -lgcc -lgcc_s -lgcc -lrt -ldl -lnuma] -> [-lstdc++ -lm -lgcc_s -lgcc -lgcc_s -lgcc -lrt -ldl -lnuma] libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'stdc++'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'm'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc_s'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc_s'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'rt'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'dl'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'numa'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:676 [pkgconf_fragment_parse]: post-subst: [-I${includedir}] -> [-I/usr/include] libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {I, '/usr/include'} to list @0x55ca70dd4b48 libpkgconf/dependency.c:115 [add_or_replace_dependency_node]: added dependency [x265 = 3.5] to list @0x55ca70dd4bc0; flags=0 libpkgconf/pkg.c:534 [pkgconf_pkg_ref]: refcount@0x55ca70dd4ac0: 1 libpkgconf/pkg.c:534 [pkgconf_pkg_ref]: refcount@0x55ca70dd4ac0: 2 libpkgconf/cache.c:87 [pkgconf_cache_add]: added @0x55ca70dd4ac0 to cache libpkgconf/pkg.c:534 [pkgconf_pkg_ref]: refcount@0x55ca70dd4ac0: 3 libpkgconf/pkg.c:1565 [pkgconf_pkg_traverse]: x265: level 1999 libpkgconf/pkg.c:1580 [pkgconf_pkg_traverse]: x265: walking requires list libpkgconf/pkg.c:557 [pkgconf_pkg_unref]: refcount@0x55ca70dd4ac0: 2 libpkgconf/pkg.c:557 [pkgconf_pkg_unref]: refcount@0x55ca70dd4ac0: 1 libpkgconf/client.c:180 [pkgconf_client_deinit]: deinit @0x55ca70967800 libpkgconf/pkg.c:557 [pkgconf_pkg_unref]: refcount@0x55ca70dd4ac0: 0 libpkgconf/cache.c:113 [pkgconf_cache_remove]: removed @0x55ca70dd4ac0 from cache libpkgconf/cache.c:142 [pkgconf_cache_free]: cleared package cache
Am 02.03.23 um 08:38 schrieb Ferdi Scholten:
ERROR: x264 not found using pkg-config
So, what are the contents of x264.pc and, what is the result of pkg-config --debug x264
pkg-config is telling the linker how to link the library, If it is not found or incorrect you will get the not found message from configure On closer inspection, you might try adding
--pkg-config-flags="--static" to your ./configure commandline to inform pkg-config that you are using statically linked libraries otherwise it assumes dynamically linked libraries
x264 works with your suggestions, x265 which are ordinary Fedora 36 packages has the same issue luckily i don't care much about x265 and so disbaled it
before ffmpeg 5.1 both worked for years - period
-------------------------
- update to 6.0.0 - work around 'ERROR: x265 not found using pkg-config' with '--disable-libx265' for now - add '/rpmbuild/BUILD/ffmpeg-snapshot/x264-static' to PKG_CONFIG_PATH - add --pkg-config-flags="--static" to configure-flags
-------------------------
[builduser@testserver:~]$ rpm -qa | grep x265 x265-libs-3.5-5.fc36.x86_64 x265-devel-3.5-5.fc36.x86_64
[builduser@testserver:~]$ locate x265.pc /usr/lib64/pkgconfig/x265.pc [builduser@testserver:~]$ cat /usr/lib64/pkgconfig/x265.pc prefix=/usr exec_prefix=${prefix} libdir=/usr/lib64 includedir=${prefix}/include
Name: x265 Description: H.265/HEVC video encoder Version: 3.5 Libs: -L${libdir} -lx265 Libs.private: -lstdc++ -lm -lgcc_s -lgcc -lgcc_s -lgcc -lrt -ldl -lnuma Cflags: -I${includedir}
[builduser@testserver:~]$ pkg-config --debug x265 libpkgconf/dependency.c:115 [add_or_replace_dependency_node]: added dependency [x265] to list @0x7ffdfa02f7b8; flags=0 libpkgconf/pkg.c:1565 [pkgconf_pkg_traverse]: virtual:world: level 2000 libpkgconf/pkg.c:1580 [pkgconf_pkg_traverse]: virtual:world: walking requires list libpkgconf/pkg.c:1346 [pkgconf_pkg_verify_dependency]: trying to verify dependency: x265 libpkgconf/pkg.c:733 [pkgconf_pkg_find]: looking for: x265 libpkgconf/cache.c:62 [pkgconf_cache_lookup]: miss: x265 libpkgconf/pkg.c:571 [pkgconf_pkg_try_specific_path]: trying path: /usr/lib64/pkgconfig for x265 libpkgconf/pkg.c:585 [pkgconf_pkg_try_specific_path]: found: /usr/lib64/pkgconfig/x265.pc libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: pcfiledir => /usr/lib64/pkgconfig (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: prefix => /usr (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: exec_prefix => ${prefix} (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: libdir => /usr/lib64 (parsed? 1) libpkgconf/tuple.c:189 [pkgconf_tuple_add]: adding tuple to @0x55ca70dd4bd8: includedir => ${prefix}/include (parsed? 1) libpkgconf/fragment.c:676 [pkgconf_fragment_parse]: post-subst: [-L${libdir} -lx265] -> [-L/usr/lib64 -lx265] libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {L, '/usr/lib64'} to list @0x55ca70dd4b18 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'x265'} to list @0x55ca70dd4b18 libpkgconf/fragment.c:676 [pkgconf_fragment_parse]: post-subst: [-lstdc++ -lm -lgcc_s -lgcc -lgcc_s -lgcc -lrt -ldl -lnuma] -> [-lstdc++ -lm -lgcc_s -lgcc -lgcc_s -lgcc -lrt -ldl -lnuma] libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'stdc++'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'm'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc_s'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc_s'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'gcc'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'rt'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'dl'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {l, 'numa'} to list @0x55ca70dd4b30 libpkgconf/fragment.c:676 [pkgconf_fragment_parse]: post-subst: [-I${includedir}] -> [-I/usr/include] libpkgconf/fragment.c:147 [pkgconf_fragment_add]: added fragment {I, '/usr/include'} to list @0x55ca70dd4b48 libpkgconf/dependency.c:115 [add_or_replace_dependency_node]: added dependency [x265 = 3.5] to list @0x55ca70dd4bc0; flags=0 libpkgconf/pkg.c:534 [pkgconf_pkg_ref]: refcount@0x55ca70dd4ac0: 1 libpkgconf/pkg.c:534 [pkgconf_pkg_ref]: refcount@0x55ca70dd4ac0: 2 libpkgconf/cache.c:87 [pkgconf_cache_add]: added @0x55ca70dd4ac0 to cache libpkgconf/pkg.c:534 [pkgconf_pkg_ref]: refcount@0x55ca70dd4ac0: 3 libpkgconf/pkg.c:1565 [pkgconf_pkg_traverse]: x265: level 1999 libpkgconf/pkg.c:1580 [pkgconf_pkg_traverse]: x265: walking requires list libpkgconf/pkg.c:557 [pkgconf_pkg_unref]: refcount@0x55ca70dd4ac0: 2 libpkgconf/pkg.c:557 [pkgconf_pkg_unref]: refcount@0x55ca70dd4ac0: 1 libpkgconf/client.c:180 [pkgconf_client_deinit]: deinit @0x55ca70967800 libpkgconf/pkg.c:557 [pkgconf_pkg_unref]: refcount@0x55ca70dd4ac0: 0 libpkgconf/cache.c:113 [pkgconf_cache_remove]: removed @0x55ca70dd4ac0 from cache libpkgconf/cache.c:142 [pkgconf_cache_free]: cleared package cache
Try also adding --extra-libs="-lpthread" to your ./configure that might get x265 working as well It's described here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
Am 02.03.23 um 20:55 schrieb Ferdi Scholten:
Try also adding
--extra-libs="-lpthread"
to your ./configure that might get x265 working as well It's described here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu for now i don't care about x265 but why do you suddenly need a ton of extra params you didn't need a lot of years before?
participants (2)
-
Ferdi Scholten -
Reindl Harald