Skip to content

Commit

Permalink
Update README.MD for macOS (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheMav authored Aug 17, 2020
1 parent 42ca15f commit f838892
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ git clone https://github.com/obsproject/obs-deps.git

* Enter the `obs-deps` directory
* Enter the `macos` directory
* 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`
* (*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" [..]
```

0 comments on commit f838892

Please sign in to comment.