Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Compiling - size of binary

    Newbies - New Members Must Start Here
    4
    7
    1812
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      UR-Quan last edited by

      Greetings.

      After compiling (with --with-gui=no) my feathercoind is ~100 mb. But on your github it’s 9 mb. Do you pass some other options (guess it has something to do with dynamic linking)?

      1 Reply Last reply Reply Quote 0
      • Wellenreiter
        Wellenreiter Moderators last edited by Wellenreiter

        @UR-Quan

        100 mb is a very large binary. You are right, on Linux the size of feathercoind is about 7 mb.

        What is the operating system you are compiling on, and what are your options for the configure step of the build process?

        Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
        Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

        1 Reply Last reply Reply Quote 0
        • U
          UR-Quan last edited by

          It’s Ubuntu 17.10. autogen.sh, then configure --with-gui=no and make.

          1 Reply Last reply Reply Quote 0
          • AcidD
            AcidD Moderators last edited by

            To reduce the size of the binary, you can strip the debug symbols by running

            strip feathercoind

            • FTC Block Explorer + API @ https://fsight.chain.tips
            • FTC Beer Money: 6x4LEQV88zRnBvZoH6ZNK6SeRxx4KiTyJs
            • FTC bech32 address: fc1q4tclm3cv4v86ez6el76ewmharexfapxhek5a03
            • BTC bech32 address: bc1qk8umuccapuafspk9e5szahvp0detafuzugv4ay

            1 Reply Last reply Reply Quote 2
            • ghostlander
              ghostlander Regular Member last edited by

              strip -s feathercoind

              1 Reply Last reply Reply Quote 2
              • U
                UR-Quan last edited by

                Whoa, that worked! 5 mb. Thanks.

                1 Reply Last reply Reply Quote 1
                • AcidD
                  AcidD Moderators last edited by

                  Marked as solved!

                  • FTC Block Explorer + API @ https://fsight.chain.tips
                  • FTC Beer Money: 6x4LEQV88zRnBvZoH6ZNK6SeRxx4KiTyJs
                  • FTC bech32 address: fc1q4tclm3cv4v86ez6el76ewmharexfapxhek5a03
                  • BTC bech32 address: bc1qk8umuccapuafspk9e5szahvp0detafuzugv4ay

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post