Hello, I downloaded the Unreal Engine 5.1 source code from GitHub and ran the Setup.bat file. After all the downloads were complete, when I run the GenerateProjectFiles.bat file, I get an error saying ‘Unable to find valid latest C++ toolchain for VisualStudio2022 x64.’ In the tutorial I followed (https://www.youtube.com/watch?v=jFe37SviLk8), I selected and downloaded all the tools and components of Visual Studio (when reinstalling Visual Studio). However, it didn’t work in any way, and I don’t know exactly what to do. Can someone help?
When I run the GenerateProjectFiles.bat file for Unreal Engine 5.1 source code, I encounter an error
hi @IsmailKermeli ,
The error is caused by UE5.1 not supporting the latest version of VS2022.
I suggest you use my corrected version and the latest 5.3 version
jimshalo10/UnrealEngine-5 at Luoshuangs-GPULightmass-5.3 (github.com)
You only need to build an older source version is you have compatibility version problem for a plugin
Ah, my friend, I think I’ve solved the problem, but I’m not sure how effective it is. Now, in the code of the file at the path Engine\Platforms\Hololens\Source\Programs\UnrealBuildTool\HoloLensProjectGenerator.cs, specifically at line 87, the code for the file on that path looks like this:
DirectoryReference? PlatformWinMDLocation = HoloLensPlatform.GetCppCXMetadataLocation(Compiler, “Latest”, WindowsArchitecture.x64, Logger);
However, I overcame the issue by replacing “Latest” with “Preview.” I hope this works for server processes in the future and doesn’t give me different errors. I hope my modification is correct.
You answer is correct my friend the latest versions are all “Preview” and hence the build number does not exist. Good Luck
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.