builds from source on all flavors of OSX using Homebrew
builds on all flavors of OSX too, using an unofficial Homebrew formula whose link is below.
This first post explains how to build the 2.5 versions.To build Avidemux-2.6, look a few posts down the page at those directions.To build Avidemux-2.5Summary:
Install Homebrew, update it, then
brew install pkg-config cmake qt
brew install --HEAD avidemuxDetails:
First get Homebrew installed into /usr/local. A user sent me a link that
gives you detailed instructions Howto Install Homebrew
. It's very good.
Then prepend /usr/local/bin to your PATH and open a new terminal window.
Homebrew works correctly only in the absence of Macports and Fink.
(Those other packaging helpers will confuse things with dupes)
The next steps will get Homebrew updated and prove to you that
Homebrew is happy. The output of brew doctor is important.
Fix anything it complains about.
brew install pkg-config cmake aften qt
Qt4 installs rapidly like that using what Homebrew calls a bottle
It will build painfully slowly from source if you throw any command line options,
like brew install --developer qt
. Save yourself an hour and don't use flags for Qt4.
brew install --HEAD avidemuxThat's how you build the latest 2.5svn which has numerous fixes for OSX
by the developer here, and is better than 2.5.6.Known Problems:
2.5 has problems building with clang (which conforms strictly to coding standards called C99).
The formula will automatically use a different compiler unless you build it --with-debug.
So most users will not have this problem.Troubleshooting:
If Avidemux doesn't build for some reason, link a gist
of the exact error
here so I can help. The following brew method makes it build slowly and verbosely, designed to be used for debugging:
brew rm -f avidemuxTo rebuild or reinstall in verbose mode
brew install -vd --use-llvm --with-debug --HEAD avidemux
brew rm -f avidemuxEDIT: r7666 - Patches now inline.
brew install -v --HEAD avidemux
EDIT: r7680 - Patches now upstream.
EDIT: r7694 - Tested again, builds ok, no changes to the formula. Added info about Macports and Fink and brew linkapps.
EDIT: r7702 - Tested against Qt-4.8 builds ok, works better, now seeing x264 configure dialog in Qt gui. No changes to formula.
EDIT: r7724 - Tested again, compiles and runs on Lion. No changes to formula. Added info on removing, reinstalling, or upgrading.
EDIT: r7724 - Cleaned up the directions some more, specified --use-llvm because Clang has problems, suggested gawk.
EDIT: r7724 - Tested that both 2.5 and 2.6 compile on Snow Leopard & Lion.
EDIT: 2.5.6 - Changed formula url to point to 2.5.6 stable. Added 'head' to formula. Added patch for ffmpeg + 32bit OSX
EDIT: r7724 - Tested again. Add pkg-config and cmake to the howto, but remove --use-llvm from the qt command so it pours the bottle
EDIT: r7724 - Changes the formula - removes the dep on libvpx which is broken by XCode-4.3 released Feb. 16, 2012. Get the new raw.
EDIT: r7742 - Teste the new svn patches. Changed the Howto's PATH prepend info to correct missing /bin as in /usr/local/bin
EDIT: r7742 - Change formula so the revision number can be determined. Removed --HEAD from aften, as it's not an option.
EDIT: r7742 - Also back in formula is libvpx for decoding webm. Get the new raw formula and build svn for these changes.
EDIT: r7742 - Change the link to the raw formula to a fixed url that always points to the latest commit.
EDIT: r7742 - Fix the url for HEAD to use http not svn. Berlios svn is down. Force fetch a new local repo, then rebrew.
EDIT: r7750 - Change the formula to choose a compiler for you unless you throw --with-debug. Clean formula ruby syntax.
EDIT: r7750 - Add code to output verbosely if --with-debug. Use Homebrew buildPath variable.
EDIT: r7903 - Add a link to Moncef's Howto Install Homebrew. Thanks for that tip!
EDIT: r7907 - Add info on how to update CMake-2.8.8, which Homebrew just patched.
EDIT: r7908 - Homebrew has accepted my formula for avidemux. rm the one you have in /usr/local and brew update.
EDIT: r7908 - Because there's a Qt4 bottle for Snow Lep now, adjusted the Howto to reflect that.
EDIT: r7908 - Moved the -v flag to after the word install where it belongs these days.
EDIT: r7908 - Now works with Mountain Lion 10.8.
EDIT: r7908 - Simplify the FAQ a bit, remove old notes about CMake, add a link to the post for building 2.6