Skip to content

Unable to compile FiveM from source #3650

Description

@oracularhades

What happened?

I'm trying to follow

Windows 11 SDK (10.0.22000.0) no longer exists in Visual Studio's installer and isn't available in Microsoft archive. I've tried using Windows 11 SDK (10.0.22621.0) (the closest version that Visual Studio makes available) and using "retarget solution", but I get the following error:
static_assert failed: 'Mismatched C++/WinRT headers.'

Do you have any more information regarding how the Windows SDK should be setup?

Expected result

FiveM should have compiled

Reproduction steps

  1. Follow https://github.com/citizenfx/fivem/blob/master/docs/building.md, but install Windows 11 SDK (10.0.22621.0)
  2. Right-click the solution in Visual Studio and select "10.0.22621.0".
  3. Attempt to build.

Importancy

Crash

Area(s)

FiveM

Specific version(s)

FiveM commit 1ba0b38 on main branch, Windows 11.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions