Hello. Not sure what category to put this question in. I’m at my whit’s end.
Background: I have Antilatency Camera Tracking mat and sensors for UE. Worked fine until I upgraded to Win 11 and Visual Studio 2022.
Now, when I try to open up a C++ project to install the Antilatency plugin, I rebuild and compile errors.
I’ve uninstalled UE, reinstalled, and tried other fixes where I have to change 15_1 to 15_2 in the ‘…target.cs’ file. Also changing code in WindowsPlatformComilerSetup.h. I’m getting no where and have been at this for 2 days.
Anyhow, have suggestions or anyone use Antilatency that can help?
The issue seems to be you are using a compiler version newer than the one supported by UE 5.2 (At this point the default one will be too new).
Modifying the file WindowsPlatformComilerSetup.h to bump the version check is not advisable (If you changed it I recommend revering that change before trying the following fix).
The solution is to install the required version using the visual studio installer. Here is my answer with a screenshot example of a similar issue for UE 5.3
I’m still getting this error. I’ll try anything at this point other than paying for a new computer! Any other recommendations?
Running C:/Program Files/Epic Games/UE_5.2/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“D:/Unreal Engine Projects/MyProject/MyProject.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Development Win64 -Project=“D:/Unreal Engine Projects/MyProject/MyProject.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\julie\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for MyProjectEditor (no existing makefile) @progress push 5%
Parsing headers for MyProjectEditor
Running Internal UnrealHeaderTool “D:\Unreal Engine Projects\MyProject\MyProject.uproject” “D:\Unreal Engine Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest” -WarningsAsErrors -installed
Total of 4 written
Reflection code generated for MyProjectEditor in 1.5409459 seconds @progress pop
Building MyProjectEditor…
Using Visual Studio 2022 14.34.31948 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Upgrade]
[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1
[Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_2;’ in MyProjectEditor.Target.cs.
[Upgrade] Alternatively you can set this to ‘EngineIncludeOrderVersion.Latest’ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
[Upgrade]
Determining max actions to execute in parallel (24 physical cores, 48 logical cores)
Executing up to 24 processes, one per physical core
Building 9 actions with 9 processes…
[1/9] Resource Default.rc2
[2/9] Compile [x64] SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_1.cpp
C:\Program Files\Epic Games\UE_5.2\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive - expected a newline
[3/9] Compile [x64] MyProjectGameModeBase.gen.cpp cancelled
[4/9] Compile [x64] MyProjectGameModeBase.cpp cancelled
[5/9] Compile [x64] MyProject.init.gen.cpp cancelled
[6/9] Compile [x64] MyProject.cpp cancelled
[7/9] Link [x64] UnrealEditor-MyProject.dll cancelled
[8/9] Link [x64] UnrealEditor-MyProject.lib cancelled
[9/9] WriteMetadata MyProjectEditor.target cancelled
Well, this computer is dedicated to a VFX side of my studio so it only needs to run UE (5.2 for Antilatency) and a couple other programs so I just did a clean install of Windows. Using the steps you sent and the not supported version of MSVC it worked just fine.
Going to connect the cameras tomorrow and take it all for a spin. Thank you for the help!