obs编译
mac环境下
下载obs代码
1 | git clone --recursive https://github.com/obsproject/obs-studio.git |
qt环境
mac一般自带的有qt5,所以找到Qt5WidgetsConfig.cmake所在的目录之后,设置环境变量1
2export 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 | cd obs |