I can successfully start the editor in UE5.1-UE5.3, but not for UE5.0.
Edition | Windows 11 Home |
---|---|
Version | 23H2 |
Installed on | 9/10/2023 |
OS build | 22631.3296 |
Experience | Windows Feature Experience Pack 1000.22687.1000.0 |
The message below is from launcher:
The project could not be compiled. Would you like to open it in Visual Studio?
Running C:/Program Files/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe Development Win64 -Project="C:/dev/MyProject4/MyProject4.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\User\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for MyProject4Editor (no existing makefile)
@progress push 5%
Parsing headers for MyProject4Editor
Running UnrealHeaderTool "C:\dev\MyProject4\MyProject4.uproject" "C:\dev\MyProject4\Intermediate\Build\Win64\MyProject4Editor\Development\MyProject4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\User\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
Reflection code generated for MyProject4Editor in 1.2842797 seconds
@progress pop
Building MyProject4Editor...
Using Visual Studio 2022 14.39.33523 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from MyProject4 unity file: MyProject4.cpp, MyProject4GameModeBase.cpp
Determining max actions to execute in parallel (12 physical cores, 20 logical cores)
Executing up to 12 processes, one per physical core
Requested 1.5 GB free memory per action, 16.24 GB available: limiting max parallel actions to 10
Building 9 actions with 9 processes...
[1/9] Resource Default.rc2
[2/9] Compile SharedPCH.Engine.ShadowErrors.cpp
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): error C2440: '<function-style-cast>': cannot convert from 'const From *' to 'TStringConversion<TStringConvert<From,To>,128>'
with
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion': no overloaded function could convert all the argument types
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(689): note: could be 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)'
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)': cannot convert argument 1 from 'const From *' to 'const StringConv::FUnused *'
with
[
From=TCHAR,
To=ANSICHAR
]
and
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(737): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(FromRangeType &&)'
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(698): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *,int32)'
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(677): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *)'
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: while trying to match the argument list '(const From *)'
with
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: the template instantiation context (the oldest one first) is
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Misc\SecureHash.h(75): note: see reference to function template instantiation 'auto StringCast<ANSICHAR,128,TCHAR>(const From *)' being compiled
with
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): error C2440: '<function-style-cast>': cannot convert from 'const From *' to 'TStringConversion<TStringConvert<From,To>,128>'
with
[
From=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion': no overloaded function could convert all the argument types
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(689): note: could be 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)'
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)': cannot convert argument 1 from 'const From *' to 'const StringConv::FUnused *'
with
[
From=ANSICHAR,
To=TCHAR
]
and
[
From=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(737): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(FromRangeType &&)'
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(698): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *,int32)'
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(677): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *)'
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: while trying to match the argument list '(const From *)'
with
[
From=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: the template instantiation context (the oldest one first) is
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\TypedElementFramework\Public\Elements\Framework\TypedElementData.h(64): note: see reference to function template instantiation 'auto StringCast<TCHAR,128,ANSICHAR>(const From *)' being compiled
with
[
From=ANSICHAR
]
I think my visual studio configuration is also enough.
Now I successfully compiled the engine on UE5.1 and UE5.3(I didn’t test UE5.2). However, I also can’t compile the UE5.0(both tested in 5.0.3 and 5.0.2). Very weird.
Build started at 9:51 AM...
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\Win\Win.Automation.csproj (in 79 ms).
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\Linux\Linux.Automation.csproj (in 90 ms).
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj (in 100 ms).
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\BuildGraph\BuildGraph.Automation.csproj (in 107 ms).
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\Mac\Mac.Automation.csproj (in 116 ms).
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\IOS\IOS.Automation.csproj (in 124 ms).
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\TVOS\TVOS.Automation.csproj (in 131 ms).
1>------ Build started: Project: UE5, Configuration: Development_Editor x64 ------
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj (in 151 ms).
Failed to restore C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Programs\AutomationTool\Turnkey\Turnkey.Automation.csproj (in 162 ms).
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
1>Using bundled DotNet SDK
1>Log file: C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Programs\UnrealBuildTool\Log.txt
1>Creating makefile for UnrealEditor (no existing makefile)
1>Determining max actions to execute in parallel (12 physical cores, 20 logical cores)
1> Executing up to 12 processes, one per physical core
1> Requested 1.5 GB free memory per action, 11.78 GB available: limiting max parallel actions to 7
1>Building 61 actions with 7 processes...
1>[1/61] Compile Module.Core.3_of_18.cpp
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): error C2440: '<function-style-cast>': cannot convert from 'const From *' to 'TStringConversion<TStringConvert<From,To>,128>'
1> with
1> [
1> From=TCHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion': no overloaded function could convert all the argument types
1> with
1> [
1> From=TCHAR,
1> To=ANSICHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(689): note: could be 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)'
1> with
1> [
1> From=TCHAR,
1> To=ANSICHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)': cannot convert argument 1 from 'const From *' to 'const StringConv::FUnused *'
1> with
1> [
1> From=TCHAR,
1> To=ANSICHAR
1> ]
1> and
1> [
1> From=TCHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(737): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(FromRangeType &&)'
1> with
1> [
1> From=TCHAR,
1> To=ANSICHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(698): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *,int32)'
1> with
1> [
1> From=TCHAR,
1> To=ANSICHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(677): note: or 'TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *)'
1> with
1> [
1> From=TCHAR,
1> To=ANSICHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: while trying to match the argument list '(const From *)'
1> with
1> [
1> From=TCHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: the template instantiation context (the oldest one first) is
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Misc\SecureHash.h(75): note: see reference to function template instantiation 'auto StringCast<ANSICHAR,128,TCHAR>(const From *)' being compiled
1> with
1> [
1> From=TCHAR
1> ]
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformCrashContext.cpp(1391): error C2665: 'TStringConversion<FTCHARToUTF8_Convert,128>::TStringConversion': no overloaded function could convert all the argument types
1>C:\dev\UE5\UnrealEngine-5.0.2-release\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(689): note: could be 'TStringConversion<FTCHARToUTF8_Convert,128>::TStringConversion(const StringConv::FUnused *)'