ultravideo / kvazaar

An open-source HEVC encoder
BSD 3-Clause "New" or "Revised" License
838 stars 181 forks source link

How to compile Kvazzar on MacOS? #296

Open laidactienbn opened 3 years ago

laidactienbn commented 3 years ago

I have read the instructions about compiling Kvazzar using Homebrew, but Homebrew now doesn't support OS X anymore, so I have a problem compiling it. The error is "Permission denied" and when I add sudo, it said that "Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system."

Is there any way that I can compile Kvazzar?

ari-koivula commented 3 years ago

Without Homebrew, you compile Kvazaar the same way you do on Linux. You just need to make sure the required tools are in your PATH. I think they are automake, autoconf, libtool, and yasm. I think Homebrew installs them in /usr/local/bin/, so you might need that in your PATH.

However, I think Homebrew works just fine. It's not meant to be run as root, so don't do that, use your normal user. You can even compile Kvazaar using it with brew install --build-from-source kvazaar. Or you can look at the formula with brew edit kvazaar to see what dependencies Homebrew installs for building and what commands it runs.