[FFmpeg-user] ERROR: libass >= 0.11.0 not found using pkg-config

kozaick kozaick at yahoo.co.jp
Wed Dec 25 13:24:57 EET 2024


Hello.
I am trying to compile ffmpeg with libass included for windows in ubuntu container (docker).
But I get an error when running the configure file.
To check, I placed the following command in the test_pkg_config() method of the configure file.
---
echo “Checking package: $pkg_version”
pkg-config --exists --print-errors $pkg_version 
echo “pkg-config exit code: $?”
---
And display like this.
---
Checking package: libass >= 0.11.0
pkg-config exit code: 0
ERROR: libass >= 0.11.0 not found using pkg-config
---
(pkg-config --exists --print-errors I ran “libass >= (0.11.0” but nothing was printed.)

I also ran “ls /usr/local/x86_64-w64-mingw32/include/ass"
---
ass.h
ass_types.h
---
and I got the result that found“ass.h”.

Here is the command I ran for complie.
--- libass
git clone -b 0.17.3 https://github.com/libass/libass.git
cd libass
autoreconf -fiv
./configure --host=x86_64-w64-mingw32 --prefix=/usr/local/x86_64-w64-mingw32 CPPFLAGS="-I/usr/local/x86_64-w64-mingw32/include" LDFLAGS="-L/usr/local/x86_64-w64-mingw32/lib" --disable-shared
make
make install
cd ..
---
--- ffmpeg
CPPFLAGS="-I/usr/local/x86_64-w64-mingw32/include" \
LDFLAGS="-L/usr/local/x86_64-w64-mingw32/lib" \
./configure \
  --prefix=/usr/local/x86_64-w64-mingw32 \
  --cross-prefix=x86_64-w64-mingw32- \
  --arch=x86_64 \
  --target-os=mingw32 \
  --enable-libvorbis \
  --enable-libopus \
  --enable-libmp3lame \
  --enable-libvpx \
  --enable-libwebp \
  --enable-libass \
  --enable-ffprobe \
  --disable-ffplay
---

Can someone please provide a solution to this problem?


More information about the ffmpeg-user mailing list