Hi everyone,
I’m currently working on a project that I cloned from a GitHub repository. However, after cloning the project, I encountered several build issues that I haven’t been able to resolve. Below is the relevant portion of the console output when I try to build:
0>Using bundled DotNet SDK version: 6.0.302
0>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" cooptemplateEditor Win64 Development -Project="C:\Users\etien\Clone test\cooptemplate\cooptemplate.uproject" -WaitMutex
0>Log file: C:\Users\etien\AppData\Local\UnrealBuildTool\Log.txt
0>Using 'git status' to determine working set for adaptive non-unity build (C:\Users\etien\Clone test\cooptemplate).
0>Creating makefile for cooptemplateEditor (no existing makefile)
0>Parsing headers for cooptemplateEditor
0> Running Internal UnrealHeaderTool "C:\Users\etien\Clone test\cooptemplate\cooptemplate.uproject" "C:\Users\etien\Clone test\cooptemplate\Intermediate\Build\Win64\cooptemplateEditor\Development\cooptemplateEditor.uhtmanifest" -WarningsAsErrors -installed
0>Total of 14 written
0>Reflection code generated for cooptemplateEditor in 1.5691462 seconds
0>Building cooptemplateEditor...
0>Using Visual Studio 2022 14.38.33135 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
0>[Upgrade]
0>[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
0>[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Oldest
0>[Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Latest;' in cooptemplateEditor.Target.cs.
0>[Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
0>[Upgrade]
0>Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
0> Executing up to 6 processes, one per physical core
0>Using Parallel executor to run 19 action(s)
0>------ Building 19 action(s) started ------
0>[1/19] Resource Default.rc2
0>[2/19] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.cpp
0>[3/19] Compile [x64] EnemyCharacter.gen.cpp
0>AbilitySystemInterface.h(15): Error C2143: Syntax error: Missing ";" before "<class-head>"
0>AbilitySystemInterface.h(15): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(17): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(22): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>BaseCharacter.h(23): Error C2555: "ABaseCharacter::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>[4/19] Compile [x64] PlayerCharacter.gen.cpp
0>AbilitySystemInterface.h(15): Error C2143: Syntax error: Missing ";" before "<class-head>"
0>AbilitySystemInterface.h(15): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(17): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(22): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>BaseCharacter.h(23): Error C2555: "ABaseCharacter::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>[5/19] Compile [x64] EnemyCharacter.cpp
0>AbilitySystemInterface.h(15): Error C2143: Syntax error: Missing ";" before "<class-head>"
0>AbilitySystemInterface.h(15): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(17): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(22): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>BaseCharacter.h(23): Error C2555: "ABaseCharacter::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>[6/19] Compile [x64] PlayerCharacter.cpp
0>AbilitySystemInterface.h(15): Error C2143: Syntax error: Missing ";" before "<class-head>"
0>AbilitySystemInterface.h(15): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(17): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(22): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>BaseCharacter.h(23): Error C2555: "ABaseCharacter::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>SpiritPlayerState.h(16): Error C3668: "ASpiritPlayerState::_getUObject": Method with the "override" specifier did not override any base class methods.
0>SpiritPlayerState.h(21): Error C2555: "ASpiritPlayerState::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>[7/19] Compile [x64] BaseCharacter.gen.cpp
0>AbilitySystemInterface.h(15): Error C2143: Syntax error: Missing ";" before "<class-head>"
0>AbilitySystemInterface.h(15): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(17): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(22): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>BaseCharacter.h(23): Error C2555: "ABaseCharacter::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>[8/19] Compile [x64] BaseCharacter.cpp
0>AbilitySystemInterface.h(15): Error C2143: Syntax error: Missing ";" before "<class-head>"
0>AbilitySystemInterface.h(15): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(17): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(22): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>BaseCharacter.h(23): Error C2555: "ABaseCharacter::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>[9/19] Compile [x64] SpiritPlayerState.gen.cpp
0>AbilitySystemInterface.h(15): Error C2143: Syntax error: Missing ";" before "<class-head>"
0>AbilitySystemInterface.h(15): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(17): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>AbilitySystemInterface.h(22): Error C4430: Missing type specifier - int assumed. Note: C++ does not support "default-int".
0>BaseCharacter.h(23): Error C2555: "ABaseCharacter::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
0>SpiritPlayerState.h(16): Error C3668: "ASpiritPlayerState::_getUObject": Method with the "override" specifier did not override any base class methods.
0>SpiritPlayerState.h(21): Error C2555: "ASpiritPlayerState::GetAbilitySystemComponent": Overriding virtual function return type differs and is not covariant with "IAbilitySystemInterface::GetAbilitySystemComponent"
0>AbilitySystemInterface.h(25): Reference: See declaration of "IAbilitySystemInterface::GetAbilitySystemComponent"
The error seems related to include orders and issues with the AbilitySystemInterface.h
file. The errors reported include:
- C2143: Missing
;
before<class-head>
. - C4430: Missing type specifier, and “default-int” is not supported by C++.
- C2555: Overriding return type is not covariant with the base class.
Interestingly, a friend who also cloned the project doesn’t have these issues and can build the project without any problems. We’re both using the same versions of Rider and Unreal Engine
- Clearing
Binaries
,Intermediate
, andSaved
folders. - Regenerating Visual Studio project files.
- Ensruing that all relevant files are being ignored
Has anyone encountered similar issues, or does anyone have advice on how to proceed? Any help would be greatly appreciated!
Thanks in advance!