Windows compilation Obs-studio

Source: Internet
Author: User

GitHub Download Source Https://github.com/jp9000/obs-studio

Also need a development package Http://code.fosshub.com/OBS/download/dependencies.zip

Environment: Windows 7 64-bit system

Tools: CMake 2.8.12,vs2013 Latest version, qt5.3.2 (Msvc2013_opengl version)

Compilation Description: Https://github.com/jp9000/obs-studio/wiki/Install-Instructions#windows

Start compiling-----------------------------------------------------------------

· Cmake-gui, fill in the source path, generate the path

· Click Configure, the compiler chooses vs 12 (equivalent to vs2013), the other options default

· If this box appears (this article is called the Error box), please note that the Output window error in CMake will have the appropriate error message

So far, no related path has been configured, error box is normal

· Configure various parameters:

Unzip the Dependencies.zip to the current directory.

Cmake-gui Click the Add Entry button. The name entry fills the Depspath,type option for the Path,value item as the full path of the Dependencies folder


Add a path like above

In addition, there is a zlib library that needs additional additions (not mentioned on GitHub).

Re-configure,

Without an accident, the output box prompts "Configuring Done", representing configure success

· Click the Generate button to generate the project. "Generate Done" appears, representing the build complete.

· A obs-studio.sln appears in the build path. vs2013 Open and compile the sln, done.

  • 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 being 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 the want to try with Vs2015, this Hint might is 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 found here:http://code.fosshub.com/obs/downloads

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

  • The following variables must is used to specify dependencies, these variables can either be specified via a Windows Enviro Nment variable, or through a CMake variable (optionally suffixed with ' + ' or ' up ' 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)
  • If you ' re building the GUI, the following cmake or Windows environment variable must is used separately from the other DEP Endencies to specify QT5 's location. Like the other environment variables, append + or 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 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, an D build (suffixed with or without 32/64 to specify architecture). They is excluded from the repo in. Gitignore for the sake of building, so they is safe to create a use within the repos Itory Base directory.

  • Press ' Configure ', then enable the copy_dependencies option, then press ' Configure ' again, and then press ' Generate ' to ge Nerate Visual Studio project files in the ' Build ' subdirectory.

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

Windows compilation Obs-studio

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.