# Plugin Task Failed: Cannot open include file: 'Runnable.h': No such file or directory. (Plugin uses Multi-threading)

**URL:** <https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545>\
**Category:** Plugins\
**Tags:** multithreading, unreal-engine, compile-error, Plugins, package-error, question, CPP\
**Created:** [May 25, 2019, 2:48am UTC](https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545 "2019-05-25T02:48:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![El-Magic16](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/el-magic16/32/88715_2.png) [@El-Magic16](https://forums.unrealengine.com/u/El-Magic16)\
**Post date:** [May 25, 2019, 2:48am UTC](https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545/1 "2019-05-25T02:48:45Z")

</div>

I want to package my plugin for UE 4.20 and unreal cannot find [Runnable.h](https://api.unrealengine.com/INT/API/Runtime/Core/HAL/FRunnable/index.html)? I’m really confused because when I compile this normally I get no compile errors, but when I go to package the plugin for use in other projects, it fails. Do I have to include a certain module in my plugin’s build.cs file? This plugin makes use of multi-threading and I need this feature.

**Things I’ve tried:** (And still no luck)

1. Deleted Build, Binaries, Intermediate, Saved and .vs folders (Regenerate VS files and rebuilt binaries)
2. Cleaned and rebuilt entire project from Visual Studio 17
3. Copied the entire project onto a different drive and tried to package the plugin from there.
4. Deleted the class and recreated it.
5. Removed `#include "Runnable.h"` (Gave me different error: Cannot open include file ‘RunnableThread.h’)
6. Rebuilt the plugin module.
7. Used the ‘Object’ class template instead of the empty one. (File\>New C++ Class\>Show All Classes\>Object)

**Here is some information:** (If you need some more context)

1. I’m packaging this for Windows 64-bit in UE 4.20
2. I used the empty class template by going to File\>New C++ Class\>Empty
3. The error happens at line 5 in the header file (linked below).
4. AutomationTool exiting with ExitCode=5
5. I’m packaging this plugin from the editor by going to Edit\>Plugins\>(Selecting my plugin)\>Package
6. Log file
7. Header file

Any idea on what’s going on?

Thanks in advance for your answers and help.

---

<div class="post-metadata">

**Author:** ![El-Magic16](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/el-magic16/32/88715_2.png) [@El-Magic16](https://forums.unrealengine.com/u/El-Magic16)\
**Post date:** [May 25, 2019, 2:57am UTC](https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545/2 "2019-05-25T02:57:31Z")

</div>

Wow 5 minutes later, I fixed it! Haha.

**All I did was use the full include path to `Runnable.h`, `ThreadSingleton.h` and `RunnableThread.h`**

Then I went to Edit\>Plugins\>(Find my plugin)\>Package to package my plugin

**Plugin compiled successfully!**

 ![277863-plugin-fix.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/f/8ff4468dce872858a0bfb0e478b92b898cefe151.png)

---

<div class="post-metadata">

**Author:** ![El-Magic16](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/el-magic16/32/88715_2.png) [@El-Magic16](https://forums.unrealengine.com/u/El-Magic16)\
**Post date:** [July 27, 2019, 3:47am UTC](https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545/3 "2019-07-27T03:47:05Z")

</div>

Here is a better fix

**Start the include path to `Runnable.h`, `ThreadSingleton.h` and `RunnableThread.h` from their module’s name.**

Like this: (Runnable.h resides in the Core module)

![283383-plugin-header-fix-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/1/3b15df97d5bd35c3f64efc58a47e7daa082c1ba8.png)

Then I went to Edit\>Plugins\>(Find my plugin)\>Package, to package my plugin

**Plugin compiled successfully!**

Hope this helps anyone!!!

---

<div class="post-metadata">

**Author:** ![BHS\_SWLC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BHS\_SWLC](https://forums.unrealengine.com/u/BHS_SWLC)\
**Post date:** [August 9, 2023, 7:18am UTC](https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545/4 "2023-08-09T07:18:30Z")

</div>

Thank you! 🙂
