# Package Plugin when my PluginB is dependent on my PluginA

**URL:** <https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, Plugins, UE4, question\
**Created:** [July 20, 2022, 3:20am UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980 "2022-07-20T03:20:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![934647971](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@934647971](https://forums.unrealengine.com/u/934647971)\
**Post date:** [July 20, 2022, 3:20am UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980/1 "2022-07-20T03:20:55Z")

</div>

When I developed two plug-ins named plugina and pluginb, pluginb depends on plugina. Then I pack the plug-in. When I pack plugina, I succeed. When I pack pluginb, I am prompted “ERROR: Unable to find plugin ‘PluginA’ (referenced via command line → PluginB.uplugin). Install it and try again, or remove it from the required plugin list.”  
What should I do?

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [August 4, 2022, 7:27pm UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980/2 "2022-08-04T19:27:03Z")

</div>

Hi there,

Have you found the solution yet?  
I found this old post, not sure if you tried this before

> [@Plugin dependent on another plugin](https://forums.unrealengine.com/t/plugin-dependent-on-another-plugin/387324/9):
>
> FWIW, just tried this out in 4.17. In the .uplugin file of your plugin that will load an additional plugin, add a “Plugins” field on the same level as the other fields: MyPlugin.uplugin: "Modules": [{ "Name": "MyPlugin", "Type": "Runtime", "LoadingPhase": "Default" }], "Plugins": [ // \<-- { // \<-- "Name": "AdditionalPlugin", // \<-- "Enabled": true // \<-- } …

---

<div class="post-metadata">

**Author:** ![livada](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/livada/32/725279_2.png) [@livada](https://forums.unrealengine.com/u/livada)\
**Post date:** [April 10, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980/3 "2023-04-10T21:36:04Z")

</div>

Seams like the build script for plugins is not searching for dependencies in the host project. So far the only solution that worked for me is to move PluginA (in your case) to Plugins folder in the Unreal Engine installation.

---

<div class="post-metadata">

**Author:** ![gaspardp\_dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gaspardp\_dev](https://forums.unrealengine.com/u/gaspardp_dev)\
**Post date:** [June 17, 2023, 2:08pm UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980/4 "2023-06-17T14:08:20Z")

</div>

Thank you for this solution. I faced the same problem and was also able to resolve it by installing the first plugin (PluginA) in the Engine.

However, on my first attempt, installing PluginA in the engine resulted in the following error when trying to package PluginB: “This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.” because apparently it is not possible to install a plugin in the Engine installed by the Epic Launcher. One has to build the engine from source (github) in order to install additional plugins.

After building the engine, installing PluginA (i.e. just dropping it in the Plugins folder), I was able to build my dependant PluginB. This was with Unreal 5.1.1

---

<div class="post-metadata">

**Author:** ![livada](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/livada/32/725279_2.png) [@livada](https://forums.unrealengine.com/u/livada)\
**Post date:** [June 27, 2023, 11:08am UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980/5 "2023-06-27T11:08:01Z")

</div>

For me it works with prebuilt Engine (i.e. the one installed by the launcher and not from the source) if I place my PluginA inside \EpicGames\UE\_5.2\Engine\Plugins\Marketplace folder.

On linux I use Engine built from source so it works in …/Engine/Plugins just fine.

---

<div class="post-metadata">

**Author:** ![gaspardp\_dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gaspardp\_dev](https://forums.unrealengine.com/u/gaspardp_dev)\
**Post date:** [June 30, 2023, 8:19am UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980/6 "2023-06-30T08:19:54Z")

</div>

Thanks for the tip! Indeed, placing the built plugin under `\Engine\Plugins\Marketplace\...` instead if directly under `\Engine\Plugins\...` works for me too!

---

<div class="post-metadata">

**Author:** ![yfqvip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yfqvip](https://forums.unrealengine.com/u/yfqvip)\
**Post date:** [July 16, 2024, 3:26am UTC](https://forums.unrealengine.com/t/package-plugin-when-my-pluginb-is-dependent-on-my-plugina/608980/7 "2024-07-16T03:26:11Z")

</div>

> [@livada](#):
>
> For me it works with prebuilt Engine (i.e. the one installed by the launcher and not from the source) if I place my PluginA inside \EpicGames\UE\_5.2\Engine\Plugins\Marketplace folder.
> 
> On linux I use Engine built from source so it works in …/Engine/Plugins just fine.

This indeed solves the problem.
