obs windows 编译和打包
- 构建最新版obs studio;
- 参考 https://github.com/obsproject/obs-studio/wiki/Install-Instructions
- 下载并安装 VS https://visualstudio.microsoft.com/zh-hans/downloads/
- 下载并安装 QT https://www.qt.io/offline-installers
- 下载并解压依赖库 https://obsproject.com/downloads/dependencies2017.zip
- 注:如果是编译已有的工程,可看已有的工程依赖的是哪个库,像有一些旧的代码可能就是基于 dependencies2015 来开发的,弄错了可能会编译出错
- 下载并安装 Windows 10 SDK https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/
- 注:这步有可能不需要,也有可能需要,vs2019 就已经包含了该 sdk,如果后面编译不过,再来做这步亦可。10.0.18362.0 sdk 安装还可能会提示下载 WPTx64-x86_en-us.msi 失败,多重试几次即可。
- 下载源码 git clone --recursive https://github.com/obsproject/obs-studio.git
- 注:这里建议下载最新稳定的版本,不建议使用 master,我这里使用的是 obs-studio-25.0.1
- 下载并安装 cmake https://cmake.org/download