windows static compiling - debug symbols
Hi, I have compiled my QT on windows statically. All is fine and works, except the disk usage is around 3GB. I deleted temporary and garbage files using:
but the compiled binaries are still taking up around 2.2GB of disk space.
Is there any way to further strip the unneeded things to free some more space (of course I still want to compile programs statically...).
I would be greatful for any ideas?
Re: windows static compiling - debug symbols
You can recompile Qt to remove things you don't use, then your programs will also shrink in size.
Re: windows static compiling - debug symbols
No, I want all the functionality available, because you never know when you're gonna need it.
But the actual QT size in linux (dynamical) is around 300MB, why is windows static version 2.2GB?
Ah, then there is no change in lowering the disk usage (without losing the functionality)?
Re: windows static compiling - debug symbols
In your first post, you stated 'compiled binaries', hence multiple.
Now you seem to referring to a single executable.
Which is it? 2.2GB is indeed large for a single executable, if thats the case.
Re: windows static compiling - debug symbols
Yes multiple compiled binary...
But on linux system they only occupy 300MB (dynmically compiled), but on windows they occupy 2.2GB (statically compiled).
So why is there so much difference in disk space usage?
Re: windows static compiling - debug symbols
On Linux, all the code your linking against is kept in a shared library. On Windows, because you are statically linking, all the code you are linking against is copied to each and every executable, thus making it substantially larger. It'll also use more memory, as the code can't be shared amongst processes.
You should dynamically link on Windows too, and your executable sizes will drop dramatically. There are very few reasons to statically link.
Re: windows static compiling - debug symbols
I'm not talking about executables. I'm talking about statically compiled qt binaries ... so the question remains the same?
Re: windows static compiling - debug symbols
statically compiled qt binaries? Its compiled, thus executable, and since its statically linked, you can't be talking about the Qt library, so what are you talking about?