SCG82/obs-deps

★ 1Forks 0ShellGitHub ↗Compare

README

obs-deps

Scripts to build and package dependencies for OBS on CI

macOS (10.13+)

lib git commit version
libpng Sourceforge 1.6.37
libopus Oregon State University FTP 1.3.1
libogg xiph.org 1.3.4
librnnoise 90ec41e
libvorbis xiph.org 1.3.7
libvpx Github 1.9.0 (x86_64), latest master branch (arm64)
libjansson Petri Lehtinen 2.13.1
libx264 db0d417 r3018
libmbedtls Github 2.24.0
libsrt Github 1.4.2
libtheora xiph.org 1.1.1
ffmpeg ffmpeg.org 4.3.1
libluajit luajit.org 2.1.0-beta3
libfreetype Sourceforge 2.10.4
libpcre pcre.org 8.44
swig Sourceforge 4.0.2
Qt Qt.io 5.14.1

Prerequisites

  • Homebrew (https://brew.sh)
  • Python 3 - either installed via homebrew (brew install python) or system-provided (macOS 10.15 Catalina)
  • PyYAML - installed via pip3 install pyyaml

Build steps

  • Checkout obs-deps from Github:
git clone https://github.com/obsproject/obs-deps.git
  • Enter the obs-deps directory
  • Enter the macos directory
  • (Optional) Create the build scripts by running ./build_script_generator.py .github/workflows/build_deps.yml
  • Run bash ./build-script-macos-01.sh to build main dependencies
  • Run bash ./build-script-macos-02.sh to build Qt dependency

Usage

  • Common directory to place obs-deps is /tmp/obsdeps/, but a custom path can be used
  • Unpack pre-built dependencies to /tmp by running tar -xf ./macos-deps-VERSION.tar.gz -C /tmp (replace VERSION with the downloaded/desired version)
  • Unpack pre-built Qt dependency to /tmp by running tar -xf ./macos-qt-QT_VERSION-VERSION.tar.gz -C /tmp (replace QT_VERSION and VERSION with the downloaded/desired versions)
  • IMPORTANT: Remove the quarantine attribute from the downloaded Qt dependencies by running xattr -r -d com.apple.quarantine /tmp/obsdeps
  • Use /tmp/obsdeps as QTDIR, SWIGDIR, and DepsPath when invoking cmake for OBS:
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DQTDIR="/tmp/obsdeps" -DSWIGDIR="/tmp/obsdeps" -DDepsPath="/tmp/obsdeps" [..]

Contributors

DDRBoxmanPatTheMavFenrirthvitiRytoEXSCG82dodgepongOBS-CInickzman

Issues