Recent

Author Topic: Why exe so big under Linux?  (Read 10332 times)

Borneq

  • Full Member
  • ***
  • Posts: 238
Re: Why exe so big under Linux?
« Reply #15 on: June 19, 2012, 06:42:22 pm »
On Windows is enough small, how make similar size on Linux.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7021
  • Debugger - SynEdit - and more
    • wiki
Re: Why exe so big under Linux?
« Reply #16 on: June 19, 2012, 07:01:42 pm »
You gen about 5 MB for a simple app (New Project > Application / just an empty form) if you do not smart link.

Note that in order to be able to smartlink, you must compile the LCL and all packages as smartlinkable -CX.
I would expect the default install is. But as soon as you rebuild....

Note that using smartlinking can dramatically increase the time to build your app.

In addition it is always save to run:
  strip prpoject1

Leledumbo

  • Hero Member
  • *****
  • Posts: 8319
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Why exe so big under Linux?
« Reply #17 on: June 20, 2012, 01:14:37 am »
Quote
Note that in order to be able to smartlink, you must compile the LCL and all packages as smartlinkable -CX
This is the last thing that comes into my mind, Lazarus apps won't differ too much between platforms.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7021
  • Debugger - SynEdit - and more
    • wiki
Re: Why exe so big under Linux?
« Reply #18 on: June 20, 2012, 01:30:46 am »
Quote
Note that in order to be able to smartlink, you must compile the LCL and all packages as smartlinkable -CX
This is the last thing that comes into my mind, Lazarus apps won't differ too much between platforms.
Why? It is a valid reason.

Of course, if you do not smartlink on w32, you might get a bigger exe too. I did not test that.

I just noted that I get the exact 5 MB that Borneq got (on linux/gtk2). And I found it was because my LCL was not compiled with -CX. Neither was the project with -XX
I do not know what the setting are, if you installed lazarus via rpm or the like. All my installs are from SVN. So I have to get settings right myself.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8319
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Why exe so big under Linux?
« Reply #19 on: June 20, 2012, 11:22:01 am »
Quote
Why? It is a valid reason.
I mean... yes, I agree with you :D
This is the only thing we haven't said to Borneq.

 

TinyPortal © 2005-2018