Godot compiling produces huge (281M) executable file

saavedra29saavedra29 Posts: 2Member

Hello. I've cloned the master branch of Godot locally and built it with the flag "platform=x11" on my Linux machine. The resulting executable is 281M in size while the one i've downloaded from the site is only 62M.
Why such a difference? Thanks.

Comments

  • MegalomaniakMegalomaniak Posts: 1,824Admin

    Been a while since I've compiled from source, but IIRC by default it might build with all the export templates included. That should explain the difference.

  • TwistedTwiglegTwistedTwigleg Posts: 1,919Admin

    I could be wrong, but another thing that could be contributing to the larger file size is when compiling from source by default all of the debug symbols and stuff are included, while the binaries on the site have these excluded.

  • MegalomaniakMegalomaniak Posts: 1,824Admin

    Right, that too.

  • saavedra29saavedra29 Posts: 2Member

    I compiled with the debug_release flag so there shouldn't be all the debug symbols included. Also the templates are not included in the binary. When i go to Project-Export and press on a preset it says "no export template found at the expected path".

  • TwistedTwiglegTwistedTwigleg Posts: 1,919Admin

    Maybe this page about optimizing for build size on the documentation will help?

Sign In or Register to comment.