Prerequisites
- Windows 10 1909+ (or Windows 11)
- Visual Studio 2022 (at least Community Edition)
- Windows 10 SDK (minimum 10.0.22621.0)
- C++ ATL for latest v143 build tools (x86 & x64)
- MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
- Git for Windows
- CMake 3.28 or newer
Configure Build Project
-
Clone the repository including submodules:
git clone --recursive https://github.com/obsproject/obs-studio.git
-
Set current directory to
obs-studio
-
Check available CMake presets:
cmake --list-presets
-
Select the
windows-x64
preset:cmake --preset windows-x64
- Available and supported architectures are:
x64
- x86 (32-bit) builds of obs-studio are no longer supported
- Any other CMake variables can be provided as usual and can also override variables set by the preset if necessary
- Available and supported architectures are:
Build obs-studio
- Open the Visual Studio solution file in the generated build directory (
build_x64\obs-studio.sln
) - Select the build configuration that you want to build (Debug, MinSizeRel, Release, RelWithDebInfo)
- Press
<Control>+<Shift>+<B>
to build the solution (Build -> Build Solution)- Alternatively, press
<F5>
to build and run it (Debug -> Start Debugging)
- Alternatively, press
Alternatively the project can also be built on the command line:
- Make sure the current directory is set to the
obs-studio
source code directory (if you continued from “Configuring Build Project” above, you are already there) - Run
cmake --build --preset windows-x64
- Run the app by navigating to
.\build_x64\rundir\<Debug|Release|RelWithDebInfo|MinSizeRel>\bin\64bit
, either on command line or in File Explorer, and runobs64.exe
.
While it is possible to do so, we generally do not recommend running OBS from command line.