Building UE from source (Rocket Build) output directory size

when I compile UE 5.1 from source (Installed build / Rocket Build) I get a directory with around 100 GB disk size by using the following command:

RunUAT.bat BuildGraph -target="Make Installed Build Win64" -script=Engine/Build/InstalledEngineBuild.xml -set:WithDDC=false -set:WithLinux=false -set:WithWin64=true -set:WithWin32=false -set:WithMac=false -set:WithAndroid=false -set:WithIOS=false -set:WithTVOS=false -set:WithLumin=false -set:WithLinuxAArch64=false -set:WithHoloLens=false -set:WithLuminMac=false -set:WithHoloLens=false WithLuminMac=false -set:WithFullDebugInfo=false -set:GameConfigurations=Development -set:VS2019=true -set:HostPlatformOnly=true

however, when I download the official UE version (5.1.1) it weighs only 39.38 GB. How do they do that?

I have a 1TB ssd but having installed several versions and several projects of it is starting to run out of space.

How can I compile the source code and get 40 GB instead of 100? Does anyone know the CMD command for that?

1 Like

Any update? i have the same problem, and keep try to remove .pdb .pch file, which will reduce the size of final build. however my intermeate folder is much lard then epic one. the obj file as tree time as the epic build version.

In addition to deleting all .pdb files from all directories, you’ll need to create an Installed Build (Rocket Build) to achieve the 39 GB size. If you’re unfamiliar with the process, check the web for creating Rocket Builds. Essentially, this involves building Unreal Engine using the command line instead of Visual Studio.