LNK1104 error trying to build UE5 from source

I’m trying to build UE5 from source of the Release branch in the github with the Stadia platform Extensions included. But I’m Running into a LNK1104 and am wondering what it could be. I already did a build of 4.27 once with Stadia platform Extensions included and that never ran into this error so I’m kind of at a loss.

Does anyone know the cause/solution for this?

To be more specific this is the error in full:

Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file ‘…\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioCodeSourceCodeAccess\UnrealEditor-VisualStudioCodeSourceCodeAccess.suppressed.exp’ UE5 C:\Program Files\Epic Games\UnrealEngine-release\Engine\Intermediate\ProjectFiles\LINK 1

followed by this one:

Severity Code Description Project File Line Suppression State
Error MSB3073 The command …..\Build\BatchFiles\Build.bat -Target=UnrealEditor Win64 Development -Target=ShaderCompileWorker Win64 Development -Quiet -WaitMutex -FromMsBuild exited with code 6. UE5 C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 44

have you found a solution for these errors yet? Im having these exact same Errors while building 5.03

Hello MatthewSoedesco and DrCoolFreshPapaG, thank you both for asking these questions.

The LNK1104 error may mean that the file in not able to be read/written to. This could be due to a long pathname, lack of double quotes in your .bat file or many other things. I see other users have corrected the same LNK with the same MSB code as yours here on Stack Overflow. If you would like to read more on this, here is a link.

WARNING: This is an external link and as the end user, you are responsible should something happen to your device when you choose to click a link or follow steps that are not endorsed by Epic.

Relevant link
I hope this helps.

Thank you for your reply! For me it seems to have been the long pathname.

Even tho changing the windows settings didnt work, simply building the engine on Desktop rather than the C: Epic Games folder seems to have fixed it for me

1 Like

I am glad the the path name was the culprit. From my experience, I usually have to restart my machine to get the path length change to stick. Either way, great work finding the root cause.