Trying to build UE5 in visual studios code but its seems to be failing

So i am following the tutorial and when I try to building in visual studios code it doesn’t work


 *  Executing task in folder UE_5.0: Engine\Build\BatchFiles\Build.bat UnrealLearningKitEditor Win64 Development 'C:\Users\xxx\Documents\Unreal Projects\UnrealLearningKit\UnrealLearningKit.uproject' -waitmutex 

Using bundled DotNet SDK
Log file: C:\Users\xxxx\AppData\Local\UnrealBuildTool\Log.txt
Building UnrealLearningKitEditor...
Using Visual Studio 2022 14.41.34120 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from UnrealLearningKit unity file: MovingPlatflorm.cpp, UnrealLearningKit.cpp
Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
  Executing up to 6 processes, one per physical core
Building 8 actions with 6 processes...
[1/8] Compile SharedPCH.Engine.ShadowErrors.cpp
Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h
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
        ]

 *  The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command Engine\Build\BatchFiles\Build.bat UnrealLearningKitEditor Win64 Development 'C:\Users\xxxx\Documents\Unreal Projects\UnrealLearningKit\UnrealLearningKit.uproject' -waitmutex" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.

If you need any more information please tell and I will provide

this solves it

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

Privacy & Terms