# How to manually build plugins?

**URL:** <https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910>\
**Category:** Plugins\
**Tags:** build, unreal-engine, Plugins, Visual-Studio, question\
**Created:** [April 4, 2016, 4:22pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910 "2016-04-04T16:22:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_41dc327b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41dc327b1](https://forums.unrealengine.com/u/anonymous_user_41dc327b1)\
**Post date:** [April 4, 2016, 4:22pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/1 "2016-04-04T16:22:08Z")

</div>

I am trying to use a plugin ( [Release VaRest 1.1-rc9 · ufna/VaRest · GitHub](https://github.com/ufna/VaRest/releases/tag/1.1-r9) ) that was compiled for UE 4.9; my project is done in UE 4.11. When I try to open the project, it treis to rebuild the plugin, but it fails and it tells me to rebuild it manually.

Question is, how can I build a plugin? I tried following the documentation ([Plugins in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Programming/Plugins/index.html#pluginexamples) ), but I’m stuck at point 3: Rebuild your C++ project files … how to do that? The documentation is not really clear about this…

If I try with csc (using a command line like

`csc /t:library /out:VaRestPlugin.dll VaRestPlugin.Build.cs`,

I get as a response:

`VaRestPlugin.Build.cs(7,30): error CS0246: The type or namespace name 'ModuleRules' could not be found (are you missing a using directive or an assembly reference?)`

How do I specify the assembly reference? If I try with something like

`csc /t:library /r:ModuleRules.dll /out:VaRestPlugin.dll VaRestPlugin.Build.cs`

of course I get as a response

`error CS0006: Metadata file 'ModuleRules.dll' could not be found`

If I try instead to import the project into Visual Studio, of course it cannot find the includes like `Engine.h`, `CoreUObject.h`, etc.

Also, reading the Build.cs of that particular plugin, I’ve seen that it’s getting a ThirdPartyPath:

```
private string ThirdPartyPath
{
    get { return Path.GetFullPath(Path.Combine(ModulePath, "../../ThirdParty/")); }
}

```

I see that there are a lot of `ThirdParty` subdirectories under the `Engine` directory. Which one is the correct one? Do that means that I have to put the plugin somewhere inside the `Engine` directory, in order to manually build it?

---

<div class="post-metadata">

**Author:** ![Philippe\_St-Amand](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Philippe\_St-Amand](https://forums.unrealengine.com/u/Philippe_St-Amand)\
**Post date:** [April 4, 2016, 7:23pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/2 "2016-04-04T19:23:16Z")

</div>

First of all, make sure you’ve followed all of these steps from the plugin’s wiki: [GitHub - ufna/VaRest: REST API plugin for Unreal Engine 4 - we love restfull backend and JSON communications!](https://github.com/ufna/VaRest/wiki/Plugin-Installation)

If you want to rebuild the plugin, which you probably have to since you’re on a different engine version, you’ll have to do the thing where they suggest to copy the VaRest project into YourProject/Plugins/VaRestPlugin folder instead of downloading the pre-compiled version

* * *

Now, for rebuilding the plugin, try this:

- Close UE4
- Manually delete the “Intermediate” and “Binaries” folders of the plugin, if they are present (directly in windows explorer)
- (Optionnal) Manually delete the “Intermediate” and “Binaries” folders of your actual game project. This will cause your game modules (non-plugin) to be rebuilt too
- (Optionnal) Right-click your .uproject file (in windows explorer), and click “Generate Visual Studio Project Files”
- Double-click on your .uproject file to launch UE4. You should see a popup telling you that some modules need to be rebuilt. Accept.

This should rebuild your plugin. The stuff I tagged as (Optionnal) should be unrelated to rebuilding your actual plugin, but I sometimes end up doing these steps just to be sure.

If the build fails, the log file detailing the errors is under “YourProject/Saved/Logs/YourProject.log”. We’ll probably need the contents of this log file if this doesn’t work. Good luck!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41dc327b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41dc327b1](https://forums.unrealengine.com/u/anonymous_user_41dc327b1)\
**Post date:** [April 5, 2016, 8:56am UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/3 "2016-04-05T08:56:06Z")

</div>

Thank you, the rebuilding procedure worked.

---

<div class="post-metadata">

**Author:** ![CrimsonHawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrimsonHawk](https://forums.unrealengine.com/u/CrimsonHawk)\
**Post date:** [October 24, 2016, 12:11am UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/4 "2016-10-24T00:11:48Z")

</div>

And in case of Blueprint based project? At the start of the project it doesn’t offer any rebuilding.

Edit: For others, who wonder: make a new C++ project just for this, copy in the plugin, and do these steps, then copy the plugin to your new project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [October 24, 2016, 2:24pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/5 "2016-10-24T14:24:52Z")

</div>

But this is rebuilding all plugins inside the project folder. How can I make it build only changed plugins?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24cff47d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24cff47d](https://forums.unrealengine.com/u/anonymous_user_24cff47d)\
**Post date:** [January 26, 2017, 10:03pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/6 "2017-01-26T22:03:02Z")

</div>

For pure Blueprint project, just add empty C++ class from File menu. Then put plugin folder without Binaries file and next time when you load, it would recompile the plugin.

---

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [February 20, 2017, 9:50am UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/7 "2017-02-20T09:50:27Z")

</div>

Unfortunately, when I do this it insists that I have Visual Studio 2015 installed.

Unfortunately, I can’t have VS2015 because it insists on putting several dozen gigabytes of stuff on my system drive (even though I tell it to install on another drive) which, because it’s an SSD, doesn’t have enough space.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_98061df4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_98061df4](https://forums.unrealengine.com/u/anonymous_user_98061df4)\
**Post date:** [June 8, 2017, 11:42pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/8 "2017-06-08T23:42:57Z")

</div>

BTW the output from the UBT (including errors) is sent to `Project/Saved/Logs/[ProjectName].log`.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_98061df4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_98061df4](https://forums.unrealengine.com/u/anonymous_user_98061df4)\
**Post date:** [June 8, 2017, 11:43pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/9 "2017-06-08T23:43:57Z")

</div>

Don’t delete unchanged plugin binaries.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_eccc5cf1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_eccc5cf1](https://forums.unrealengine.com/u/anonymous_user_eccc5cf1)\
**Post date:** [November 29, 2017, 4:30pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/10 "2017-11-29T16:30:05Z")

</div>

I found that creating an empty C++ project, plus adding whatever plugins I wanted to build

---

<div class="post-metadata">

**Author:** ![AnalogPill](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnalogPill](https://forums.unrealengine.com/u/AnalogPill)\
**Post date:** [March 2, 2019, 7:09pm UTC](https://forums.unrealengine.com/t/how-to-manually-build-plugins/352910/11 "2019-03-02T19:09:35Z")

</div>

I have a similar issue, I followed the steps in this thread and still get a build failure. I am trying to build a plugin from integration source. I can post my log if anyone is available to help, could really use the assistance. 🙂

The error has to do with missing modules of my plugin, and for the life of me I don’t know how to address the issue.
