Packaging plugin error

UE5.1

Help, I have created two plugins, PluginA and PluginB. I am calling a function from PluginB within PluginA. I have added PluginB in the .cs file. When I try to package PluginA, it gives an error saying it cannot find PluginB.

Below is the screenshot of the error and the project with the error.

image

LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""D:/UnrealEngine5.1/UE_5.1/Engine/Build/BatchFiles/RunUAT.bat" BuildPlugin -Plugin="E:/UnrealProjects/TestPlugin/Plugins/pluginA/pluginA.uplugin" -Package="E:/plugin/111/pluginA" -CreateSubFolder" -nocompile -nocompileuat ]
UATHelper: Package Plugin Task (Windows): Running AutomationTool...
UATHelper: Package Plugin Task (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Package Plugin Task (Windows): Starting AutomationTool...
UATHelper: Package Plugin Task (Windows): Parsing command line: BuildPlugin -Plugin=E:/UnrealProjects/TestPlugin/Plugins/pluginA/pluginA.uplugin -Package=E:/plugin/111/pluginA -CreateSubFolder -nocompile -nocompileuat
UATHelper: Package Plugin Task (Windows): Initializing script modules...
UATHelper: Package Plugin Task (Windows): Total script module initialization time: 0.21 s.
UATHelper: Package Plugin Task (Windows): Executing commands...
UATHelper: Package Plugin Task (Windows): Copying 43 file(s) using max 64 thread(s)
UATHelper: Package Plugin Task (Windows): Reading plugin from E:\plugin\111\pluginA\HostProject\Plugins\pluginA\pluginA.uplugin...
UATHelper: Package Plugin Task (Windows): Building plugin for host platforms: Win64
UATHelper: Package Plugin Task (Windows): Running: D:\UnrealEngine5.1\UE_5.1\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe "D:\UnrealEngine5.1\UE_5.1\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" UnrealEditor Win64 Development -Project=E:\plugin\111\pluginA\HostProject\HostProject.uproject -plugin=E:\plugin\111\pluginA\HostProject\Plugins\pluginA\pluginA.uplugin -iwyu -noubtmakefiles -manifest=E:\plugin\111\pluginA\HostProject\Saved\Manifest-UnrealEditor-Win64-Development.xml -nohotreload -log="C:\Users\My\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UnrealE
ngine5.1+UE_5.1\UBT-UnrealEditor-Win64-Development.txt"
UATHelper: Package Plugin Task (Windows): Log file: C:\Users\My\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UnrealEngine5.1+UE_5.1\UBT-UnrealEditor-Win64-Development.txt
UATHelper: Package Plugin Task (Windows): Could not find definition for module 'pluginB', (referenced via Target -> pluginA.Build.cs)
UATHelper: Package Plugin Task (Windows): Took 2.3848447s to run dotnet.exe, ExitCode=6
UATHelper: Package Plugin Task (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\My\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UnrealEngine5.1+UE_5.1\UBT-UnrealEditor-Win64-Development.txt)
UATHelper: Package Plugin Task (Windows): AutomationTool executed for 0h 0m 3s
UATHelper: Package Plugin Task (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Package Plugin Task (Windows): BUILD FAILED

UE project

1 Like

i had no problem compiling

i just opened in 5.1 and editor compiled it.

1 Like


Thanks for reply,I want to package pluginA in the way shown in the picture.

1 Like

so what worked for me add plugin B as dependant plugin to pluginA

i removed pluginB listed in pluginA.build.cs

then package pluginB, it packaged both plugins

1 Like

Could you please send me the modified project?

try it

so when you package pluginB it packages both plugins

Thank you for your response.

I tried opening the project and packaging the PluginB plugin, and it was successful, but the target directory only contains one plugin.

So I tried packaging PluginA to the same directory again, but it failed. However, I found a HostProject project in this directory, and my A plugin is inside it."
image


“I checked the log for packaging PluginA, and it indicated that PluginB was missing, which seems a bit illogical.”

error log

Unable to find plugin 'pluginB' (referenced via command line -> pluginA.uplugin). Install it and try again, or remove it from the required plugin list.

i will investigate and let you know.

Update:
Whole project packages fine, project compiles fine in VS but when you try to use package option on plugin its doesnt work. I failed to package plugin way you want. Sorry

1 Like

No worries, thank you for all your help. It’s possible that the current engine version doesn’t support this approach anymore. I’ll try other methods.