Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: onschedule on January 17, 2019, 09:00:28 AM



Title: why got a so big size wallet client during compile wallet in ubuntu
Post by: onschedule on January 17, 2019, 09:00:28 AM
ubuntu 18.04
compile crypto currency

compile process:
cd xxxxcoin
./autogen.sh
./configure
./make

got xxxxcoind in /xxxxcoin/src, but the size over 140M

then compile :
sudo apt-get install g++-mingw-w64-i686
cd xxxxcoin
cd depends
make HOST=x86_64-w64-mingw32 -j4
cd ..
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
make
got xxxxcoin-qt in src/qt ,but the size over 140M

need help !!


Title: Re: why got a so big size wallet client during compile wallet in ubuntu
Post by: achow101 on January 17, 2019, 05:30:37 PM
That is not abnormal. The reason the binary is so large is because it contains debugging symbols. It is not stripped. If you do
Code:
strip src/qt/xxxcoin-qt
the binary will become much smaller. That removes all of the debugging symbols.


Title: Re: why got a so big size wallet client during compile wallet in ubuntu
Post by: onschedule on January 18, 2019, 02:48:32 AM
That is not abnormal. The reason the binary is so large is because it contains debugging symbols. It is not stripped. If you do
Code:
strip src/qt/xxxcoin-qt
the binary will become much smaller. That removes all of the debugging symbols.

thanks man ,but strip function is not normal process ,some time i can get a normal wallet with normal size but most of time i can not.


Title: Re: why got a so big size wallet client during compile wallet in ubuntu
Post by: elda34b on January 18, 2019, 03:08:30 AM
thanks man ,but strip function is not normal process ,some time i can get a normal wallet with normal size but most of time i can not.

What is your definition of "normal size"? I think it's usual if you build from scratch and got "bigger" files compared to non-debugging files, just like achow said.


Title: Re: why got a so big size wallet client during compile wallet in ubuntu
Post by: achow101 on January 18, 2019, 03:34:31 AM
thanks man ,but strip function is not normal process ,some time i can get a normal wallet with normal size but most of time i can not.
And what you are doing is not the normal process for releases. You are doing the normal process for development where you want to have debugging symbols in order to debug the software. The release process uses gitian which runs a build script. That build script does use strip and does many other things that are specific to releases.