export PKG_CONFIG_PATH=/home/oye/p/lib/pkgconfig:$PKG_CONFIG_PATH
有些lib的pkg—config文件放在/usr/locallib/pkgconfig 中....
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
./configure --prefix=/usr/local/ffmpeg423\
--enable-shared --enable-static --enable-gpl --enable-pthreads \
--enable-libx264 --enable-libx265 --enable-librtmp --enable-ffplay\
--extra-cflags=-I/home/oye/p/include --extra-ldflags=-L/home/oye/p/lib
参看
https://www.cnblogs.com/leisure_chn/p/10035365.html