【问题标题】:Problems to recompile a UE4 plugin重新编译 UE4 插件的问题
【发布时间】:2021-07-11 13:08:10
【问题描述】:

我正在尝试重新编译 Dialogo 系统插件 (https://forums.unrealengine.com/t/dialogue-system/44974),但我根本做不到。我尝试了好几种方法,包括论坛工作人员建议的方法,但都没有办法

这是我收到的错误消息:

运行 C:/Program Files/Epic Games/UE_4.26/Engine/Binaries/DotNET/UnrealBuildTool.exe 开发 Win64 -Project="D:/Simulation/unreal/MyProject/MyProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE 使 MyProjectEditor 的 makefile 无效(DialogueSystem.Build.cs 已修改)@progress push 5% 解析 MyProjectEditor 的标头
运行 UnrealHeaderTool “D:\Simulation\unreal\MyProject\MyProject.uproject” "D:\Simulation\unreal\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\renat\AppData\Local\UnrealBuildTool\Log_UHT.txt" - 已安装反射代码为 MyProjectEditor 在 4,3286771 秒内生成@进度弹出 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTComposite_Context.cpp(1): 错误:预期 BTComposite_Context.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTComposite_Question.cpp(1): 错误:预期 BTComposite_Question.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTComposite_QuestionGroup.cpp(1): 错误:预期 BTComposite_QuestionGroup.h 是第一个标头 包括。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTContextNode_Interface.cpp(1): 错误:预期 BTContextNode_Interface.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTDialogueFunctionLibrary.cpp(1): 错误:预期 BTDialogueFunctionLibrary.h 是第一个标头 包括。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTTask_CloseDialogue.cpp(1): 错误:预期 BTTask_CloseDialogue.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTTask_ShowPhrases.cpp(1): 错误:预期 BTTask_ShowPhrases.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\BTTask_WaitAnswer.cpp(1): 错误:预期 BTTask_WaitAnswer.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\DialogueButton.cpp(1): 错误:预期 DialogueButton.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\DialogueEventListener.cpp(1): 错误:预期 DialogueEventListener.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\DialogueSettings.cpp(1): 错误:预期 DialogueSettings.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\DialogueSystemModule.cpp(1): 错误:预期 DialogueSystemModule.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Private\QuestBook.cpp(1):错误:预期 QuestBook.h 是第一个包含的标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\BehaviorTreeEditor\QuestionCustomization.cpp(1): 错误:预期 QuestionCustomization.h 将包含在第一个标头中。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\BehaviorTreeEditor\ShowPhrasesCustomization.cpp(1): 错误:预期 ShowPhrasesCustomization.h 是第一个标题 包括。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\QuestBookEditor\QuestBookEditor.cpp(1): 错误:预期 QuestBookEditor.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\QuestBookEditor\QuestBookEditorCommands.cpp(1): 错误:预期 QuestBookEditorCommands.h 是包含的第一个标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\QuestBookEditor\QuestBookEditorCustomization.cpp(1): 错误:预期 QuestBookEditorCustomization.h 是第一个标题 包括。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\DialogueSystemEditorModule.cpp(1): 错误:预期 DialogueSystemEditorModule.h 是第一个标题 包括。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\DialogueSystemStyle.cpp(1): 错误:预期 DialogueSystemStyle.h 是第一个包含的标头。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\QuestBookAssetTypeActions.cpp(1): 错误:预期 QuestBookAssetTypeActions.h 是第一个标头 包括。 D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystemEditor\Private\QuestBookFactory.cpp(1): 错误:预期 QuestBookFactory.h 是包含的第一个标头。 构建 MyProjectEditor... 使用 Visual Studio 2019 14.27.29111 工具链 (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110) 和 Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10)。用 12 个进程构建 13 个动作...@progress '正在编译 C++ 源代码 代码...' 0% @progress '正在编译 C++ 源代码...' 8% [1/13] Default.rc2 @progress '正在编译 C++ 源代码...' 15% [2/13] Default.rc2 @progress '正在编译 C++ 源代码...' 23% [3/13] PCH.DialogueSystem.cpp
D:\Simulation\unreal\MyProject\Plugins\UE4-DialogueSystem-master\Source\DialogueSystem\Classes\BTTask_ShowPhrases.h(7): 致命错误 C1083:无法打开文件包括:'Widget.h': 没有这样的文件或目录

请帮忙。我真的需要使用这个插件来制作我的项目的演示。

【问题讨论】:

    标签: plugins unreal-engine4


    【解决方案1】:

    您可以尝试日志的建议并更改包含的顺序。我想你正在使用一个 c++ 项目。有时顺序确实很重要。 还要检查插件是否添加到 build.cs 文件的依赖项列表中。该文件位于您的项目源文件夹中。您会看到文件中已经有一个依赖项列表,您应该在列表中包含插件名称并重新构建。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-08
      • 2020-09-22
      • 2016-07-19
      • 2021-03-20
      • 1970-01-01
      • 2016-04-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多