UE5.3 cannot build project

For Those who cannot build C++ project via UE5.3:


For anyone who has this issue, please downgrade your VS 2022’s MSVC version.

[2/6] Compile [x64] SharedPCH.Engine.Cpp20.cpp
Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h
D:\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: û???__has_feature???ΪԤ???꣬???0???#if/#elif??
D:\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: Ԥ???ָ???- Ӧ???
D:\UE_5.3\Engine\Source\Runtime\Engine\Classes\Engine\SkeletalMesh.h(799): warning C4996: ‘FBoneMirrorInfo’: FBoneMirrorInfo is deprecated. Please use UMirrorDataTable for mirroring support. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.

After Visual Studio 2022 is updated to 17.12.x, the MSVC version 19.42.3443 will encounter this issue.
Please install the VS 2022 v 17.11.x and below, the recommended version is 17.8.

Only downgrade the MSVC’s version to 19.41.x does not solve this problem

3 Likes

For those wondering how to downgrade a Visual Studio 2022 Community installation, please find the following advice: How to install specific version of Visual Studio 2022 - Stack Overflow.

11 Likes

This worked for me. I ran into the build error only while trying a C++ project and not a blueprint project. Day 1 of unreal engine learning for me. So, without this help, I would have struggled quite a bit. Thanks!

Worked for me for UE 5.3.2
I also did this: Unable to generate C++ project after upgrading to Visual Studio 17.12 [blocking] - #8 by TrueFranco

Brilliant, thanks, quick easy fix.

Here to say thank you. :pray:

Since this is a hit on google, for anyone else looking, don’t bother with reinstalling modules and such.
Go to your project.target.cs file, usually in the source folder and get the file.
In it, set the DefaultBuildSettings = BuildSettingsVersion.Latest;
instead of V2, V3, V4, V5, etc.

I wasted over a day reinstalling VS 2022, MSVC and playing with a bunch of nonsense.
This will fix it.

Hi villinx…

I opened up Visual Studio installer, installed a version of 14.38, not exactly the version after the .38. The installer does not list that level of version detail.

Is this the config file that gets created for your project or is this a global file?

If it’s a global file to all UE projects, where does %appdata% point to?
I thought it might be the AppData folder on my c:\users\me\AppData folder, but that path does not exist like that,

I do have these two paths

  • c:\users\me\AppData\Local\UnrealEngine\
  • c:\users\me\AppData\Local\UnrealBuildTool\

Neither of which seemed to have the BuildConfiguration.xml file.

But I do see the BuildConfiguration.xml file in my local project’s directory structure.

  • D:\DEV_WORKSPACES\Unreal_Workspace<myprojectname>\Saved\UnrealBuildTool\

So, I edited it to be identical to yours, I’ve been able to verify that I have the exact same version installed as you show in your image. I edited, saved tried to build in VS 2022 community and am still getting the same errors.

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <WindowsPlatform>
        <CompilerVersion>14.38.33130</CompilerVersion>
        <ToolchainVersion>14.38.33130</ToolchainVersion>
    </WindowsPlatform>
</Configuration>

I tried blowing away the VS project file, and other directories that is common in times of need, rebuilding the solution, then tried to re-compile, but still getting the same errors…

Thoughts?

EDIT
I found this article and right at the top it states where to find the global buildconfigfile.xml…
Once I found it, and changed IT, everything compiled!

Thank you so much for the direction on this villinx, you are a life savor!

This is related knowledge about the winOS.
It is an environment variable of the operating system that represents a collection of many folders of the same type.
You need to open and run the command with win+R, enter %appdata% and press Enter to view.