首页 > 编程语言 >UE5 源码下载编译过程记录

UE5 源码下载编译过程记录

时间:2023-06-30 18:02:06浏览次数:68  
标签:CancellationToken -- cache System 编译 源码 UE5 Net Boolean

前言

没有科学上网,就不要折腾了

1注册Epic

2注册github

3关联账号

在UE官网登入账号并且关联github账号

4下载源码

5 执行Setup.bat

5.1 执行出错提示Failed to download

Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-24819931/19acf26186763763ae43ec3e4bd12b5a50105e41': SocketException: 远程主机强迫关闭了一个现有的连接。
Wrapped by IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)Wrapped by HttpRequestException: An error occurred while sending the request.
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at GitDependencies.Program.DownloadAndExtractFiles(String Url, Uri Proxy, String CacheFileName, Int64 CompressedSize, String ExpectedHash, IncomingFile[] Files, Double HttpTimeoutMultiplier, NotifyReadDelegate NotifyRead)Wrapped by AggregateException: One or more errors occurred. (An error occurred while sending the request.)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at GitDependencies.Program.DownloadWorker(ConcurrentQueue`1 DownloadQueue, AsyncDownloadState State, Double HttpTimeoutMultiplier, Int32 MaxRetries, CancellationToken CancellationToken)

查看该指令相关的命令配置

UnrealEngine\Engine\Binaries\DotNET\GitDependencies\win-x64>GitDependencies.exe --help
Usage:
   GitDependencies [options]

Options:
   --all                         Sync all folders
   --include=<X>                 Include binaries in folders called <X>
   --exclude=<X>                 Exclude binaries in folders called <X>
   --prompt                      Prompt before overwriting modified files
   --force                       Always overwrite modified files
   --root=<PATH>                 Set the repository directory to be sync
   --threads=<N>                 Use N threads when downloading new files
   --dry-run                     Print a list of outdated files and exit
   --http-timeout-multiplier=<N> Override download timeout multiplier
   --max-retries                 Override maximum number of retries per file
   --proxy=<user:password@url>   Sets the HTTP proxy address and credentials
   --cache=<PATH>                Specifies a custom path for the download cache
   --cache-size-multiplier=<N>   Cache size as multiplier of current download
   --cache-days=<N>              Number of days to keep entries in the cache
   --no-cache                    Disable caching of downloaded files

Detected settings:
   Excluded folders: none
   Proxy server: none
   Download cache: F:\dongshenghua\ue5.1\UnrealEngine\.git\ue-gitdeps

Default arguments can be set through the UE_GITDEPS_ARGS environment variable.

解决方案

增加如下的参数

--http-timeout-multiplier=120 延长超时时间

--cache=d:\cache  设置缓存,避免每次下载

--threads=10  多线程下载

--exclude=Linux --exclude=IOS --exclude=HTML5 --exclude=Android 

5.2 执行最后出错

Checking dependencies (excluding Linux, IOS, HTML5, Android)...

Updating dependencies:  99% (40959/40960), 5982.3/6031.9 MiB | 0.00 MiB/s...

解决方案

重新启动命令行窗口

6执行GenerateProjectFiles.bat

标签:CancellationToken,--,cache,System,编译,源码,UE5,Net,Boolean
From: https://blog.51cto.com/fengyuzaitu/6592503

相关文章

  • 3588 编译android12 过程中的报错。
     怀疑是当初解压的时候使用的是sudo.   ......
  • 贪吃蛇游戏制作(附源码)
    CSS:部分*{margin:0;padding:0;}.wrap{width:600px;margin:0auto;position:relative;}p{position:absolute;left:73%;top:10%;}h1{text-align:center;margin-bottom:20px;}#score{text-a......
  • 直播网站源码,背景色渐变
    直播网站源码,背景色渐变实现页面从白色背景过度到蓝色 vart=d3.transition()  .duration(2000);d3.select("body").transition(t).style("background-color","lightblue");constcolors=['red','yellow','blue']letj=0fu......
  • 校园APP小程序H5,免费源码,允许二开。
    点击查看免费完整源码,允许二开50% { transform: scale(0.3); -webkit-transform: scale(0.3); opacity: 0.3; } 75% { transform: scale(0.5); -webkit-transform: scale(0.5); opacity: 0.5; } 100% { transform: scale(0.8); -webkit-transform: scale(0.8); ......
  • 一个基于STM32H743芯片和SOEM协议栈的EtherCAT主站源码。该源码提供了配套的CUBE工程,
    一个基于STM32H743芯片和SOEM协议栈的EtherCAT主站源码。该源码提供了配套的CUBE工程,使用的是SOEM协议栈的1.3.1版本。此外,还可以使用NUCLEO-H743ZI开发板进行配套开发。该系统支持DC同步,并且可以与多种驱动器型号配合使用,包括汇川IS620N、三洋RS3、赛孚德ASD620B、埃斯顿ProNet、......
  • 关于30KW储能PCS逆变器的设计方案。它包括双向DCDC和三电平逆变PCS。资料中提供了仿真
    关于30KW储能PCS逆变器的设计方案。它包括双向DCDC和三电平逆变PCS。资料中提供了仿真源码,其中包含并网和离网两个模型30KW储能PCS逆变器双向变流器设计方案资料1.此系列为30KW储能PCS逆变器设计方案资料,双向DCDC和三电平逆变PCS;2.仿真源码含有并网和离网两个模型;3.原理图(PDF)含......
  • A003 《棒棒糖自由》编程源码
    一、课程介绍本节课将复习变量并学习算术运算、dot画圆等新知识,最终绘制出一个彩色棒棒糖。二、知识重难点解析算术运算符Python编程中,加、减、乘、除这些基本数学运算,是经常用到的。运算符号分别是“+”、“-”、“*”和“”/“。注意:电脑上的乘和除号与大家在作业本上写的......
  • Netty——5、源码分析
    1、启动剖析我们来看看netty中对下面的代码是怎样处理的。publicclassTest{publicstaticvoidmain(String[]args)throwsIOException{//1netty中使用NioEventLoop(简称nioboss线程)来封装线程和selectorSelectorselector=Selector.o......
  • 海外视频直播源码技术视频直播间的搭建
        在科技日渐发达的当今,网络将天南海北的连接到了一起,让人们之间的距离缩短,这其中就有一个技术它既把人们聚在一起,又可以让人们在其中进行社交,这个技术是什么那?听我往下面说。在一个源码平台中,有这么一个房间,他由一个人进行开始并主持,进入房间几乎没有限制,但大部分人都作......
  • C#常见编译错误记录
    C#引用类库时出现黄色三角加感叹号的处理方法,一个C#项目在引用中有个引用项上有个黄色三角加感叹号导致报错。解决:类库的目标框架不一致,修改成一样就可以了。选中类库右击属性;“目标框架”,修改成与引用项目目标框架一致即可。 ......