[FFmpeg-user] 4.3.1 configure error
MediaStream
mediastream at gmail.com
Fri Oct 30 19:10:09 EET 2020
Greeting and salutations!
Attempting to build *static* FFmpeg 4.3.1 on AWS EC2 Amazon-Linux 2
instance.
x265 v.3.4
x264 latest stable
vpx 1.9.0
fdk_aac 2.0.1
aom latest master
mp3lame 3.100
gcc 7.3.1
All glibc and development libs installed with yum...
Complied all codec libs with "--disable-shared"
$ CFLAGS=-I/usr/local/include LDFLAGS="-L/usr/local/lib -L/usr/local/lib64"
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 ./configure
--prefix=/usr/local --enable-avfilter --enable-gpl --enable-nonfree
--enable-postproc --enable-pthreads --enable-runtime-cpudetect
--enable-static --enable-swscale --enable-version3 --disable-decoder=libgsm
--disable-encoder=libgsm --disable-doc --pkg-config-flags=--static
--extra-ldflags=-static '--extra-libs=-lx264 -lmp3lame -lpthread -lvpx
-lx265 -lfdk-aac -laom' --x86asmexe=/usr/local/bin/nasm --enable-openssl
--enable-libmp3lame --enable-libvpx --enable-libx264 --enable-libx265
--enable-libfdk-aac --enable-libaom
*...*
*ERROR: x265 not found using pkg-config*
$ tail -24 ffbuild/config.log
require_pkg_config libx265 x265 x265.h x265_api_get
check_pkg_config libx265 x265 x265.h x265_api_get
test_pkg_config libx265 x265 x265.h x265_api_get
pkg-config --exists --print-errors x265
check_func_headers x265.h x265_api_get -I/usr/local/include
-L/usr/local/lib -lx265 -lstdc++ -lm -lgcc_s -lgcc -lrt -ldl -lnuma
test_ld cc -I/usr/local/include -L/usr/local/lib -lx265 -lstdc++ -lm
-lgcc_s -lgcc -lrt -ldl -lnuma
test_cc -I/usr/local/include -L/usr/local/lib
BEGIN /tmp/ffconf.CRuBCdXG/test.c
1 #include <x265.h>
2 #include <stdint.h>
3 long check_x265_api_get(void) { return (long) x265_api_get; }
4 int main(void) { int ret = 0;
5 ret |= ((intptr_t)check_x265_api_get) & 0xFFFF;
6 return ret; }
END /tmp/ffconf.CRuBCdXG/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/usr/local/include -std=c11
-fomit-frame-pointer -pthread -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include -L/usr/local/lib -c -o /tmp/ffconf.CRuBCdXG/test.o
/tmp/ffconf.CRuBCdXG/test.c
gcc -L/usr/local/lib -L/usr/local/lib64 -static -Wl,--as-needed
-Wl,-z,noexecstack -I/usr/local/include -L/usr/local/lib -o
/tmp/ffconf.CRuBCdXG/test /tmp/ffconf.CRuBCdXG/test.o -lx265 -lstdc++ -lm
-lgcc_s -lgcc -lrt -ldl -lnuma -lx264 -lmp3lame -lpthread -lvpx -lx265
-lfdk-aac -laom
/usr/bin/ld: cannot find -lgcc_s
/usr/local/lib/libx265.a(api.cpp.o): In function `x265_api_get_192':
api.cpp:(.text+0x2ac3): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/local/lib/libnuma.a(affinity.o): In function `affinity_ip':
affinity.c:(.text+0x8f6): warning: Using 'getaddrinfo' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
collect2: error: ld returned 1 exit status
ERROR: x265 not found using pkg-config
*Please advise on a proper course of action*
More information about the ffmpeg-user
mailing list