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.
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,
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.
produces
Error: HTTP 404 Not Found (expected 201)
Next I tried editing the formula
to explicitly push --enable-* flags into the configure command, hard coding
args << "--enable-libass"
inside ffmpeg.rb formula, results in errors when executing
(./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.
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:
Hi
Default ffmpeg builds fine in 100seconds, but no other options will install.
all fine, but running
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,
contains all of them, and
shows no errors for example.
I changed the ffmpeg.rb script until I had convinced myself that the problem is real.
produces
Error: HTTP 404 Not Found (expected 201)
Next I tried editing the formula
to explicitly push --enable-* flags into the configure command, hard coding
inside ffmpeg.rb formula, results in errors when executing
(./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.