UnrealBuildTool Dependancy Warning

I am getting this warning when I build…

UnrealBuildTool: Warning: Plugin ‘A’ does not list plugin ‘B’ as a dependency, but module ‘A’ depends on ‘B’

But in my A.Build.cs file I have this…

public class A : ModuleRules
{
   public A(ReadOnlyTargetRules Target) : base(Target)
   {
      PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
      
      PublicIncludePaths.AddRange(
         new string[] {
            "A/Public"
            // ... add public include paths required here ...
         }
         );
            
      
      PrivateIncludePaths.AddRange(
         new string[] {
            "A/Private",
            // ... add other private include paths required here ...
         }
         );
         
      
      PublicDependencyModuleNames.AddRange(
         new string[]
         {
            "Core",
            // ... add other public dependencies that you statically link with here ...
            "B"
         }
         );
         
      
      PrivateDependencyModuleNames.AddRange(
         new string[]
         {
            "CoreUObject",
            "Engine",
            "Slate",
            "SlateCore",
            // ... add private dependencies that you statically link with here ...	
         }
         );
      
      
      DynamicallyLoadedModuleNames.AddRange(
         new string[]
         {
            // ... add any modules that your module loads dynamically here ...
         }
         );
   }
}

So… Yeah. Ummmm. Where am I supposed to list B as being a dependency of A?

6 Likes

you need to modify your PluginA.uplugin file

for example

{
	"FileVersion": 3,
	"Version": 1,
	"VersionName": "1.0",
	"FriendlyName": "PluginA",
	"Description": " my plugin description.",
	"Category": "MyPlugins",
	"CreatedBy": "",
	"CreatedByURL": "",
	"DocsURL": "",
	"MarketplaceURL": "",
	"SupportURL": "",
	"CanContainContent": true,
	"IsBetaVersion": false,
	"Installed": false,
  "Modules": [
    {
      "Name": "PluginA",

      "Type": "Developer",
      "LoadingPhase": "Default"
    }
  ],
  "Plugins": [
    {
      "Name": "PluginB",
      "Enabled": true
    }
  ]
}
27 Likes

How did you know? Is this documented anywhere??

Thanks for this. Not OP, but you saved my bacon.

Thankyou this saved my butt

Thank you for your help!