我从源代码中提取了UE5,完成了Setup.sh,当我运行GenerateProjectFiles.sh时,我不断收到此错误:
./GenerateProjectFiles.sh
Attempting to set up UE pretty printers for gdb (existing UEPrinters.py, if any, will be overwritten)...
updated UEPrinters.py
found necessary entries in ~/.gdbinit file, not changing it.
Setting up Unreal Engine 5 project files...
Setting up bundled DotNet SDK
/mnt/Evo970/Work/Engine/UE_5.0/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/mnt/Evo970/Work/Engine/UE_5.0/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
/mnt/Evo970/Work/Engine/UE_5.0/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : The SSL connection could not be established, see inner exception. [/mnt/Evo970/Work/Engine/UE_5.0/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
/mnt/Evo970/Work/Engine/UE_5.0/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : The remote certificate is invalid according to the validation procedure. [/mnt/Evo970/Work/Engine/UE_5.0/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
GenerateProjectFiles ERROR: Failed to build UnrealBuildTool
我在ArcoLinux上运行,内核5.18.1-arch1-1,安装了dotnet sdk和运行时,安装了来自aur的dotnet 3.0。请帮忙。
运行 Arch,我遇到了同样的问题,但由于我在 YouTube 评论(所有地方!)中找到了 Ethorbit 的修复,我成功解决了该问题。我就把整个内容粘贴在这里。
“不要运行
./GenerateProjectFiles.sh
,然后运行 make
,而是运行以下命令:
./Engine/Build/BatchFiles/RunUAT.sh BuildGraph -target="Make Installed Build Linux" -script=Engine/Build/InstalledEngineBuild.xml -set:WithDDC=false -set:HostPlatformOnly=true
如果您收到 ICU 包错误,您可以 A:添加这个环境变量:
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
或者
B:安装libicu50包
如果您收到 SSL 证书错误,请添加以下环境变量:“
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
export SSL_CERT_DIR=/dev/null
我不确定它是否必要,但如果您遇到进一步的错误,我还在事情开始工作之前安装了 dotnet-host、dotnet-runtime 和 dotnet-sdk。
对于遇到此问题的任何人,请尝试运行
./UnrealEngine/Engine/Build/BatchFiles/Linux/GitDependencies.sh
./UnrealEngine/Engine/Build/BatchFiles/Linux/SetupEnvironment.sh
./UnrealEngine/Engine/Build/BatchFiles/Linux/FixDependencyFiles.sh
./UnrealEngine/Engine/Build/BatchFiles/Linux/FixMonoFiles.sh
最后
./UnrealEngine/Engine/Build/BatchFiles/Linux/GenerateProjectFiles.sh