[FFmpeg-user] ERROR: libbluray not found using pkg-config

Giovanni Musto rapperskull.mail at gmail.com
Fri Apr 16 11:48:27 EEST 2021


I'm trying to compile ffmpeg with libbluray, but I get the following error:
ERROR: libbluray not found using pkg-config

My command to compile libbluray is the following:
cd ~/ffmpeg_sources && \
git -C libbluray pull 2> /dev/null || git clone --recurse-submodules
https://code.videolan.org/videolan/libbluray.git && \
cd libbluray && \
./bootstrap && \
PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure
--prefix "$HOME/ffmpeg_build" --bindir="$HOME/ffmpeg_build/bin"
--libdir="$HOME/ffmpeg_build/lib" && \
PATH="$HOME/bin:$PATH" make -j$(nproc) && \
make install

While for ffmpeg it's:
cd ~/ffmpeg_sources && \
wget -O ffmpeg-snapshot.tar.bz2
https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
tar xjvf ffmpeg-snapshot.tar.bz2 && \
cd ffmpeg && \
PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include -I/usr/local/cuda/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib -L/usr/local/cuda/lib64" \
  --extra-libs="-lpthread -lm" \
  --ld="g++" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-gnutls \
  --enable-libaom \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libsvtav1 \
  --enable-libdav1d \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree \
  --enable-libbluray \
  --enable-cuda --enable-cuvid --enable-nvenc --enable-libnpp && \
PATH="$HOME/bin:$PATH" make -j$(nproc) && \
make install && \
hash -r

Am I doing something wrong? I attached the ffbuild/config.log file.
Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 422443 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210416/62c37bda/attachment.obj>


More information about the ffmpeg-user mailing list