# 在尝试编译c++项目时出现错误

**URL:** <https://forums.unrealengine.com/t/c/1199648>\
**Category:** 简体中文 (Simplified Chinese)\
**Tags:** unreal-engine, CPP, question\
**Created:** [June 15, 2023, 3:30am UTC](https://forums.unrealengine.com/t/c/1199648 "2023-06-15T03:30:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orkin\_Prime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Orkin\_Prime](https://forums.unrealengine.com/u/Orkin_Prime)\
**Post date:** [June 15, 2023, 3:30am UTC](https://forums.unrealengine.com/t/c/1199648/1 "2023-06-15T03:30:33Z")

</div>

Running F:/EPIC/UE\_5.2/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“D:/GitProject/TempProject/TempProject.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:/GitProject/TempProject/TempProject.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE  
Log file: C:\Users\Orkin\_Prime\AppData\Local\UnrealBuildTool\Log.txt  
Creating makefile for TempProjectEditor (no existing makefile)  
Expecting to find a type to be declared in a module rules named ‘MetaHumanProjectUtilities’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.

在之前的开发过程中并没有出现此问题，在团队引入git进行版本管理之后的某一次从仓库的拉取后便出现了该问题。

下面是AI给出的情况分析，但我不知该如何下手。

根据您提供的信息，出现了一个错误信息，指示在UE5Rules模块中未找到名为’MetaHumanProjectUtilities’的模块规则，并要求该类型必须从Unreal Build Tool定义的’ModuleRules’类型派生。

这个错误可能是由于以下几种情况引起的：

1. 缺少或错误的插件：'MetaHumanProjectUtilities’模块规则可能属于您项目所使用的某个插件。请确保您已经正确安装、配置和启用了与该模块规则相关的插件。
2. 插件版本不兼容：如果您的项目依赖于特定版本的插件，而当前使用的版本不兼容，可能会导致该错误。尝试更新或回滚至与项目兼容的插件版本。
3. 项目编译文件缺失或损坏：检查项目的编译文件是否完整且没有损坏。可以尝试清除项目的中间编译文件，并重新生成编译文件。

解决此问题的具体步骤取决于您所使用的虚幻引擎版本、项目配置以及相关插件。建议参考虚幻引擎的文档、社区支持或开发者论坛，寻求更详细的帮助和指导来解决这个问题。

---

<div class="post-metadata">

**Author:** ![MicroGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MicroGame](https://forums.unrealengine.com/u/MicroGame)\
**Post date:** [June 15, 2023, 3:52am UTC](https://forums.unrealengine.com/t/c/1199648/2 "2023-06-15T03:52:38Z")

</div>

Look Here

> [@UE5.2 build error](https://forums.unrealengine.com/t/ue5-2-build-error/1199067):
>
> [Log.txt](https://forums.unrealengine.com/uploads/short-url/d3XhqdX34dBOZeRRJRcnvVOj5Pn.txt) (11.5 KB)

---

<div class="post-metadata">

**Author:** ![MicroGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MicroGame](https://forums.unrealengine.com/u/MicroGame)\
**Post date:** [June 15, 2023, 4:05am UTC](https://forums.unrealengine.com/t/c/1199648/3 "2023-06-15T04:05:35Z")

</div>

暂时是5.2 Quixel Bridge 插件的问题，卸载掉就好了。

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 15, 2023, 4:06am UTC](https://forums.unrealengine.com/t/c/1199648/4 "2023-07-15T04:06:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
