cmake preset windows-x86

x10bulls

New Member
Hi

I know that 32-bit OBS is not supported anymore, however I kind of need OBS to run alongside a Pinnacle Dazzle device that only has 32-bit drivers, hence I can only look at a 32-bit OS for now.

Has anyone been able to get the 32-bit version to compile?

I have added the following in the CMakePresets.json file:
JSON:
{
      "name": "windows-x86",
      "displayName": "Windows x32",
      "description": "Default Windows build (x32)",
      "inherits": ["environmentVars"],
      "condition": {
        "type": "equals",
        "lhs": "${hostSystemName}",
        "rhs": "Windows"
      },
      "architecture": "x86,version=10.0.18362",
      "binaryDir": "${sourceDir}/build_x86",
      "generator": "Visual Studio 17 2022",
      "cacheVariables": {
        "GPU_PRIORITY_VAL": {"type": "STRING", "value": "$penv{GPU_PRIORITY_VAL}"},
        "VIRTUALCAM_GUID": {"type": "STRING", "value": "A3FCE0F5-3493-419F-958A-ABA1250EC20B"},
        "ENABLE_BROWSER": true
      }
    }

but I then get the following errors when running the command cmake --preset windows-x86

Code:
C:\Users\David Tait\source\repos\obs-studio>cmake --preset windows-x86
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.26100.
CMake Error at CMakeLists.txt:5 (project):
  Failed to run MSBuild command:

    C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe

  to get the value of VCTargetsPath:

    MSBuild version 17.14.14+a129329f1 for .NET Framework
    Build started 2025/07/29 22:38:15.

    Project "C:\Users\David Tait\source\repos\obs-studio\build_x86\CMakeFiles\4.0.3\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|Win32. [C:\Users\David Tait\source\repos\obs-studio\build_x86\CMakeFiles\4.0.3\VCTargetsPath.vcxproj]
    Done Building Project "C:\Users\David Tait\source\repos\obs-studio\build_x86\CMakeFiles\4.0.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\Users\David Tait\source\repos\obs-studio\build_x86\CMakeFiles\4.0.3\VCTargetsPath.vcxproj" (default target) (1) ->
    (PrepareForBuild target) ->
      C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|Win32. [C:\Users\David Tait\source\repos\obs-studio\build_x86\CMakeFiles\4.0.3\VCTargetsPath.vcxproj]

Anyone that can help me get a 32 bit ** unsupported ** build?
 
Top