UE5.4 won't Package anything!

Help needed please!

I’m trying to build any UE5.4 project and it keeps failing.

It’s a new blank template, and I’ve reinstalled Visuals Studio 2022 (still have an old install of 2019), and UE5.4 with all options included. My apps path is a bit odd because I have UE on my E drive but this has never been a problem before. Really stuck, yesterday it was fine, today I can’t package anything! I did download and install some plugins from Fab, but I’ve since removed them, and un / re-installed Unreal…

Error log:

LogPlayLevel: Warning: UAT: Warning: Visual Studio 2022 compiler is not a preferred version
LogPlayLevel: UAT: [Adaptive Build] Excluded from TestProject unity file: TestProject.cpp
LogPlayLevel: UAT: Determining max actions to execute in parallel (16 physical cores, 32 logical cores)
LogPlayLevel: UAT: Executing up to 16 processes, one per physical core
LogPlayLevel: UAT: Using Parallel executor to run 17 action(s)
LogPlayLevel: UAT: ------ Building 17 action(s) started ------
LogPlayLevel: UAT: [1/17] Resource Default.rc2
LogPlayLevel: UAT: [2/17] Copy get_ps_servers.bat
LogPlayLevel: UAT: [3/17] Copy get_ps_servers.sh
LogPlayLevel: UAT: [4/17] Copy tbbmalloc.dll
LogPlayLevel: UAT: [5/17] Copy tbb.dll
LogPlayLevel: UAT: [6/17] Copy NvmlWrapper.dll
LogPlayLevel: UAT: [7/17] Copy tbbmalloc.pdb
LogPlayLevel: UAT: [8/17] Copy tbb.pdb
LogPlayLevel: UAT: [9/17] Copy OpenColorIO_2_3.dll
LogPlayLevel: UAT: [10/17] Copy D3D12Core.dll
LogPlayLevel: UAT: [11/17] Copy tbb12.dll
LogPlayLevel: UAT: [12/17] Copy d3d12SDKLayers.dll
LogPlayLevel: UAT: [13/17] Copy OpenImageDenoise.dll
LogPlayLevel: UAT: [14/17] Compile [x64] SharedPCH.Core.Project.ValApi.Cpp20.cpp
LogPlayLevel: UAT: E:__Apps_HDD\EpicGames\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: ‘__has_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
LogPlayLevel: UAT: E:__Apps_HDD\EpicGames\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive - expected a newline
LogPlayLevel: UAT: Total time in Parallel executor: 4.38 seconds
LogPlayLevel: UAT: Total execution time: 28.04 seconds
LogPlayLevel: UAT: Took 28.20s to run dotnet.exe, ExitCode=6
LogPlayLevel: UAT: UnrealBuildTool failed. See log for more details. (C:\Users\olausroe\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+__Apps_HDD+EpicGames+UE_5.4\UBA-TestProject-Win64-Development.txt)
LogPlayLevel: UAT: AutomationTool executed for 0h 0m 30s
LogPlayLevel: UAT: AutomationTool exiting with ExitCode=6 (6)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 27.810785
LogPlayLevel: UAT: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error

what could it be…

Is this basic Launcher install of UE or custom?

Make sure to very carefully read through the setup docs to make sure you aren’t missing something simple.

You’re better off uninstalling 2019 as well, to guarantee that the proper toolchains are being used.

Thanks @Stephen.Phillips

I think I’ve cracked it!

I had to roll back Visual Basic to 2022 v17.8 and then re-build the VB files on my project.

I followed this:

I used the professional version and installed all the options.

Also updated SDK which may have been a factor - latest version 10.0.2261.2428. Although I noticed I still have versions 685 & 1742 installed. Also have VB 2019 v16.11.42 still installed but I’m assuming this is doing nothing - but it’s working - so I’m going to leave it!

I had previously updated VB to the lasted version (17.12.3 I think) and that caused all the problems. I don’t even remember doing this. 2 very very long days later… (It’s now 2am!)

Thanks for helping.
Andy

1 Like