无法在 Linux 上为 UE5 生成项目文件



我从源代码中拉出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和运行时安装,dotnet 3.0 from aur安装。请帮助。

Running Arch,我遇到了同样的问题,但由于我在Ethorbit的YouTube评论(所有地方!)中发现的修复,我设法解决了这个问题。我把整个粘贴到这里。

"不要先运行./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,就在事情开始工作之前。

相关内容

  • 没有找到相关文章

最新更新