Engine plugins included in the Engine are unable to be packaged. Attempting to package one results in the package process failing with an error stating that all source files must include the same precompiled header first.
Setting the PCHUsage property for each module in the plugin to UseExplicitOrSharedPCHs allows the plugin to be packaged.
RESULT:
The package process fails with the following error: UnrealBuildTool: ERROR: All source files in module "Paper2D" must include the same precompiled header first.
EXPECTED:
The Paper 2D plugin packages successfully.
WORKAROUND:
Add PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; at the top of the Build.cs file for each module in the plugin, above any include paths or dependencies for the plugin.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-47480 in the post.
0 |
Component | UE - Foundation - Build - Farm |
---|---|
Affects Versions | 4.16.2, 4.17 |
Created | Jul 19, 2017 |
---|---|
Resolved | Apr 19, 2019 |
Updated | Aug 16, 2019 |