# Package Plugin (Binary + Header) - Missing precompiled manifest

**URL:** <https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817>\
**Category:** Plugins\
**Tags:** Packaging-Failed, unreal-engine, Plugins, UE4, CPP, question\
**Created:** [July 25, 2019, 1:39pm UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817 "2019-07-25T13:39:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![codewing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@codewing](https://forums.unrealengine.com/u/codewing)\
**Post date:** [July 25, 2019, 1:39pm UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/1 "2019-07-25T13:39:52Z")

</div>

Hello,  
i’m trying to package a plugin with the binaries and C++ header files only. I’m using the following settings:

* * *

**MyPlugin.Build.cs** :

 ![283265-build.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/7/6a77d4d8a108855c0068a25d1da2ed58063c1965.png)

* * *

The error I receive:

`UATHelper: Packaging (Windows (64-bit)): ERROR: Missing precompiled manifest for 'MyPlugin'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in MyPlugin.build.cs to override.`

* * *

I expect the error to go away but it is still there after adding the line “Precompile for targets…”

---

<div class="post-metadata">

**Author:** ![codewing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@codewing](https://forums.unrealengine.com/u/codewing)\
**Post date:** [September 8, 2019, 7:08pm UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/2 "2019-09-08T19:08:18Z")

</div>

The solution I’m using is the following:

- Compile the plugin using the command line:

> “ENGINE\_DIR\UE\_4.22\Engine\Build\BatchFiles\RunUAT.bat” BuildPlugin -Plugin=“PATH\_TO\_MY\_PLUGIN\MyPlugin.uplugin” -Package=“PATH\_TO\_BUILD\_FOLDER” -TargetPlatforms=Win64 -Rocket -precompile

- Obviously replace **ENGINE\_DIR** , **PATH\_TO\_MY\_PLUGIN** , **MyPlugin** , **PATH\_TO\_BUILD\_FOLDER**

- **Note** that you should either add **-precompile** to the argument (as above) or put **bPrecompile=true** into your build.cs files

- After building the plugin is done **add/replace bPrecompile=true with bUsePrecompiled = true**

- Delete all the .cpp files (in the source and intermediate folders) (Untested: you can even delete the header files but then you can’t extend the cpp classes anymore)

- Your plugin is now ready to use without the source code

---

<div class="post-metadata">

**Author:** ![evehal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@evehal](https://forums.unrealengine.com/u/evehal)\
**Post date:** [September 11, 2019, 1:48pm UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/3 "2019-09-11T13:48:40Z")

</div>

it works,thank you very much

---

<div class="post-metadata">

**Author:** ![codewing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@codewing](https://forums.unrealengine.com/u/codewing)\
**Post date:** [September 11, 2019, 4:36pm UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/4 "2019-09-11T16:36:03Z")

</div>

Glad I could help!

---

<div class="post-metadata">

**Author:** ![nterheoid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nterheoid](https://forums.unrealengine.com/u/nterheoid)\
**Post date:** [August 8, 2020, 10:26pm UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/5 "2020-08-08T22:26:35Z")

</div>

sorry i know this is a bit dated,  
but could you explain a little more what the PATH\_TO\_BUILD\_FOLDER is?

---

<div class="post-metadata">

**Author:** ![codewing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@codewing](https://forums.unrealengine.com/u/codewing)\
**Post date:** [August 9, 2020, 6:51am UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/6 "2020-08-09T06:51:24Z")

</div>

Sure, it’s just the path to an empty directory where you want your built plugin (i.e. the generated dlls and other resources) to be.

---

<div class="post-metadata">

**Author:** ![wxfred](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wxfred/32/88719_2.png) [@wxfred](https://forums.unrealengine.com/u/wxfred)\
**Post date:** [March 16, 2022, 9:28am UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/8 "2022-03-16T09:28:36Z")

</div>

There are still .obj files generated in the intermediate folder, means each of my algorithm c files is exposed with a .obj file. That’s terrible.

---

<div class="post-metadata">

**Author:** ![Curtainheronn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Curtainheronn](https://forums.unrealengine.com/u/Curtainheronn)\
**Post date:** [July 17, 2025, 2:50am UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/9 "2025-07-17T02:50:12Z")

</div>

Thank you soooo much

---

<div class="post-metadata">

**Author:** ![DryreL](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dryrel/32/1042339_2.png) [@DryreL](https://forums.unrealengine.com/u/DryreL)\
**Post date:** [September 3, 2025, 10:04am UTC](https://forums.unrealengine.com/t/package-plugin-binary-header-missing-precompiled-manifest/452817/10 "2025-09-03T10:04:58Z")

</div>

You rock!! Years later, it’s been useful for me.

So I created a script for everyone. Use the following script for automatic build plugins for distribution **(make sure to open as text editor first and edit the initial values).**

# **[UnrealEnginePluginBuilder.bat](https://gist.github.com/DryreL/b5c40c765acb0e7b5a8f3dad1dd3233d)**

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/5/fc5aa1db8731a26822e9f6ddf5611271f282f415.png)
