Cannot build UE 5.2 from Soure

This is my first time trying to build the UE from source I did not know that its so big in size. I am trying out the version 5.2. Although the build failed I ended up with total file of around 205 GB. I was following this doc Downloading Unreal Engine Source Code | Unreal Engine 5.0 Documentation.

I am getting this error Error

LNK1104 cannot open file ‘…\Plugins\VirtualProduction\RemoteControlProtocolMIDI\Intermediate\Build\Win64\x64\UnrealEditor\Development\RemoteControlProtocolMIDIEditor\UnrealEditor-RemoteControlProtocolMIDIEditor.suppressed.exp’ UE5 D:\UnrealEngine5\UE5_SourceBuild\UnrealEngine\Engine\Intermediate\ProjectFiles\LINK 1

Even then this way I feel it would be impossible to ever build the engine because first it takes hours building and if the build fails you are too strained to try it again. And I even attempted it multiple times. Any pointers on this part would be helpful.
May be even somewhere that I can get the already built engine from sourcecode ( but maybe that would mean its built on someone else’s machine so there is a chance that it could not run well on mine. )

Thanks!

Hi Haan,

I did a google search for your error and found a post saying that it is a result of the path name being too long.

BUT, since 5.2 preview 1 was released, building from source is not necessary. 5.2p1 can be downloaded through the Epic launcher (click the yellow ‘+’ next to “Engine Versions”)

Hello Astrotronic,

Thanks for responding!
I wanted to build the engine from source in order to setup dedicated server. I have read here that building from source is required to have dedicated server. Also it says here that if we plan to add multiplayer to a game we should plan early and therefore I wanted to have this option from the start.
And I cannot build the engine on desktop since I am limited on storage. But I have tried a few more times to build the engine and the build fails everytime with a different reason sorry I have not saved those errors though I grew impatient the longer it took :sweat_smile: . I might try It once again if I find the time and share the results.

I tried building engine version 4.27 and even that failed with errors. First it errored out saying ran out heap storage, then it errored out saying some macro is not defined i googled and got i need to provide /D to compiler options which i did in the toolchain file but it says it needs some value and i was not able to find how to give it a value.