无法用编译插件打包游戏,缺少预编译的清单
我们通过以下步骤打包插件,
打包插件并添加
bprecompile = true
inmyplugin.build.cs
(还尝试使用-precompile
参数将构建包装打包) 包装之前myplugin.build.cs
,公共类myplugin:模量 { 公共MyPlugin(Readonlytargetrules目标):基础(目标) { pChusage = modulerules.pchusagemode.usexpliticorsharedpchs; precompilefortargets = precompileTargetStype.any; bpreCompile = true;
包装后,添加
buseprecompiled = true
和precompilefortargets = precompileTargetStype.any;
inin
> myplugin.build.cs
包装后myplugin.build.cs
,公共类myplugin:模量 { 公共MyPlugin(Readonlytargetrules目标):基础(目标) { pChusage = modulerules.pchusagemode.usexpliticorsharedpchs; precompilefortargets = precompileTargetStype.any; buseprecompiled = true;
删除的C ++文件&包装插件的中间文件夹 将插件与示例项目(包含在插件目录中)一起使用,并且没有任何问题加载。 但是,当我们尝试打包游戏或尝试启动游戏时,我们会收到以下错误:
uathelper
:包装(Windows(64位)):错误:缺少“ MyPlugin”的预编译。该模块很可能未标记为被包含在预编译的构建中 -precompilefortargets = precompileTargetStype.yany;
inmyplugin.build.build.cs
to覆盖。packagingResults
:错误:缺少“ myplugin”的预编译。该模块很可能没有标记为被包含在预编译的构建中 -precompilefortargets = precompileTargetStype.yany;
inmyplugin.build.build.cs
propride。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论