PKG_CONFIG_PATH=/encoder/lib/pkgconfig LDFLAGS="-L/encoder/lib -L/lib -L/lib64 -L/usr/local/lib -L/usr/lib -L/usr/lib64" CFLAGS="-I/encoder/include/ -I/include -I/usr/include -I/opt/intel/mediasdk/include/" ./configure --prefix=/encoder --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libmp3lame --enable-libx265 --enable-libvpx --enable-libfdk-aac --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lmp3lame -lpthread -lm -lz -lpthread -lvpx -lx265 -lfdk-aac' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-version3 --enable-nonfree --pkg-config-flags="--static" --enable-libmfx
ERROR: libmfx not found using pkg-config
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.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
# tail config.log
/root/build/build/mfx_dispatch-master/mfx/mfxstructures.h:1008: warning: declaration does not declare anything
/root/build/build/mfx_dispatch-master/mfx/mfxstructures.h:1012: warning: declaration does not declare anything
/root/build/build/mfx_dispatch-master/mfx/mfxstructures.h:1146: warning: declaration does not declare anything
/root/build/build/mfx_dispatch-master/mfx/mfxstructures.h:1165: warning: declaration does not declare anything
gcc: /encoder/lib/libmfx.a: linker input file unused because linking not done
gcc -L/encoder/lib -L/lib -L/lib64 -L/usr/local/lib -L/usr/lib -L/usr/lib64 -static -Wl,--as-needed -Wl,-z,noexecstack -I/encoder/include -I/root/build/build/mfx_dispatch-master /encoder/lib/libmfx.a -L/encoder/lib -o /tmp/ffconf.VA4TbWgA /tmp/ffconf.SK4E1iwy.o -lsupc++ -L/encoder/lib -lfdk-aac -lm -lm -lz -pthread -lrt -lx264 -lmp3lame -lpthread -lm -lz -lpthread -lvpx -lx265 -lfdk-aac
/tmp/ffconf.SK4E1iwy.o: In function `check_MFXInit':
ffconf.a1ZPETvt.c:(.text+0x1): undefined reference to `MFXInit'
collect2: ld returned 1 exit status
ERROR: libmfx not found using pkg-config