We packaged a plugin by following steps,
Packaged the plugin and added
bPrecompile=true
inmyplugin.build.cs
(Also tried to package the build with-precompile
argument) Before packagingmyplugin.build.cs
,public class MyPlugin : ModuleRules { public MyPlugin(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; PrecompileForTargets = PrecompileTargetsType.Any; bPrecompile = true;
After packaging, added
bUsePrecompiled = true
andPrecompileForTargets = PrecompileTargetsType.Any;
inmyplugin.build.cs
after packagingMyPlugin.build.cs
,public class MyPlugin : ModuleRules { public MyPlugin(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; PrecompileForTargets = PrecompileTargetsType.Any; bUsePrecompiled = true;
Deleted C++ files & intermediate folder from the packaged plugin Used the plugin with a sample project (Included in the Plugin directory) and it is loaded without any issues. But when we tried to package the game or try to launch the game we are getting the following error:
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 - setPrecompileForTargets = PrecompileTargetsType.Any;
inMyPlugin.build.cs
to override.
PackagingResults
: Error: Missing precompiled manifest for 'MyPlugin'. This module was most likely not flagged for being included in a precompiled build - setPrecompileForTargets = PrecompileTargetsType.Any;
inMyPlugin.build.cs
to override.