簡體   English   中英

在 ubuntu 焦點上編譯虛幻引擎 4.25 時出錯

[英]Error compiling Unreal Engine 4.25 on ubuntu focal

我一直在關注 UE4 的linux 設置指南

一切正常,直到調用(“3 - 在 Linux 上構建 UE4”的最后一步)。

構建的 output 如下:

Performing 37 actions (10 in parallel)
[4/37] Compile Module.TraceLog.cpp
[1/37] Compile PCH.Core.h
[6/37] Compile Module.UnrealHeaderTool.cpp
[2/37] Compile PCH.CoreUObject.h
[3/37] Compile BuildSettings.cpp
[5/37] Compile SharedPCH.Core.ShadowErrors.h
[7/37] Link (lld) libUnrealHeaderTool-BuildSettings.so
[8/37] Compile Module.Json.cpp
[9/37] Compile Module.Projects.cpp
[10/37] Compile Module.Core.1_of_13.cpp
[11/37] Compile Module.Core.2_of_13.cpp
[12/37] Compile Module.Core.3_of_13.cpp
[13/37] Compile Module.Core.4_of_13.cpp
[14/37] Compile Module.Core.10_of_13.cpp
[15/37] Compile Module.Core.6_of_13.cpp
[16/37] Compile Module.Core.8_of_13.cpp
[17/37] Compile Module.Core.5_of_13.cpp
[18/37] Compile Module.Core.9_of_13.cpp
[19/37] Compile Module.Core.11_of_13.cpp
[20/37] Compile Module.Core.13_of_13.cpp
[21/37] Compile Module.Core.12_of_13.cpp
[22/37] Compile Module.Core.7_of_13.cpp
[23/37] Link (lld) libUnrealHeaderTool-TraceLog.so
[24/37] Compile Module.CoreUObject.7_of_8.cpp
[25/37] Compile Module.CoreUObject.5_of_8.cpp
[26/37] Compile Module.CoreUObject.4_of_8.cpp
[27/37] Compile Module.CoreUObject.3_of_8.cpp
[28/37] Compile Module.CoreUObject.2_of_8.cpp
[29/37] Compile Module.CoreUObject.1_of_8.cpp
[30/37] Compile Module.CoreUObject.8_of_8.cpp
[31/37] Compile Module.CoreUObject.6_of_8.cpp
[32/37] Link (lld) libUnrealHeaderTool-Core.so
[33/37] Link (lld) libUnrealHeaderTool-Json.so
[34/37] Link (lld) libUnrealHeaderTool-Projects.so
[35/37] Link (lld) libUnrealHeaderTool-CoreUObject.so
[36/37] Link (lld) UnrealHeaderTool
[37/37] UnrealBuildTool.exe UnrealHeaderTool.target
Total time in Local executor: 107.91 seconds
Parsing headers for CrashReportClient
  Running UnrealHeaderTool CrashReportClient "/d/dev/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/CrashReportClient.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="/d/dev/UnrealEngine/Engine/Programs/UnrealBuildTool/Log_UHT.txt"
Assertion failed: IsValidIndex(Index) [File:Runtime/Core/Public/Containers/UnrealString.h] [Line: 207] 
String index out of bounds: Index 1 from a string with a length of 1
LogCore: Error: appError called: Assertion failed: IsValidIndex(Index) [File:Runtime/Core/Public/Containers/UnrealString.h] [Line: 207]
String index out of bounds: Index 1 from a string with a length of 1
make: *** [Makefile:297: CrashReportClient-Linux-Shipping] Error 1

我嘗試了不同的分支(版本、4.25、4.24),完全重置 git 存儲庫並重建,但它沒有進一步 go,因為錯誤不是很明確。

任何指針將不勝感激。

該問題是由於 FPaths::MakePathRelativeTo 實現中的錯誤造成的。

它正在查看根文件夾中的第二個字符(查看它是否是':'),但我的磁盤安裝在單個字母路徑下。 這可以通過將磁盤重新安裝到包含 2 個或更多字符的文件夾中來解決。

此外,根據您的語言環境,您可能希望將其強制為英語以避免一些編碼和數字格式問題:export LC_ALL=en_US.utf8

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM