Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 849 Bytes

build-macOS.md

File metadata and controls

32 lines (24 loc) · 849 Bytes

Building SRT on macOS

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

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