这是别人(http://blog.csdn.net/z609932088/article/details/52368015)写的,亲试可用
如下图
百度许久,有大神指出是我在编译源码的的时候没有将其中的某个模块编译进去,只需要重新编译摸个模块就好
在UE4 的sln文件下,会看到一个UnrealLightmass的模块,选中,鼠标邮件生成,等待编译完成就好了
如下图
再次打开UE4验证
ok,可以完美运行
下面是编译log,如果在编译源码有问题,可以看一下坐下参考
[cpp] view plain copy
- 1>------ 已启动生成: 项目: EnvVarsToXML, 配置: Development Any CPU ------
- 2>------ 已启动生成: 项目: DotNETUtilities, 配置: Development Any CPU ------
- 1> EnvVarsToXML -> D:UnrealEngineEngineBinariesDotNETEnvVarsToXML.exe
- 2> DotNETUtilities -> D:UnrealEngineEngineBinariesDotNETDotNETUtilities.dll
- 3>------ 已启动生成: 项目: UnrealBuildTool, 配置: Development Any CPU ------
- 3> UnrealBuildTool -> D:UnrealEngineEngineBinariesDotNETUnrealBuildTool.exe
- 4>------ 已启动生成: 项目: UnrealLightmass, 配置: Development_Program x64 ------
- 4> Creating makefile for UnrealLightmass (no existing makefile)
- 4> Performing full C++ include scan (no include cache file)
- 4> Building UnrealHeaderTool...
- 4> Creating makefile for UnrealHeaderTool (UnrealBuildTool.exe is newer)
- 4> Target is up to date
- 4> Parsing headers for UnrealLightmass
- 4> Running UnrealHeaderTool UnrealLightmass "D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -NoEnginePlugins
- 4> Reflection code generated for UnrealLightmass in 0.4688833 seconds
- 4> Performing 71 actions (4 in parallel)
- 4> [4/71] Resource ModuleVersionResource.rc.inl
- 4> PCH.Core.h.cpp
- 4> PCH.CoreUObject.h.cpp
- 4> PCH.CorePrivatePCH.h.cpp
- 4> [5/71] Resource PCLaunch.rc
- 4> [6/71] Resource ModuleVersionResource.rc.inl
- 4> [7/71] Resource PCLaunch.rc
- 4> [8/71] Resource ModuleVersionResource.rc.inl
- 4> [9/71] Resource PCLaunch.rc
- 4> CoreUObject.generated.cpp
- 4> Module.Json.cpp
- 4> Module.Core.8_of_8.cpp
- 4> Module.Core.7_of_8.cpp
- 4> Module.Core.6_of_8.cpp
- 4> Module.Core.5_of_8.cpp
- 4> Module.Core.4_of_8.cpp
- 4> Module.Core.2_of_8.cpp
- 4> Module.Core.1_of_8.cpp
- 4> Module.Core.3_of_8.cpp
- 4> Module.Projects.cpp
- 4> Module.CoreUObject.5_of_5.cpp
- 4> Module.CoreUObject.3_of_5.cpp
- 4> [23/71] Resource ModuleVersionResource.rc.inl
- 4> Module.CoreUObject.2_of_5.cpp
- 4> [25/71] Link UnrealLightmass-Core.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Core.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Core.exp
- 4> [26/71] Link UnrealLightmass-Json.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Json.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Json.exp
- 4> [27/71] Link UnrealLightmass-Projects.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Projects.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Projects.exp
- 4> Module.CoreUObject.1_of_5.cpp
- 4> [29/71] Resource PCLaunch.rc
- 4> Module.CoreUObject.4_of_5.cpp
- 4> Module.SandboxFile.cpp
- 4> [32/71] Resource PCLaunch.rc
- 4> [33/71] Resource ModuleVersionResource.rc.inl
- 4> [34/71] Link UnrealLightmass-SandboxFile.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SandboxFile.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SandboxFile.exp
- 4> Module.Sockets.cpp
- 4> [36/71] Resource ModuleVersionResource.rc.inl
- 4> [37/71] Resource PCLaunch.rc
- 4> [38/71] Link UnrealLightmass-Sockets.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Sockets.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Sockets.exp
- 4> Module.SwarmInterface.cpp
- 4> Module.Networking.cpp
- 4> Serialization.generated.cpp
- 4> SwarmInterface.generated.cpp
- 4> Module.Serialization.cpp
- 4> Module.Messaging.cpp
- 4> [45/71] Resource ModuleVersionResource.rc.inl
- 4> [46/71] Resource PCLaunch.rc
- 4> [47/71] Resource PCLaunch.rc
- 4> [48/71] Resource PCLaunch.rc
- 4> [49/71] Resource PCLaunch.rc
- 4> [50/71] Resource ModuleVersionResource.rc.inl
- 4> [51/71] Resource ModuleVersionResource.rc.inl
- 4> [52/71] Resource ModuleVersionResource.rc.inl
- 4> [53/71] Link UnrealLightmass-Networking.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Networking.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Networking.exp
- 4> Module.DerivedDataCache.cpp
- 4> UdpMessaging.generated.cpp
- 4> Module.UdpMessaging.cpp
- 4> Module.UnrealLightmass.2_of_3.cpp
- 4> Module.UnrealLightmass.3_of_3.cpp
- 4> Module.UnrealLightmass.1_of_3.cpp
- 4> [60/71] Resource Resource.rc
- 4> [61/71] Resource ModuleVersionResource.rc.inl
- 4> [62/71] Resource PCLaunch.rc
- 4> [63/71] Resource PCLaunch.rc
- 4> [64/71] Resource ModuleVersionResource.rc.inl
- 4> [65/71] Link UnrealLightmass-DerivedDataCache.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-DerivedDataCache.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-DerivedDataCache.exp
- 4> [66/71] Link UnrealLightmass-CoreUObject.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-CoreUObject.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-CoreUObject.exp
- 4> [67/71] Link UnrealLightmass-Serialization.dll
- 4> [68/71] Link UnrealLightmass-SwarmInterface.dll
- 4> [69/71] Link UnrealLightmass-Messaging.dll
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Messaging.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Messaging.exp
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SwarmInterface.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-SwarmInterface.exp
- 4> 正在创建库 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Serialization.lib 和对象 D:UnrealEngineEngineIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-Serialization.exp
- 4> [70/71] Link UnrealLightmass.exe
- 4> [71/71] Link UnrealLightmass-UdpMessaging.dll
- 4> 正在创建库 D:UnrealEngineEnginePluginsMessagingUdpMessagingIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-UdpMessaging.lib 和对象 D:UnrealEngineEnginePluginsMessagingUdpMessagingIntermediateBuildWin64UnrealLightmassDevelopmentUnrealLightmass-UdpMessaging.exp
- 4> Total build time: 182.27 seconds
- ========== 生成: 成功 4 个,失败 0 个,最新 0 个,跳过 0 个 ==========