Error compiling the ObstacleAssault project

Hi!

First of all: Sorry for my English (I’m from Germany).

However, when running the build task from the video “Compiling a C++ Project”, I get an error and the task aborts. I have installed Visual Studio 2022, VS Code and .NET core 3.1 as shown in the previous video.

After the failed build, the ObstacleAssault project no longer starts. Instead, I get an error message (see below).

Log started at 29.04.2024 15:56:34 (2024-04-29T13:56:34Z)
No config file at C:\Users\nicol\Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Configuration will be read from:
  C:\Users\nicol\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Note: Android toolchain NDK r21b recommended
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (1)
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (2)
Found Windows 10 SDK version 10.0.19041.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.19041.0 at C:\Program Files (x86)\Windows Kits\10
Win64 using Manual SDK 10.0.19041.0
Command line: "D:\Epic Games\UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" ObstacleAssaultEditor Win64 Development "D:\Epic Games\Unreal Projects\ObstacleAssault\ObstacleAssault.uproject" -waitmutex
Log file: C:\Users\nicol\AppData\Local\UnrealBuildTool\Log.txt

ObstacleAssaultEditor.target: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Binaries\Win64\UnrealEditor.modules" doesn't exist.
UnrealEditor-ObstacleAssault.lib: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\UnrealEditor-ObstacleAssault.lib" doesn't exist.
UnrealEditor-ObstacleAssault.dll: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Binaries\Win64\UnrealEditor-ObstacleAssault.dll" doesn't exist.
SharedPCH.Engine.ShadowErrors.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\ObstacleAssaultEditor\Development\Engine\SharedPCH.Engine.ShadowErrors.h.obj" doesn't exist.
MovingPlatform.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\MovingPlatform.cpp.obj" doesn't exist.
MovingPlatform.gen.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\MovingPlatform.gen.cpp.obj" doesn't exist.
SharedPCH.Engine.ShadowErrors.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\ObstacleAssaultEditor\Development\Engine\SharedPCH.Engine.ShadowErrors.h.pch" doesn't exist.
MovingPlatform.gen.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\MovingPlatform.gen.cpp.json" doesn't exist.
ObstacleAssaultEditor.target: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Binaries\Win64\ObstacleAssaultEditor.target" doesn't exist.
MovingPlatform.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\MovingPlatform.cpp.json" doesn't exist.
UnrealEditor-ObstacleAssault.dll: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Binaries\Win64\UnrealEditor-ObstacleAssault.pdb" doesn't exist.
ObstacleAssault.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\ObstacleAssault.cpp.obj" doesn't exist.
ObstacleAssault.init.gen.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\ObstacleAssault.init.gen.cpp.obj" doesn't exist.
ObstacleAssault.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\ObstacleAssault.cpp.json" doesn't exist.
ObstacleAssault.init.gen.cpp: Produced item "D:\Epic Games\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\ObstacleAssault.init.gen.cpp.json" doesn't exist.
Checking for live coding mutex: Global\LiveCoding_D++Epic Games+UE_5.0+Engine+Binaries+Win64+UnrealEditor.exe
Building ObstacleAssaultEditor...
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.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from ObstacleAssault unity file: MovingPlatform.cpp, ObstacleAssault.cpp
Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
  Executing up to 6 processes, one per physical core
  Requested 1,5 GB free memory per action, 1,91 GB available: limiting max parallel actions to 1
Building 8 actions with 1 process...
[1/8] Compile SharedPCH.Engine.ShadowErrors.cpp
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\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
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: the template instantiation context (the oldest one first) is
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\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
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\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
        ]
D:\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: the template instantiation context (the oldest one first) is
D:\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
        ]
CompilationResultException: Error: OtherCompilationError
   at UnrealBuildTool.ActionGraph.ExecuteActions(BuildConfiguration BuildConfiguration, List`1 ActionsToExecute, List`1 TargetDescriptors) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 375
   at UnrealBuildTool.BuildMode.Build(TargetMakefile[] Makefiles, List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, BuildOptions Options, FileReference WriteOutdatedActionsFile) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 611
   at UnrealBuildTool.BuildMode.Build(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, Boolean bSkipPreBuildTargets) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 282
   at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 237
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 612
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.
Timeline:

[ 0.000]
[ 0.000](+37.936) <unknown>
[37.936]

image

Please see this thread: Compiling issue. UE5.3 - #2 by DanM

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms