error : Could not find definition for module 'GeometricObjects'

大家好,我是个 UE 新手。
准备尝试打开一个开源项目:

编译时候报错:

Build started...
1>------ Build started: Project: ToolsFrameworkDemo, Configuration: Development_Editor x64 ------
1>Using bundled DotNet SDK
1>Log file: C:\Users\\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for ToolsFrameworkDemoEditor (no existing makefile)
1>UnrealBuildTool : error : Could not find definition for module 'GeometricObjects', (referenced via Target -> RuntimeGeometryUtils.Build.cs)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.0\Engine\Build\BatchFiles\Build.bat" ToolsFrameworkDemoEditor Win64 Development -Project="C:\workspace\UnrealRuntimeToolsFrameworkDemo-main\UnrealRuntimeToolsFrameworkDemo-main\ToolsFrameworkDemo.uproject" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "ToolsFrameworkDemo.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

在 UE5 这个 GeometricObjects 有什么变动吗,问题出在哪里?TIA!

The classes are now in the GeometryCore module.

In RuntimeGeometryUtils.Build.cs, change:
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "GeometricObjects"});

To This:
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "GeometryCore"});

1 Like