Skip to content

Commit a0322a1

Browse files
committed
Add instructions for building on OSX
1 parent cd0f8c1 commit a0322a1

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,45 @@ window.obsstudio.pluginVersion
2222
window.obsstudio.onVisibilityChange(visiblity) {
2323
2424
};
25-
```
25+
```
26+
27+
## Building on OSX
28+
29+
### Building CEF
30+
#### Getting
31+
* Download CEF Mac 64 from [https://cefbuilds.com/](https://cefbuilds.com/)
32+
* At the time of writing this I used build 2704
33+
* Extract and cd into the folder
34+
35+
#### Setting Up Project
36+
```
37+
mkdir build
38+
cmake -D CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY=libc++ -G Xcode ..
39+
open cef.xcodeproj/
40+
```
41+
42+
TODO: tell user to move stuff, or FindCEF.cmake
43+
44+
#### Building
45+
Build in Xcode (⌘+B)
46+
47+
### Building OBS and obs-browser
48+
#### Installing Dependencies
49+
```
50+
brew install ffmpeg x264 qt5 cmake
51+
```
52+
53+
#### Setting Up Project
54+
```
55+
git clone --recursive https://github.com/jp9000/obs-studio.git
56+
cd ./obs-studio
57+
git clone [email protected]:kc5nra/obs-browser.git ./plugins/obs-browser
58+
echo "add_subdirectory(obs-browser)" >> ./plugins/CMakeLists.txt
59+
mkdir build
60+
cd ./build
61+
cmake -D CMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake -D CEF_ROOT_DIR=/Users/username/Development/cef_binary_3.2704.1434.gec3e9ed_macosx64 -G Xcode ..
62+
open obs-studio.xcodeproj/
63+
```
64+
65+
#### Building
66+
Build in Xcode (⌘+B)

0 commit comments

Comments
 (0)