I deleted it and the license error disappeared but it still gives an error
Seeing as your compiler is throwing errors that a feature is undefined, it probably means you need to update your MSVC to a newer version. Run the visual studio installer and check the newer MSVC if you can and see if that helps with your compiler message.
Here is some documentation regarding versions of dependencies needed for unreal to work
Those are checked in me. Right now I am downloading other MSVC files
For 5.2 the release notes say you should be using the 17.4 14.34.31933 toolchain and Windows 10 SDK (10.0.18362.0). But you’re building 14.43.34808 and 10.0.22621.0.
You’ll need to install the older toolchains using the Visual Studio Installer:
But my pc is windows 11. Should I still download windows 10 version ?
And I couldn’t find the first setting. How should I search to find 17.4 14.34.31933 toolchain ?
You can get the SDK’s from the microsoft archive page
There you have Windows 10 SDK, version 1903 (10.0.18362.1)
I downloaded this inside from the Vs. Should I also download from this site or just from the Vs is enough ?
VS should be enough. Though you may need to change the sdk version in the build configuration if you also have newer versions installed.
Ether in your engine or project
\UnrealEngine\Engine\Saved\UnrealBuildTool\BuildConfiguration.xml
or
Project name\Saved\UnrealBuildTool\BuildConfiguration.xml
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<WindowsPlatform>
<WindowsSdkVersion>10.0.18362.0</WindowsSdkVersion>
</WindowsPlatform>
</Configuration>
I’m guessing the devkit folder is 10.0.18362.0 (it usually works with the version number but check the install path to be sure)
The SDK version is correct but I still couldn’t change the toolchain version it’s still 14.43.34808 . Where can I change that ?
inside of WindowsPlatform
tags you can use
<CompilerVersion>Your needed version</CompilerVersion>
Seems the toolchain can also be set in the config files (not sure if this isn’t dated info at this point though, haven’t gone back to 5.2 in forever)
In my project there isn’t an engine file and when I open the config> DefaultEngine.ini file there isn’t any compiler version
You’d need to add it by hand under
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
in DefaultEngine.ini inside of the config folder inside of your project
So most likely
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
CompilerVersion="14.34.31933"
ToolchainVersion="14.34.31933"
taking MagForceSeven’s advice into account regarding toolchain version
Yes and type in the toolchain and compiler It’s an ini file that takes in parameters. Not all of the possibilities are present inside of the ini file, sometimes you have to add them, as long as it’s in line with the documentation it will work.
Try deleting the intermediate, deriveddatacache and binaries. Regenerate the project files from the uproject right click, then launch the sln file in vs and try building.
If you have a project with c++ don’t run it via double clicking the uproject file.
Ok So I did a quick test. Made a fresh project in 5.2. No modifications to ini files or build config files
just one change in the target files from 5_1 to 5_2 (also change in editor version of target file)
Built it and worked out of the box
I’m guessing this is needed
IT WORKED. Thanks for everything
Wow glad it helped. You went through quite the grueling process. Give yourself a reward and take a break
Thanks but it’ll all thanks to you and @MagForceSeven.