Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

ffmpeg (re)install fails on --enable-* #43075

Description

update: ffmpeg et al. built without errors with the same configure string as I was setting in the ffmpeg.rb formula file, in a session where I had exported the same PKG_CONFIG_PATH string, (which wasn't being picked up by brew despite being an env var in the session window where I was running brew reinstall -v ffmpeg --with-......)

update 2: for those with a similar problem, I was not aware that you can force your environmental vars to be passed to brew. I found this instruction on the liquidsoap issues site, where the poster was having the same errors where brew is asking whether PKG_CONFIG_PATH is set and everything is fine, the OP had tried everything, and the maintainer of liquidsoap was asking whether it was brew or him!

YMMV:

brew install --env=std ffmpeg --with-libass etc... 

Hi

Default ffmpeg builds fine in 100seconds, but no other options will install.

brew update
brew doctor

all fine, but running

brew reinstall ffmpeg --with-*

configure flags doesn't change what is compiled into the ffmpeg binary, in fact the configure command executed by brew is identical whatever brew reinstall --with-* command is executed.

eg.
brew reinstall -v ffmpeg --with-libass

installs nothing more than the default.

All libraries are present,

pkg-config --list-all

contains all of them, and

pkg-config --print-errors libass

shows no errors for example.

I changed the ffmpeg.rb script until I had convinced myself that the problem is real.

brew gist-logs ffmpeg 

produces
Error: HTTP 404 Not Found (expected 201)

Next I tried editing the formula

brew edit ffmpeg

to explicitly push --enable-* flags into the configure command, hard coding

args << "--enable-libass"

inside ffmpeg.rb formula, results in errors when executing

brew install -v ffmpeg

(./configure now has --enable-libass hard coded so no need to explicitly set --with-libass)

Error: libass not found using pkg-config

Changing PKG_CONFIG_PATH in my bash_profile makes no difference. My bash_profile has a script which generates a long list of the correct include locations, just to be sure, but this is not exposed to Brew's environment when building.

Can anyone throw any light on this, and it's solution please.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions