github下载源码 https://github.com/jp9000/obs-studio

还需要一个开发包 http://code.fosshub.com/OBS/download/dependencies.zip

环境:windows 7 64位系统

工具:cmake 2.8.12,vs2013最新版,qt5.3.2(msvc2013_opengl版本)

编译说明:https://github.com/jp9000/obs-studio/wiki/Install-Instructions#windows

开始编译-----------------------------------------------------------------

· cmake-gui中,填写源码路径,生成路径

· 点击configure,编译器选择vs 12(相当于vs2013),其它选项默认

·  如果出现此框(本文以下称error框),请注意cmake中的输出窗口错误,会有相应的错误信息

目前为止,还没有配置过相关路径,出现error框是正常的

· 配置各种参数:

解压dependencies.zip,到当前目录。

cmake-gui中点击Add Entry按钮。name项填写 DepsPath,type选项为PATH,value项为dependencies文件夹的全路径

添加如上路径

另外,有个zlib库,需要额外添加一下(github上没有提到)。

重新configure,

没有意外的话,输出框提示“Configuring done”,代表configure成功

· 点击Generate按钮,生成工程。出现"generate done",代表生成完毕。

· 生成路径中,出现一个obs-studio.sln。vs2013打开并编译该sln,搞定。

  • Clone the repository and submodules:

     git clone --recursive https://github.com/jp9000/obs-studio.git
  • NOTE: OBS on windows currently requires VS2013 with the latest update, as obs-studio uses both C99 and C++11. Express might not be supported at this time (though if not, then it'll be fixed it at some point). You can always just get VS2013 Community Edition for free. In case you want to try with VS2015, this hint might be useful regarding a linking error (LNK2001 : unresolved external symbol _sprintf) in the text-freetype2 project.

  • Download (or build) development packages of FFmpeg, x264, Qt5, cURL. Pre-built windows dependencies (excluding Qt) for VS2013 can be found here:http://code.fosshub.com/OBS/downloads

  • Download windows version of cmake from: http://www.cmake.org/

  • The following variables must be used to specify dependencies, these variables can either be specified via a windows environment variable, or through a cmake variable (optionally suffixed with '32' or '64' to specify architecture):

    • DepsPath (path to the include for all dependencies, not including Qt)
    • FFmpegPath (path to just FFmpeg include directory)
    • x264Path (path to just x264 include directory)
    • curlPath (path to just cURL include directory)
  • NOTE: Search paths and search order for base dependency library/binary files, relative to their include directories:

    Library files

    • ../lib
    • ../lib32 (if 32bit)
    • ../lib64 (if 64bit)
    • ./lib
    • ./lib32 (if 32bit)
    • ./lib64 (if 64bit)

    Binary files:

    • ../bin
    • ../bin32 (if 32bit)
    • ../bin64 (if 64bit)
    • ./bin
    • ./bin32 (if 32bit)
    • ./bin64 (if 64bit)
  • If you're building the GUI, the following cmake or windows environment variable must be used separately from the other dependencies to specify Qt5's location. Like the other environment variables, append 32 or 64 if you wish to build both architectures:

    QTDIR (path to Qt build base directory)

  • NOTE: The GUI builds by default. If you don't want to build the GUI, add a cmake boolean variable DISABLE_UI, set to true.

  • NOTE: An example Qt directory you would use here if you installed Qt5 to D:\Qt would usually look something like this:

    (32bit) D:\Qt\5.3\msvc2013
    (64bit) D:\Qt\5.3\msvc2013_64

  • Run cmake-gui. In "where is the source code", enter in the repo directory (example: D:/obs). In "where to build the binaries", enter the repo directory path with the 'build' subdirectory (example: D:/obs/build).

  • NOTE: You should create one or more of the following subdirectories within the repository for building: release, debug, and build (suffixed with or without 32/64 to specify architecture). They are excluded from the repo in .gitignore for the sake of building, so they are safe to create an use within the repository base directory.

  • Press 'Configure', then enable the COPY_DEPENDENCIES option, then press 'Configure' again, and then press 'Generate' to generate visual studio project files in the 'build' subdirectory.

  • Open obs-studio.sln from the 'build' subdirectory, and it should run and be good to go. All required dependencies should be copied on compile and it should be a fully fuctional build environment. The output is built in the 'rundir/[build type]' directory of your 'build' subdirectory.

windows编译 obs-studio的更多相关文章

  1. vs2015 编译obs studio 遇到的几个错误

    1. >D:\project\vs\obs\ObsProject\obs-studio\plugins\win-wasapi\win-wasapi.cpp(245): error C2065: ...

  2. Building OpenCascade on Windows with Visual Studio

    Building OpenCascade on Windows with Visual Studio eryar@163.com 摘要Abstract:详细说明OpenCascade的编译配置过程,希 ...

  3. 【Lua学习笔记之:Lua环境搭建 Windows 不用 visual studio】

    Lua 环境搭建 Windows 不用 visual studio 系统环境:Win7 64bit 联系方式:yexiaopeng1992@126.com 前言: 最近需要学习Unity3d游戏中的热 ...

  4. OGRE 2.1 Windows 编译

    版权所有,转载请注明链接 OGRE 2.1 Windows 编译 环境: Windows 7 64Bit Visual Studio 2012 OGRE 2.1 CMake 2.8.12.1 OGRE ...

  5. Windows下visual studio code搭建golang开发环境

    Windows下visual studio code搭建golang开发环境 序幕 其实环境搭建没什么难的,但是遇到一些问题,主要是有些网站资源访问不了(如:golang.org),导致一些包无法安装 ...

  6. obs studio 使用

    专业,开源,无广告,免费,录屏/推流神器--obs studio 稍微简单的也有captura, 原理:调用本地API获取音频流,图像流(全屏幕,单个windows窗口的图像输出)->开源音视频 ...

  7. 【转载】OGRE 2.1 Windows 编译

    OGRE 2.1 Windows 编译 环境: Windows 7 64Bit Visual Studio 2012 OGRE 2.1 CMake 2.8.12.1 OGRE: OGRE官方推出了最新 ...

  8. 代码从windows下visual studio到andriod平台迁移的修改记录

    前言 前言也是迁言,从windows的visual studio 2012平台迁移到android平台上,需用修改挺多的代码和需用注意地方. 我们当然的平台当初就考虑了其他平台跨平台的应用问题,所以一 ...

  9. OBS Studio 24.0 RC1 发布 – 有大惊喜

    导读 对于那些使用OBS Studio进行跨平台直播和屏幕录制需求的人来说,OBS Studio 24.0即将推出,但首先发布的是他们的候选版本,以审查进入这一重大更新的新功能. OBS Studio ...

  10. php beast windows编译教程

    git clone https://github.com/Microsoft/php-sdk-binary-tools.git c:\php-sdk cd c:\php-sdk git checkou ...

随机推荐

  1. Jquery实现图片左右自动滚动

    图片左右滚动的效果想必大家都有见到过吧,其实很简单.在本文将为大家介绍下使用Jquery是如何实现图片左右自动滚动的. 代码如下:<!DOCTYPE HTML>  <html> ...

  2. php字符串首字母转换大小写的实例分享

    php中对字符串首字母进行大小写转换的例子. in: 后端程序首字母变大写:ucwords() <?php $foo = 'hello world!'; $foo = ucwords($foo) ...

  3. C盘清理大作战

    C盘会随着使用时间慢慢变满(即使你不在C盘装程序),下面就记录几个C盘清理的方法: 1.使用清理软件清理C盘(360卫视,腾讯管家) 2.转移虚拟内存:计算机右键属性——高级管理设置——高级——性能- ...

  4. 没有文件扩展".js"的脚本引擎 解决办法

    在命令行运行JScript脚本时,遇到如下的错误提示: “输入错误: 没有文件扩展“.js”的脚本引擎.” 这样的错误,原因是因为JS扩展名的文件被其他软件关联了,需要取消关联. 如系统中安装了ULT ...

  5. C++ list 类学习笔记

    双向循环链表list list是双向循环链表,,每一个元素都知道前面一个元素和后面一个元素.在STL中,list和vector一样,是两个常被使用的容器.和vector不一样的是,list不支持对元素 ...

  6. ACM俱乐部 字符串

    数制转换分数: 2 时间限制:1 秒 内存限制:32 兆 特殊判题: 否 提交:59 解决: 24 标签 进制转换 题目描述 求任意两个不同进制非负整数的转换(2进制-16进制),所给整数在long所 ...

  7. Oracle全表扫描

    优化器在形成执行计划时需要做的一个重要选择——如何从数据库查询出需要的数据.对于SQL语句存取的任何表中的任何行,可能存在许多存取路径(存取方法),通过它们可以定位和查询出需要的数据.优化器选择其中自 ...

  8. 2、[转]WPF与WinForm的比较

    http://www.cnblogs.com/KnightsWarrior/archive/2010/07/09/1774059.htmlhttp://www.cnblogs.com/zenghong ...

  9. SQLSERVER 更改默认端口号

    最近这几天,服务器的数据库(SQLSERVER)老是遭受到攻击,有人不断地轮训想登陆数据库,从SQL的日志里可以看出来,一开始我是通过本地安全策略禁用了对应的几个攻击ip,同时把数据库的sa账号给禁用 ...

  10. JVM -XX: 参数介绍(转)

    垃圾回收器相关常用参数: 功能开关: 参数 默认值或限制 说明 参数 默认值 功能 -XX:-AllowUserSignalHandlers 限于Linux和Solaris,默认不启用 允许为java ...