Skip to content

Commit b75d633

Browse files
authored
Update README.md
1 parent 5dda5a3 commit b75d633

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

+35
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,41 @@ Install dependencies:
2929
$ brew install opencv onnxruntime
3030
```
3131

32+
#### Finding libobs
33+
34+
If you install OBS app you already have the binaries for libobs (e.g. `/Applications/OBS.app/Contents/Frameworks/libobs.0.dylib`)
35+
But you don't have the headers - so clone the main obs repo e.g. `git clone [email protected]:obsproject/obs-studio.git`
36+
37+
Then you'd need to point `FindLibObs.cmake` to find the lib and headers:
38+
```
39+
find_path(LIBOBS_INCLUDE_DIR
40+
NAMES obs.h
41+
HINTS
42+
ENV obsPath${_lib_suffix}
43+
ENV obsPath
44+
${obsPath}
45+
PATHS
46+
/Users/roy_shilkrot/Downloads/obs-studio/libobs/
47+
/usr/include /usr/local/include /opt/local/include /sw/include
48+
PATH_SUFFIXES
49+
libobs
50+
)
51+
```
52+
and
53+
```
54+
find_library(${base_name_u}_LIB
55+
NAMES ${_${base_name_u}_LIBRARIES} ${lib_name} lib${lib_name} ${lib_name}.0
56+
HINTS
57+
ENV obsPath${_lib_suffix}
58+
ENV obsPath
59+
${obsPath}
60+
${_${base_name_u}_LIBRARY_DIRS}
61+
PATHS
62+
/Applications/OBS.app/Contents/Frameworks
63+
/usr/lib /usr/local/lib /opt/local/lib /sw/lib
64+
# ...
65+
```
66+
3267
Build:
3368
```
3469
$ mkdir build && cd build

0 commit comments

Comments
 (0)