When source code is compiled it is too large

Hello, I am on linux and am hoping to get back into unreal engine and was happy to see that the source code can be compiled on linux but when I tried to compile it my small hard drive got filled up. After doing some research the final compiled engine will take up more than 100 GB, is this true and if so is there a way to make it so it takes up a smaller amount of space.


if only there was targets and settings configured for “make install” . So may not be possible

I am running into the same situation. Just compiled UE4 on my Ubuntu machine and I do have something like

How can I clean the sources and install the build?

No install build
Unreal has not made install target for the command “make install” so you will have to run it as is. Long time ago somewhere in the archlinux community I had seen some solution to install it to opt, but it might break something as it is very old post.

Clean the source

As for cleaning the source make a text file with these and put in the root of UnrealEngine folder

rm -rf Engine/Intermediate/Shaders Engine/Saved Engine/DerivedDataCache Engine/Intermediate/CachedAssetRegistry.bin
rm -rf Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/UE4Editor Engine/Binaries/Linux/libUE4Editor-* Engine/Binaries/Linux/UE4Editor
rm -f Engine/Binaries/Linux/Unreal* Engine/Binaries/Linux/UE*
Engine/Binaries/Linux/libUnreal* Engine/Binaries/Linux/libUE* Engine/Binaries/Linux/libSh*
Engine/Binaries/Linux/ShaderCompileWorker* Engine/Binaries/Linux/SlateViewer* Engine/Binaries/Linux/CrashReportClient*
rm -rf Engine/Intermediate/Build Engine/Binaries/Linux/HTML5 Engine/Binaries/Linux/Linux Engine/Binaries/Linux/Android Engine/Binaries/Linux/IOS Engine/Binaries/Linux/HTML5

then from the console run ./ or execute it from the file browser
Remember that you will have to again build the engine from the beginning!

Same, it’s almost 100 GB. I’d like to move a distributable with nothing but executable code onto my SSD if at all possible. I looked for an “install” target in the Makefile but no joy.