官方編譯指南地址
編譯步驟
1.下載
(1)下載依賴庫,包括 FFmpeg,x264,curl
VS2013: https://obsproject.com/downloads/dependencies2013.zip
VS2015: https://obsproject.com/downloads/dependencies2015.zip
(2) VS2015
http://www.itellyou.cn/?ikzsdm=aib02
(3)Qt 5.8 msvc2015
http://download.qt.io/archive/qt/
(4)CMake
(5)OBS源碼
https://github.com/jp9000/obs-studio
2. 編譯
(1)配置CMake
配置下圖中紅色標記的選項。
注:其中FFmpegPath、curlPath、x264Path最好單獨指定,否則,引用路徑可能和本地安裝過的FFmpeg衝突,導致編譯失敗。
另外:需額外配置 ZLIB,如下
(2)生成
CMake中點擊【Configure】,並選擇 VS2015版本 64位或32位, 很快會出現”Done”。
點擊【Generate】,生成VS2015工程文件。
(3)編譯
使用VS2015,打開,編譯運行即可。