Homebrew supports the srt
formula.
brew update
brew install srt
If you prefer using a head commit of master
branch, add the --HEAD
option
to brew
command.
brew install --HEAD srt
Install CMake and OpenSSL with development files from brew
. It is recommended to install the latest version of OpenSSL from the brew
system rather than relying on the version that is presently installed in the system.
brew install cmake
brew install openssl
brew install pkgconfig
SRT can be now built with cmake
or make
on Mac.
export OPENSSL_ROOT_DIR=$(brew --prefix openssl)
export OPENSSL_LIB_DIR=$(brew --prefix openssl)"/lib"
export OPENSSL_INCLUDE_DIR=$(brew --prefix openssl)"/include"
./configure
make