Hi folks, I’m trying to build to package my game project. But the output log always shows an exception below:
There’s something worth to be noted:
- I migrated this project from 4.26 to 5.0
- There’re also some warnings and errors above the exception which are:
...\ShooterGame\Private\UI\Menu\Widgets\SShooterMenuWidget.cpp(33): error C2065: 'Visibility': undeclared identifier
...\ShooterGame\Private\UI\Widgets\SShooterDemoHUD.cpp(80): error C2065: 'ColorAndOpacity': undeclared identifier
...\Engine\Plugins\...\Camera\CameraShake.h(7): warning: UCameraShake has been renamed to UMatineeCameraShake, change to #include "MatineeCameraShake.h" and rename references
. . .
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
. . .
I’m so confused right now cuz I can’t tell if it’s a C2065 problem or an UnrealBuildTool one.