mac环境下

下载obs代码

1
git clone --recursive https://github.com/obsproject/obs-studio.git

qt环境

mac一般自带的有qt5,所以找到Qt5WidgetsConfig.cmake所在的目录之后,设置环境变量

1
2
export Qt5Widgets_DIR=/usr/local/Cellar/qt/5.11.1/lib/cmake/Qt5Widgets
export Qt5MacExtras_DIR=/usr/local/Cellar/qt/5.11.1/lib/cmake/Qt5MacExtras

ffmpeg环境

1
ffmpeg  ./configure  && make && make install

编译obs

1
2
3
4
5
cd obs
mkdir build
cd build
cmake ..
make