Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: embicoin on February 27, 2014, 04:45:43 AM



Title: Why my own compiled wallets are so big in size?
Post by: embicoin on February 27, 2014, 04:45:43 AM
Hello!
My computer is running Windows 8.1 64 bits.

I recently have compiled several wallets for also several coins, I tried with different versions for the deps and also QT4 and QT5.
In all scenarios the results involve my computer releasing a large executable file, with an average size of 20 MB.

I have seen binary releases of BTC and other alt-coins with averages of 7-8 MB, so my question is:

1. Is it possible to reduce the output QT-wallet executable?

Also I seen that when I run in it standalone my computer it does not ask for dll, but when I move the exe to another computer with Windows 7 x64 I need to pack it with the several .dll libraries, Qt4gui and so...

2. Is there any way to pack the libraries in the exe?


Thanks in advance ;)


Title: Re: Why my own compiled wallets are so big in size?
Post by: cp1 on February 27, 2014, 04:58:10 AM
Have you tried strip?


Title: Re: Why my own compiled wallets are so big in size?
Post by: embicoin on February 27, 2014, 05:10:27 AM
Have you tried strip?

Yes, I tried it with no changes at all...
BTW I am talking about QT Wallet.


Title: Re: Why my own compiled wallets are so big in size?
Post by: embicoin on February 27, 2014, 11:55:52 AM
Still no answers :(

FYI: When I zip the client it goes from 22 MB to 7MB, so it seems to be lot of redundant - garbage data there...
Also is important for me to know is there is the possibility of packing .dll libraries inside the exe...


Title: Re: Why my own compiled wallets are so big in size?
Post by: embicoin on February 27, 2014, 06:55:06 PM
Bump ! Nobody has experimented the same problem?


Title: Re: Why my own compiled wallets are so big in size?
Post by: embicoin on February 28, 2014, 04:01:23 AM
Please I am stuck with this issue :(

Last walled I compiled was auroracoin windows qt.
The precompiled exe: 8.16MB
My own compiled exe: 18.4MB
The functionality seems to be exactly the same.

Where is the problem?


Title: Re: Why my own compiled wallets are so big in size?
Post by: kjj on February 28, 2014, 06:10:52 AM
Are you sure you stripped the binary?


Title: Re: Why my own compiled wallets are so big in size?
Post by: embicoin on March 01, 2014, 07:32:25 PM
Are you sure you stripped the binary?

cmd ->
cd bitcoin-source/release
strip bitcoin-qt.exe
The output is nothing. The size stays the same...

Am I missing anything?


Title: Re: Why my own compiled wallets are so big in size?
Post by: kjj on March 01, 2014, 07:57:12 PM
It sounds like the strip utility you are running doesn't understand windows binaries.  Maybe find one that does?


Title: Re: Why my own compiled wallets are so big in size?
Post by: embicoin on March 02, 2014, 10:17:55 AM
It sounds like the strip utility you are running doesn't understand windows binaries.  Maybe find one that does?

->I used the strip that comes with mingw32, dependant on zlib1.dll (the latest from mingw32-get repository), its size is 7.99MB
->Also tried with 2 another strip versions, mingw32-4.8 dwarf build and mingw32-4.6 i686 build... (887KB and 902KB size)
->Also tried mingw32-strip.exe but no luck.

Still waiting for a constructive answer.
Anyway thanks for trying kjj ;)

Code:
C:\bitcoin\release>strip -v bitcoin-qt.exe
copy from `bitcoin-qt.exe' [pei-i386] to `sta02416' [pei-i386]
C:\bitcoin\release>