Xrime 2024-03-10 13:41 采纳率: 0%
浏览 742

UE5.3在创建c++项目时报错

UE5.3在创建c++项目时报错,有哪位佬能帮我看看这到底是什么问题吗

Running E:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project="E:/Documents/Unreal Projects/Test/Test.uproject" -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="E:/Documents/Unreal Projects/Test/Test.uproject" -game -rocket -progress
Log file: C:\Users???AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Generating VisualStudio project files:
Discovering modules, targets and source code for project...
WARNING: UnrealBuildTool has banned the MSVC 14.30.0-14.33.99999 toolchains due to compiler issues. Please install a different toolchain such as 14.36.32532 by opening the generated solution and installing recommended components or from the Visual Studio installer.
Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.32.

  • 写回答

3条回答 默认 最新

  • 专家-赤兔[在线] 优质创作者: 编程框架技术领域 2024-03-10 13:42
    关注

    引自免费微信小程序:皆我百晓生

    在创建UE5.3的C++项目时,你遇到了以下问题:

    1. 部分平台(IOS, Android, Linux, LinuxArm64)因无效的SDK设置被跳过。这通常意味着你的系统中没有为这些平台安装相应的SDK或工具链。若不打算开发这些平台的游戏,可以忽略此警告;若需要支持,请确保正确安装并配置对应平台的SDK。

    2. UnrealBuildTool提示已禁止使用MSVC 14.30.0-14.33.99999版本的编译器工具链,建议安装14.36.32532或更高版本。这是因为特定版本的Visual Studio编译器存在已知问题。

    3. 当前检测到的编译器版本是14.32,而UE5.3要求使用Visual Studio 2022 17.4或更新版本(即MSVC 14.34.x及以上版本)。你需要按照以下步骤操作以解决此问题:

      • 升级Visual Studio 2022:打开Visual Studio Installer,确保选择“工作负载”中的“游戏开发”选项,并且勾选“使用C++的桌面开发”,它会自动包含最新的C++编译器工具链。请检查更新列表,确保安装的是17.4版或更新版本。

      • 检查项目配置:确保在你的Unreal Engine项目的生成文件或者.uproject文件中,没有硬编码指定使用VisualStudio2019编译器版本。

    完成上述步骤后,重新启动Unreal Engine并尝试再次创建或重新生成C++项目,应该可以解决报错问题。如果仍有问题,请查阅生成的日志文件C:\Users\???AppData\Local\UnrealBuildTool\Log_GPF.txt获取更详细的错误信息。

    评论 编辑记录

报告相同问题?

问题事件

  • 创建了问题 3月10日