光照构建失败。Swarm启动失败

这是别人(http://blog.csdn.net/z609932088/article/details/52368015)写的,亲试可用

如下图



百度许久,有大神指出是我在编译源码的的时候没有将其中的某个模块编译进去,只需要重新编译摸个模块就好


在UE4 的sln文件下,会看到一个UnrealLightmass的模块,选中,鼠标邮件生成,等待编译完成就好了

如下图



再次打开UE4验证



ok,可以完美运行


下面是编译log,如果在编译源码有问题,可以看一下坐下参考

  1. 1>------ 已启动生成: 项目: EnvVarsToXML, 配置: Development Any CPU ------  
  2. 2>------ 已启动生成: 项目: DotNETUtilities, 配置: Development Any CPU ------  
  3. 1>  EnvVarsToXML -> D:UnrealEngineEngineBinariesDotNETEnvVarsToXML.exe  
  4. 2>  DotNETUtilities -> D:UnrealEngineEngineBinariesDotNETDotNETUtilities.dll  
  5. 3>------ 已启动生成: 项目: UnrealBuildTool, 配置: Development Any CPU ------  
  6. 3>  UnrealBuildTool -> D:UnrealEngineEngineBinariesDotNETUnrealBuildTool.exe  
  7. 4>------ 已启动生成: 项目: UnrealLightmass, 配置: Development_Program x64 ------  
  8. 4>  Creating makefile for UnrealLightmass (no existing makefile)  
  9. 4>  Performing full C++ include scan (no include cache file)  
  10. 4>  Building UnrealHeaderTool...  
  11. 4>  Creating makefile for UnrealHeaderTool (UnrealBuildTool.exe is newer)  
  12. 4>  Target is up to date  
  13. 4>  Parsing headers for UnrealLightmass  
  14. 4>    Running UnrealHeaderTool UnrealLightmass "D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -NoEnginePlugins  
  15. 4>  Reflection code generated for UnrealLightmass in 0.4688833 seconds  
  16. 4>  Performing 71 actions (4 in parallel)  
  17. 4>  [4/71] Resource ModuleVersionResource.rc.inl  
  18. 4>  PCH.Core.h.cpp  
  19. 4>  PCH.CoreUObject.h.cpp  
  20. 4>  PCH.CorePrivatePCH.h.cpp  
  21. 4>  [5/71] Resource PCLaunch.rc  
  22. 4>  [6/71] Resource ModuleVersionResource.rc.inl  
  23. 4>  [7/71] Resource PCLaunch.rc  
  24. 4>  [8/71] Resource ModuleVersionResource.rc.inl  
  25. 4>  [9/71] Resource PCLaunch.rc  
  26. 4>  CoreUObject.generated.cpp  
  27. 4>  Module.Json.cpp  
  28. 4>  Module.Core.8_of_8.cpp  
  29. 4>  Module.Core.7_of_8.cpp  
  30. 4>  Module.Core.6_of_8.cpp  
  31. 4>  Module.Core.5_of_8.cpp  
  32. 4>  Module.Core.4_of_8.cpp  
  33. 4>  Module.Core.2_of_8.cpp  
  34. 4>  Module.Core.1_of_8.cpp  
  35. 4>  Module.Core.3_of_8.cpp  
  36. 4>  Module.Projects.cpp  
  37. 4>  Module.CoreUObject.5_of_5.cpp  
  38. 4>  Module.CoreUObject.3_of_5.cpp  
  39. 4>  [23/71] Resource ModuleVersionResource.rc.inl  
  40. 4>  Module.CoreUObject.2_of_5.cpp  
  41. 4>  [25/71] Link UnrealLightmass-Core.dll  
  42. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Core.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Core.exp  
  43. 4>  [26/71] Link UnrealLightmass-Json.dll  
  44. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Json.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Json.exp  
  45. 4>  [27/71] Link UnrealLightmass-Projects.dll  
  46. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Projects.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Projects.exp  
  47. 4>  Module.CoreUObject.1_of_5.cpp  
  48. 4>  [29/71] Resource PCLaunch.rc  
  49. 4>  Module.CoreUObject.4_of_5.cpp  
  50. 4>  Module.SandboxFile.cpp  
  51. 4>  [32/71] Resource PCLaunch.rc  
  52. 4>  [33/71] Resource ModuleVersionResource.rc.inl  
  53. 4>  [34/71] Link UnrealLightmass-SandboxFile.dll  
  54. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SandboxFile.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SandboxFile.exp  
  55. 4>  Module.Sockets.cpp  
  56. 4>  [36/71] Resource ModuleVersionResource.rc.inl  
  57. 4>  [37/71] Resource PCLaunch.rc  
  58. 4>  [38/71] Link UnrealLightmass-Sockets.dll  
  59. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Sockets.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Sockets.exp  
  60. 4>  Module.SwarmInterface.cpp  
  61. 4>  Module.Networking.cpp  
  62. 4>  Serialization.generated.cpp  
  63. 4>  SwarmInterface.generated.cpp  
  64. 4>  Module.Serialization.cpp  
  65. 4>  Module.Messaging.cpp  
  66. 4>  [45/71] Resource ModuleVersionResource.rc.inl  
  67. 4>  [46/71] Resource PCLaunch.rc  
  68. 4>  [47/71] Resource PCLaunch.rc  
  69. 4>  [48/71] Resource PCLaunch.rc  
  70. 4>  [49/71] Resource PCLaunch.rc  
  71. 4>  [50/71] Resource ModuleVersionResource.rc.inl  
  72. 4>  [51/71] Resource ModuleVersionResource.rc.inl  
  73. 4>  [52/71] Resource ModuleVersionResource.rc.inl  
  74. 4>  [53/71] Link UnrealLightmass-Networking.dll  
  75. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Networking.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Networking.exp  
  76. 4>  Module.DerivedDataCache.cpp  
  77. 4>  UdpMessaging.generated.cpp  
  78. 4>  Module.UdpMessaging.cpp  
  79. 4>  Module.UnrealLightmass.2_of_3.cpp  
  80. 4>  Module.UnrealLightmass.3_of_3.cpp  
  81. 4>  Module.UnrealLightmass.1_of_3.cpp  
  82. 4>  [60/71] Resource Resource.rc  
  83. 4>  [61/71] Resource ModuleVersionResource.rc.inl  
  84. 4>  [62/71] Resource PCLaunch.rc  
  85. 4>  [63/71] Resource PCLaunch.rc  
  86. 4>  [64/71] Resource ModuleVersionResource.rc.inl  
  87. 4>  [65/71] Link UnrealLightmass-DerivedDataCache.dll  
  88. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-DerivedDataCache.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-DerivedDataCache.exp  
  89. 4>  [66/71] Link UnrealLightmass-CoreUObject.dll  
  90. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-CoreUObject.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-CoreUObject.exp  
  91. 4>  [67/71] Link UnrealLightmass-Serialization.dll  
  92. 4>  [68/71] Link UnrealLightmass-SwarmInterface.dll  
  93. 4>  [69/71] Link UnrealLightmass-Messaging.dll  
  94. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Messaging.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Messaging.exp  
  95. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SwarmInterface.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SwarmInterface.exp  
  96. 4>    正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Serialization.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Serialization.exp  
  97. 4>  [70/71] Link UnrealLightmass.exe  
  98. 4>  [71/71] Link UnrealLightmass-UdpMessaging.dll  
  99. 4>    正在创建库 D:UnrealEngineEnginePluginsMessagingUdpMessagingIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-UdpMessaging.lib 和对象 D:UnrealEngineEnginePluginsMessagingUdpMessagingIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-UdpMessaging.exp  
  100. 4>  Total build time: 182.27 seconds  
  101. ========== 生成: 成功 4 个,失败 0 个,最新 0 个,跳过 0 个 ==========  
原文地址:https://www.cnblogs.com/huojiaoqingchun0123/p/7675751.html