# How can I compile a plugin in Engine folder?

**URL:** <https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423>\
**Category:** Plugins\
**Tags:** recompile, unreal-engine, Plugins, question\
**Created:** [July 28, 2016, 8:45am UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423 "2016-07-28T08:45:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f146ef64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f146ef64](https://forums.unrealengine.com/u/anonymous_user_f146ef64)\
**Post date:** [July 28, 2016, 8:45am UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/1 "2016-07-28T08:45:07Z")

</div>

Hi,I have modified some source code of one plugin in Engine folder? However,How can I compile it? I delete the old dll in the Binaries folder, then double click one .uproject, it tells me to compile manully,but I compiled it in vs2015,it not works? I also try window-\>delvelop tool-\> model to recompile, it tell complie error

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f146ef64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f146ef64](https://forums.unrealengine.com/u/anonymous_user_f146ef64)\
**Post date:** [July 28, 2016, 8:56am UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/2 "2016-07-28T08:56:52Z")

</div>

Om,I get the engine downloaded from launcher and not the version downloaded from GitHub with source code !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_15e5587d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_15e5587d](https://forums.unrealengine.com/u/anonymous_user_15e5587d)\
**Post date:** [July 28, 2016, 11:55am UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/3 "2016-07-28T11:55:23Z")

</div>

I have the same problem. I changed some code in the plugin SteamVR but when i recompile the plugin it displays error. i tried deleting the dll but it does not compile at all. I hope we must not recompile the full engine code.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [July 29, 2016, 4:50pm UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/4 "2016-07-29T16:50:37Z")

</div>

There is command in UAT (unreal’s replacement of make) to build plugin, you might deduce something from here

[https://github.com/EpicGames/UnrealEngine/blob/dff3c48be101bb9f84633a733ef79c91c38d9542/Engine/Source/Programs/AutomationTool/Scripts/BuildPluginCommand.Automation.cs](https://github.com/EpicGames/UnrealEngine/blob/dff3c48be101bb9f84633a733ef79c91c38d9542/Engine/Source/Programs/AutomationTool/Scripts/BuildPluginCommand.Automation.cs)

Alternaticly you can do it more hackish way, you can move plugin to game project (disable original plugin first) and compile it there, and then move back to engine forder

I don’t use lacuher version anymore for long time, but check if there is GenerateProjectFiles.bat or Setup.bat somewhere in main engine directories, they should generate project files for engine from it source files

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f146ef64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f146ef64](https://forums.unrealengine.com/u/anonymous_user_f146ef64)\
**Post date:** [August 3, 2016, 8:23am UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/5 "2016-08-03T08:23:49Z")

</div>

Thanks for your reply!  
I’m sorry so many days passed!  
The link seem to not work now!  
The sencond methed may be a good way!I just use a simple plugin to test,it runs right! However,if the plugin is depends on many others,it will be very frustrat.Om,I am a newer! If I do that,it always tell me cannot find many .h headers  
I have not found GenerateProjectFiles.bat or setup.bat.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_88d57b37](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_88d57b37](https://forums.unrealengine.com/u/anonymous_user_88d57b37)\
**Post date:** [October 11, 2017, 10:18pm UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/6 "2017-10-11T22:18:55Z")

</div>

according to this tutorial ([UE4 - recompiling plugins (Windows & Linux) - YouTube](https://www.youtube.com/watch?v=WtfLfYY_k2Y)) the command should be something like this, compiling the final plugin into the [TempFolder]:

```
"C:\Program Files\Epic Games\UE_4.17\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -plugin="C:\Program Files\Epic Games\UE_4.17\Engine\Plugins\[...]\YourPlugin.uplugin" -package="[TempFolder]"

```

---

<div class="post-metadata">

**Author:** ![Anonymous\_9bb87105a268b68f92aa2173eb4c3922](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_9bb87105a268b68f92aa2173eb4c3922](https://forums.unrealengine.com/u/Anonymous_9bb87105a268b68f92aa2173eb4c3922)\
**Post date:** [October 19, 2017, 7:26am UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/7 "2017-10-19T07:26:04Z")

</div>

I have this problem. You can create new C++ class file in plugin,then compile,it works.  
before I close pulgin ,then compile project,plugin can be update, but now it cant work. I donnt know why,

---

<div class="post-metadata">

**Author:** ![Anonymous\_9bb87105a268b68f92aa2173eb4c3922](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_9bb87105a268b68f92aa2173eb4c3922](https://forums.unrealengine.com/u/Anonymous_9bb87105a268b68f92aa2173eb4c3922)\
**Post date:** [October 19, 2017, 7:26am UTC](https://forums.unrealengine.com/t/how-can-i-compile-a-plugin-in-engine-folder/365423/8 "2017-10-19T07:26:16Z")

</div>

I have this problem. You can create new C++ class file in plugin,then compile,it works.  
before I close pulgin ,then compile project,plugin can be update, but now it cant work. I donnt know why,
