Scripts to build and package dependencies for OBS on CI
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 |
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 |
- 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
- 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
- Common directory to place obs-deps is
/tmp/obsdeps/
, but a custom path can be used - Unpack pre-built dependencies to
/tmp
by runningtar -xf ./macos-deps-VERSION.tar.gz -C /tmp
(replaceVERSION
with the downloaded/desired version) - Unpack pre-built Qt dependency to
/tmp
by runningtar -xf ./macos-qt-QT_VERSION-VERSION.tar.gz -C /tmp
(replaceQT_VERSION
andVERSION
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
asQTDIR
,SWIGDIR
, andDepsPath
when invokingcmake
for OBS:
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DQTDIR="/tmp/obsdeps" -DSWIGDIR="/tmp/obsdeps" -DDepsPath="/tmp/obsdeps" [..]