Problem with Plugin Package

I can’t understand why there are errors at the end of the plugin package:

  • ERROR: UBT ERROR: Failed to produce item (PI_Operations.dll)
  • ERROR: UnrealBuildTool failed
  • BUILD FAILED

Projekt name: PI_Operations_Exporter
Plugin name: PI_Operations

Output Log:

UATHelper: Package Plugin Task (Windows):   Building 7 actions with 8 processes...
UATHelper: Package Plugin Task (Windows):     [1/7] PCLaunch.rc
UATHelper: Package Plugin Task (Windows):     [2/7] PI_Operations.cpp
UATHelper: Package Plugin Task (Windows):     b:\pasja\vr games\unreal engine projects\c++ projects\pi_logics\_packaged plugins\pi_operations\pi_operations\pi_operations\hostproject\plugins\pi_operations\source\pi_operations\PI_Operations.h(8): fatal error C1083: Nie mo?na otworzy? pliku do??cz: 'ModuleManager.h': No such file or directory
UATHelper: Package Plugin Task (Windows):     [3/7] PI_Operations_BP.cpp
UATHelper: Package Plugin Task (Windows):     B:\Pasja\VR Games\Unreal Engine Projects\C++ Projects\PI_Logics\_Packaged Plugins\PI_Operations\PI_Operations\PI_Operations\HostProject\Plugins\PI_Operations\Source\PI_Operations\Private\PI_Operations_BP.cpp(4): fatal error C1083: Nie mo?na otworzy? pliku do??cz: 'UnrealMathUtility.h': No such file or directory
UATHelper: Package Plugin Task (Windows):     [4/7] PI_Operations.init.gen.cpp
UATHelper: Package Plugin Task (Windows):     [5/7] PI_Operations_BP.gen.cpp
UATHelper: Package Plugin Task (Windows):   ERROR: UBT ERROR: Failed to produce item: B:\Pasja\VR Games\Unreal Engine Projects\C++ Projects\PI_Logics\_Packaged Plugins\PI_Operations\PI_Operations\PI_Operations\HostProject\Plugins\PI_Operations\Binaries\Win64\UE4Editor-PI_Operations.dll
UATHelper: Package Plugin Task (Windows):          (see B:\Programy\Unreal Engine\UE_4.20\Engine\Programs\AutomationTool\Saved\Logs\UBT-UE4Editor-Win64-Development.txt for full exception trace)
UATHelper: Package Plugin Task (Windows): Total build time: 84,27 seconds (Parallel executor: 0,00 seconds)
UATHelper: Package Plugin Task (Windows): Took 84,9922109s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Package Plugin Task (Windows): ERROR: UnrealBuildTool failed. See log for more details. (B:\Programy\Unreal Engine\UE_4.20\Engine\Programs\AutomationTool\Saved\Logs\UBT-UE4Editor-Win64-Development.txt)
UATHelper: Package Plugin Task (Windows): (see B:\Programy\UnrealEngine\UE_4.20\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
UATHelper: Package Plugin Task (Windows): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Package Plugin Task (Windows): BUILD FAILED

Can you show includes from PI_Operations_BP.cpp and PI_Operations.h?

PI_Operations_BP.cpp:

#include "PI_Operations_BP.h"
#include "UnrealMathUtility.h"

PI_Operations.h:

#pragma once

#include "CoreMinimal.h"
#include "ModuleManager.h"
1 Like