Compile time error on building OBS-Studio on Windows 10

alokmahor

New Member
I am trying to build obs-studio by following official steps at
https://github.com/obsproject/obs-studio/wiki/Install-Instructions#windows-build-directions

I used cmake GUI to generate Visual Studio project. When I tried to build project in Visual Studio I am getting these errors

Severity Code Description Project File Line Suppression State
  1. Error C2039 'IsCursorCaptureEnabled': is not a member of 'winrt::Windows::Graphics::Capture::GraphicsCaptureSession' libobs-winrt C:\Users\alokm\obs-studio\libobs-winrt\winrt-capture.cpp 290
  2. Error C2039 'IsCursorCaptureEnabled': is not a member of 'winrt::Windows::Graphics::Capture::GraphicsCaptureSession' libobs-winrt C:\Users\alokm\obs-studio\libobs-winrt\winrt-capture.cpp 372
  3. Error C2039 'IsCursorCaptureEnabled': is not a member of 'winrt::Windows::Graphics::Capture::GraphicsCaptureSession' libobs-winrt C:\Users\alokm\obs-studio\libobs-winrt\winrt-capture.cpp 473

How can I resolve these erroes?

Here is my Visual Studio details:

Microsoft Visual Studio Community 2019
Version 16.8.4
VisualStudio.16.Release/16.8.4+30907.101
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Community

Visual C++ 2019 00435-60000-00000-AA868
Microsoft Visual C++ 2019
 
Top