Packaging Failed! UE5.1

I have been trying to package my game but i am getting error message all the time. I have tried to reinstall the UE5 but i get same issue with packaging my game . Can someone please help me to fix this problem ?
I am using PC windows 11. RTX 3090. 64 GB ram.

Registering build platform: UnrealBuildTool.AndroidPlatformFactory
Note: Android toolchain NDK r25b recommended
Registering build platform: Android - buildable: False
Registering build platform: UnrealBuildTool.IOSPlatformFactory
Registering build platform: IOS - buildable: False
Registering build platform: UnrealBuildTool.LinuxPlatformFactory
Registering build platform: Linux - buildable: False
Registering build platform: LinuxArm64 - buildable: False
Registering build platform: UnrealBuildTool.MacPlatformFactory
Registering build platform: UnrealBuildTool.TVOSPlatformFactory
Registering build platform: UnrealBuildTool.WindowsPlatformFactory
Registering build platform: Win64 - buildable: False
Registering build platform: UnrealBuildTool.HoloLensPlatformFactory
Cleaning ue5_1 binaries…
Creating project rules assembly for D:\ue5_1\ue5_1.uproject…
Skipping D:\UE_5.1\Engine\Intermediate\Build\BuildRules\UE5Rules.dll: File is installed
Skipping D:\UE_5.1\Engine\Intermediate\Build\BuildRules\UE5ProgramRules.dll: File is installed
Found 0 Plugins:
Found 0 Modules:
Compiling D:\ue5_1\Intermediate\Build\BuildRules\ue5_1ModuleRules.dll: UnrealBuildTool.dll is newer
Found Visual Studio installation: D:\install visual studio (Product=Microsoft.VisualStudio.Product.Community, Version=17.6.33829.357)
Visual Studio 2022 is installed, but is missing the C++ toolchain. Please verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)” component is selected in the Visual Studio 2022 installation options.
Find paths to clean took 1.956103s
CleanMode.Clean() took 1.9569202s
Visual Studio 2019 x64 must be installed in order to build this target.
BuildException: Visual Studio 2019 x64 must be installed in order to build this target.
at UnrealBuildTool.VCEnvironmentParameters…ctor(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, WindowsArchitecture Architecture, String CompilerVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 467
at UnrealBuildTool.VCEnvironment.Create(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, WindowsArchitecture Architecture, String CompilerVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 389
at UnrealBuildTool.WindowsPlatform.CreateVCEnvironment(TargetRules Target) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 878
at UnrealBuildTool.WindowsPlatform.ValidateTarget(TargetRules Target) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 956
at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance(String TypeName, TargetInfo TargetInfo, ILogger Logger, Boolean IsTestTarget) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 663
at UnrealBuildTool.RulesAssembly.CreateTargetRules(String TargetName, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, String Architecture, FileReference ProjectFile, CommandLineArguments Arguments, ILogger Logger, Boolean IsTestTarget) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 734
at UnrealBuildTool.CleanMode.Clean(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\CleanMode.cs:line 130
at UnrealBuildTool.CleanMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\CleanMode.cs:line 55
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 648
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.
Timeline:

[ 0.000]
0.000
[ 2.344]

I have the same problem :frowning: but there are awso “errors” shown on the log in red if you examine it… I think that must be the problem and those errors need to be fixed first befor packaging.

On your side the problem may be different. I heard you need the Visual studio installed to work and you have some error there:

Visual Studio 2022 is installed, but is missing the C++ toolchain. Please verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)” component is selected in the Visual Studio 2022 installation options.

Maybe you have to fix this one as well…

and here again -

Thank you catz111. it worked. i have installed missing C++toolchain and was able to package the game but now i got another issuse. When i try to open the game it crashes before launching with this error "Assertion failed: Texture->LevelIndex != INDEX_NONE [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Streaming\TextureStreamingBuild.cpp] [Line: 662]

Any idea to fix this problem ? someone mentioned in forum to switch directX 12. but i have already Directx 12 on my pc. Help will be much appricated.

1 Like

No idea but you can try search for this error looks like others have it as well…

Here some basic info what this “Assertion failed” is. Just search deeper how people fix it and try your luck…

1 Like

Hello there @imch123

I’m a bit late to the error party. But, to add to what catz mentioned, I would check out this post as well. I hope that this is helpful. If not, post back here and we can look into other options.

Thank you all for your suggestions. Problem solved . i had to changed Streaming Pool Size. then i packaged succesfully.