Skip to content

Commit 8129d7e

Browse files
authored
Merge pull request #28 from DDRBoxman/osxbuild
Add instructions for building on OSX and Windows
2 parents f46a707 + b5097cc commit 8129d7e

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

README.md

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,80 @@ window.obsstudio.onVisibilityChange = function(visiblity) {
3434
window.obsstudio.onSceneChange = function(sceneName) {
3535
3636
};
37-
```
37+
```
38+
39+
## Building on OSX
40+
41+
### Building CEF
42+
#### Getting
43+
* Download CEF Mac 64 from [https://cefbuilds.com/](https://cefbuilds.com/)
44+
* At the time of writing this I used build 2704
45+
* Extract and cd into the folder
46+
47+
#### Setting Up Project
48+
```
49+
mkdir build
50+
cmake -D CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY=libc++ -G Xcode ..
51+
open cef.xcodeproj/
52+
```
53+
54+
#### Building
55+
Build in Xcode (⌘+B)
56+
57+
TODO: tell user to move stuff, or update FindCEF.cmake
58+
59+
### Building OBS and obs-browser
60+
#### Installing Dependencies
61+
```
62+
brew install ffmpeg x264 qt5 cmake
63+
```
64+
65+
#### Setting Up Project
66+
```
67+
git clone --recursive https://github.com/jp9000/obs-studio.git
68+
cd ./obs-studio
69+
git clone [email protected]:kc5nra/obs-browser.git ./plugins/obs-browser
70+
echo "add_subdirectory(obs-browser)" >> ./plugins/CMakeLists.txt
71+
mkdir build
72+
cd ./build
73+
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 ..
74+
open obs-studio.xcodeproj/
75+
```
76+
77+
#### Building
78+
Build in Xcode (⌘+B)
79+
80+
## Building on Windows
81+
82+
### Building CEF
83+
#### Getting
84+
* Download CEF Windows 64bit from [https://cefbuilds.com/](https://cefbuilds.com/)
85+
* At the time of writing this I used build 2704
86+
* Extract and cd into the folder
87+
88+
#### Setting Up Project
89+
* Run cmake-gui
90+
* In "where is the source code", enter in the repo directory (example: C:/Users/User/Desktop/cef_binary_3.2743.1445.gdad7c0a_windows64).
91+
* In "where to build the binaries", enter the repo directory path with the 'build' subdirectory (example: C:/Users/User/Desktop/cef_binary_3.2743.1445.gdad7c0a_windows64/build).
92+
* Press 'Configure' and select the generator that fits to your installed VS Version:
93+
Visual Studio 12 2013 Win64 or Visual Studio 14 2015 Win64
94+
* Press 'Generate' to generate Visual Studio project files in the 'build' subdirectory.
95+
* Open cef.sln from the 'build' subdirectory
96+
97+
#### Building
98+
Build in Visual Studio
99+
100+
TODO: tell user to move stuff, or update FindCEF.cmake
101+
102+
### Building OBS and obs-browser
103+
#### Follow the OBS build instructions
104+
[https://github.com/jp9000/obs-studio/wiki/Install-Instructions#windows](https://github.com/jp9000/obs-studio/wiki/Install-Instructions#windows)
105+
106+
#### Setting Up Project
107+
* Add add_subdirectory(obs-browser) to ./plugins/CMakeLists.txt
108+
* Set the CEF_ROOT_DIR path in cmake-gui for obs-studio (example: C:/Users/User/Desktop/cef_binary_3.2743.1445.gdad7c0a_windows64)
109+
* * Press 'Generate' to generate Visual Studio project files in the 'build' subdirectory.
110+
* Open obs-studio.sln from the 'build' subdirectory
111+
112+
#### Building
113+
Build in Visual Studio

0 commit comments

Comments
 (0)