ERROR: libass >= 0.11.0 not found using pkg-config
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?
On Wed, 25 Dec 2024 at 14:25, kozaick via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote:
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?
Well, .config.log is needed. Grab a copy of the same and paste it here for review.
Hello, In the Message; Subject : [FFmpeg-user] ERROR: libass >= 0.11.0 not found using pkg-config Message-ID : <20241225202457.908d59c15458b96106ee769c@yahoo.co.jp> Date & Time: Wed, 25 Dec 2024 20:24:57 +0900 [kozaick] == kozaick via ffmpeg-user <ffmpeg-user@ffmpeg.org> has written: kozaick> Hello. kozaick> I am trying to compile ffmpeg with libass included for windows in ubuntu container (docker). kozaick> But I get an error when running the configure file. kozaick> To check, I placed the following command in the test_pkg_config() method of the configure file. kozaick> --- kozaick> echo “Checking package: $pkg_version” kozaick> pkg-config --exists --print-errors $pkg_version kozaick> echo “pkg-config exit code: $?” kozaick> --- kozaick> And display like this. kozaick> --- kozaick> Checking package: libass >= 0.11.0 kozaick> pkg-config exit code: 0 kozaick> ERROR: libass >= 0.11.0 not found using pkg-config [...] This says that libass.pc cannot be found. Your compilation method should have created libass.pc, but since /usr/local/lib/pkgconfig is missing, it is probably not installed. How about this? 1. $ sudo mkdir /usr/local/lib/pkgconfig 2. $ sudo cp somewhere/libass.pc /usr/local/lib/pkgconfig Best Reagrs & お休みなさい. --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Reading widely about things that don't seem immediately or practically useful, in the hope that what you learn now may prove meaningful later―that's pretty much the definition of a liberal- arts education. Who knew that one of its best defenders would turn out to be a computer scientist?" -- "What Does It Really Mean to Learn?" THE NEW YORKER --
On Wed, 25 Dec 2024 21:07:44 +0900 Masaru Nomiya <nomiya@lake.dti.ne.jp> wrote:
Hello,
In the Message;
Subject : [FFmpeg-user] ERROR: libass >= 0.11.0 not found using pkg-config Message-ID : <20241225202457.908d59c15458b96106ee769c@yahoo.co.jp> Date & Time: Wed, 25 Dec 2024 20:24:57 +0900
[kozaick] == kozaick via ffmpeg-user <ffmpeg-user@ffmpeg.org> has written:
kozaick> Hello. kozaick> I am trying to compile ffmpeg with libass included for windows in ubuntu container (docker). kozaick> But I get an error when running the configure file. kozaick> To check, I placed the following command in the test_pkg_config() method of the configure file. kozaick> --- kozaick> echo “Checking package: $pkg_version” kozaick> pkg-config --exists --print-errors $pkg_version kozaick> echo “pkg-config exit code: $?” kozaick> --- kozaick> And display like this. kozaick> --- kozaick> Checking package: libass >= 0.11.0 kozaick> pkg-config exit code: 0 kozaick> ERROR: libass >= 0.11.0 not found using pkg-config [...]
This says that libass.pc cannot be found. Your compilation method should have created libass.pc, but since /usr/local/lib/pkgconfig is missing, it is probably not installed.
How about this?
1. $ sudo mkdir /usr/local/lib/pkgconfig
2. $ sudo cp somewhere/libass.pc /usr/local/lib/pkgconfig
Best Reagrs & お休みなさい.
--- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Reading widely about things that don't seem immediately or practically useful, in the hope that what you learn now may prove meaningful later―that's pretty much the definition of a liberal- arts education. Who knew that one of its best defenders would turn out to be a computer scientist?"
-- "What Does It Really Mean to Learn?" THE NEW YORKER -- _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Thank you for quick reply. First, I forgot to mention that I have set the following my environment variables, PKG_CONFIG_LIBDIR="/usr/local/x86_64-w64-mingw32/lib/pkgconfig:$PKG_CONFIG_LIBDIR” PKG_CONFIG_PATH="/usr/local/x86_64-w64-mingw32/lib/pkgconfig:$PKG_CONFIG_PATH” The setting you mentioned to put the .pc file in /usr/local/lib/pkgconfig does not work in my environment when I do this, and pkg-config returns 1. I think the error is probably related to the configure file itself.? Second, I forgot to attach the config.log file, Sorry. So, I attached this. Thanks for let me know. Finally, My container envrioment is ubuntu 24.04 x86_64, ffmpeg release 7.1 from github, gcc 13, g++-mingw-w64-x86-64. ありがとう & お休みなさい.
On 2024-12-25 22:40 +0900, kozaick via ffmpeg-user wrote:
On Wed, 25 Dec 2024 21:07:44 +0900 Masaru Nomiya <nomiya@lake.dti.ne.jp> wrote:
[...]
[kozaick] == kozaick via ffmpeg-user <ffmpeg-user@ffmpeg.org> has written:
kozaick> Hello. kozaick> I am trying to compile ffmpeg with libass included for windows in ubuntu container (docker). kozaick> But I get an error when running the configure file. kozaick> To check, I placed the following command in the test_pkg_config() method of the configure file. kozaick> --- kozaick> echo “Checking package: $pkg_version” kozaick> pkg-config --exists --print-errors $pkg_version kozaick> echo “pkg-config exit code: $?” kozaick> --- kozaick> And display like this. kozaick> --- kozaick> Checking package: libass >= 0.11.0 kozaick> pkg-config exit code: 0 kozaick> ERROR: libass >= 0.11.0 not found using pkg-config [...]
This says that libass.pc cannot be found. Your compilation method should have created libass.pc, but since /usr/local/lib/pkgconfig is missing, it is probably not installed.
How about this?
1. $ sudo mkdir /usr/local/lib/pkgconfig
2. $ sudo cp somewhere/libass.pc /usr/local/lib/pkgconfig
Best Reagrs & お休みなさい.
--- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Reading widely about things that don't seem immediately or practically useful, in the hope that what you learn now may prove meaningful later―that's pretty much the definition of a liberal- arts education. Who knew that one of its best defenders would turn out to be a computer scientist?"
-- "What Does It Really Mean to Learn?" THE NEW YORKER -- _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Thank you for quick reply.
First, I forgot to mention that I have set the following my environment variables, PKG_CONFIG_LIBDIR="/usr/local/x86_64-w64-mingw32/lib/pkgconfig:$PKG_CONFIG_LIBDIR” PKG_CONFIG_PATH="/usr/local/x86_64-w64-mingw32/lib/pkgconfig:$PKG_CONFIG_PATH” The setting you mentioned to put the .pc file in /usr/local/lib/pkgconfig does not work in my environment when I do this, and pkg-config returns 1. I think the error is probably related to the configure file itself.?
Second, I forgot to attach the config.log file, Sorry. So, I attached this. Thanks for let me know.
Finally, My container envrioment is ubuntu 24.04 x86_64, ffmpeg release 7.1 from github, gcc 13, g++-mingw-w64-x86-64.
ありがとう & お休みなさい.
I think this your problem at hand: WARNING: x86_64-w64-mingw32-pkg-config not found, library detection may fail. You should also see it somewhere in the output, but I took this line from your `config.log`. It means ffmpeg cannot run the pkg-config executable it expects to and instead uses `false` which will always give a negative (non-zero) exit status. Best regards, Alexander
On Wed, 25 Dec 2024 22:34:45 +0100 Alexander Strasser via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
On 2024-12-25 22:40 +0900, kozaick via ffmpeg-user wrote:
On Wed, 25 Dec 2024 21:07:44 +0900 Masaru Nomiya <nomiya@lake.dti.ne.jp> wrote:
[...]
[kozaick] == kozaick via ffmpeg-user <ffmpeg-user@ffmpeg.org> has written:
kozaick> Hello. kozaick> I am trying to compile ffmpeg with libass included for windows in ubuntu container (docker). kozaick> But I get an error when running the configure file. kozaick> To check, I placed the following command in the test_pkg_config() method of the configure file. kozaick> --- kozaick> echo “Checking package: $pkg_version” kozaick> pkg-config --exists --print-errors $pkg_version kozaick> echo “pkg-config exit code: $?” kozaick> --- kozaick> And display like this. kozaick> --- kozaick> Checking package: libass >= 0.11.0 kozaick> pkg-config exit code: 0 kozaick> ERROR: libass >= 0.11.0 not found using pkg-config [...]
This says that libass.pc cannot be found. Your compilation method should have created libass.pc, but since /usr/local/lib/pkgconfig is missing, it is probably not installed.
How about this?
1. $ sudo mkdir /usr/local/lib/pkgconfig
2. $ sudo cp somewhere/libass.pc /usr/local/lib/pkgconfig
Best Reagrs & お休みなさい.
--- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Reading widely about things that don't seem immediately or practically useful, in the hope that what you learn now may prove meaningful later―that's pretty much the definition of a liberal- arts education. Who knew that one of its best defenders would turn out to be a computer scientist?"
-- "What Does It Really Mean to Learn?" THE NEW YORKER -- _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Thank you for quick reply.
First, I forgot to mention that I have set the following my environment variables, PKG_CONFIG_LIBDIR="/usr/local/x86_64-w64-mingw32/lib/pkgconfig:$PKG_CONFIG_LIBDIR” PKG_CONFIG_PATH="/usr/local/x86_64-w64-mingw32/lib/pkgconfig:$PKG_CONFIG_PATH” The setting you mentioned to put the .pc file in /usr/local/lib/pkgconfig does not work in my environment when I do this, and pkg-config returns 1. I think the error is probably related to the configure file itself.?
Second, I forgot to attach the config.log file, Sorry. So, I attached this. Thanks for let me know.
Finally, My container envrioment is ubuntu 24.04 x86_64, ffmpeg release 7.1 from github, gcc 13, g++-mingw-w64-x86-64.
ありがとう & お休みなさい.
I think this your problem at hand:
WARNING: x86_64-w64-mingw32-pkg-config not found, library detection may fail.
You should also see it somewhere in the output, but I took this line from your `config.log`.
It means ffmpeg cannot run the pkg-config executable it expects to and instead uses `false` which will always give a negative (non-zero) exit status.
Best regards, Alexander _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Thank you very much for your reply. It seems I was right on that your point. I made the change using --pkg-config and ffmpeg was recognized. I am so embarrassed... Thank you all very much.
participants (4)
-
Alexander Strasser -
Dennis Mungai -
kozaick -
Masaru Nomiya