突然源码编译失败 报错
Checking dependencies...
Updating dependencies: 0% (0/97590)...
Unhandled exception. System.PlatformNotSupportedException: Thread abort is not supported on this platform.
at System.Threading.Thread.Abort()
at GitDependencies.Program.DownloadDependencies(String RootPath, IEnumerable`1 RequiredFiles, IEnumerable`1 Blobs, IEnumerable`1 Packs, Int32 NumThreads, Int32 MaxRetries, Uri Proxy, String CachePath)
at GitDependencies.Program.UpdateWorkingTree(Boolean bDryRun, String RootPath, HashSet`1 ExcludeFolders, Int32 NumThreads, Int32 MaxRetries, Uri Proxy, OverwriteMode Overwrite, String CachePath, Single CacheSizeMultiplier, Int32 CacheDays)
at GitDependencies.Program.Main(String[] Args)
以为是墙了,翻后无效。 搜索询问后说是ue依赖服务器迁移。
ue社区寻到解决方案。
解决方案
访问 https://github.com/EpicGames/UnrealEngine/releases
找到对应当前你本地编译的源码版本。
下载依赖项的
Commit.gitdeps.xml 最近有更新代表ue已修复,未更新可能代表ue官方已不再支持。
下载后替换至UE_Source\UE5\Engine\Build 目录下
再次运行Setup.bat 依赖库可正常下载。
提升编译速度方法
https://www.bilibili.com/read/cv9322810/