[opensuse] building lyx results in very large executable file in openSUSE 11.2
Hello: I have a question related to building/compiling programs on oS 11.2. Recently I have compiled lyx 2.0.0rc3 with no problems and errors. The compiled program works, but the resulted lyx binary size is ~80 megabytes. The 1.6.9 binary from the build repo is ~7 MB. Earlier when I compiled firefox 2 the resulted binary was ~40 MB, while the official binary was only ~12 MB. What is the reason for getting so large binary files? How could I get a reasonably sized binary? (When I built the program I did not change the options except for --prefix which I set to /usr/local/lyx. I used ./configure, make, make install commands.) Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday, April 19, 2011 12:22:42 PM Istvan Gabor wrote:
I have a question related to building/compiling programs on oS 11.2. Recently I have compiled lyx 2.0.0rc3 with no problems and errors. The compiled program works, but the resulted lyx binary size is ~80 megabytes. The 1.6.9 binary from the build repo is ~7 MB.
Earlier when I compiled firefox 2 the resulted binary was ~40 MB, while the official binary was only ~12 MB.
What is the reason for getting so large binary files? How could I get a reasonably sized binary?
(When I built the program I did not change the options except for --prefix which I set to /usr/local/lyx. I used ./configure, make, make install commands.)
There should be no reason to have larger binaries if you have correctly compiled the app. Maybe you have used static libraries instead of shared ones when compiling. Use 'ldd app_name' to check shared libs dependencies. regards -- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Istvan Gabor wrote:
Hello:
I have a question related to building/compiling programs on oS 11.2. Recently I have compiled lyx 2.0.0rc3 with no problems and errors. The compiled program works, but the resulted lyx binary size is ~80 megabytes. The 1.6.9 binary from the build repo is ~7 MB.
Earlier when I compiled firefox 2 the resulted binary was ~40 MB, while the official binary was only ~12 MB.
What is the reason for getting so large binary files?
It sounds like you built with statically linked libraries.
How could I get a reasonably sized binary?
Build with dynamically linked libraries. -- Per Jessen, Zürich (15.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I have a question related to building/compiling programs on oS 11.2. Recently I have compiled lyx 2.0.0rc3 with no problems and errors. The compiled program works, but the resulted lyx binary size is ~80 megabytes. The 1.6.9 binary from the build repo is ~7 MB. `> (When I built the program I did not change the options except for --
On Tuesday 19 April 2011 12:22:42 Istvan Gabor wrote: prefix
which I set to /usr/local/lyx. I used ./configure, make, make install commands.)
For your information, we're building lyx 2.0.0rc3 for openSUSE 11.2 and newer in the Build Service: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/openSUSE... (The 11.2 i586 binary is 11MB, fwiw) If you want to see the build configuration used in these packages, check the build log (large log) https://build.opensuse.org/package/rawlog?arch=i586&package=lyx&project=KDE%3AUnstable%3APlayground&repository=openSUSE_11.2 HTH Will -- Will Stephenson, KDE Developer, openSUSE Boosters Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2011. április 19. 12:57 napon Will Stephenson <wstephenson@suse.de> írta: [snip]
For your information, we're building lyx 2.0.0rc3 for openSUSE 11.2 and newer in the Build Service: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/openSUSE... (The 11.2 i586 binary is 11MB, fwiw)
If you want to see the build configuration used in these packages, check the build log (large log)
Will, thanks for pointing this out. As I do not like to build programs I usually prefer to use the repos. But I don't want to remove the stable version yet, so I can not install the rpm. Cheers, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-04-19 12:22, Istvan Gabor wrote:
Hello:
I have a question related to building/compiling programs on oS 11.2. Recently I have compiled lyx 2.0.0rc3 with no problems and errors. The compiled program works, but the resulted lyx binary size is ~80 megabytes. The 1.6.9 binary from the build repo is ~7 MB.
Either static libs, or more probably IMO, debug info. Use strip. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk2tdTIACgkQtTMYHG2NR9U1owCfW43nrKsgc+kdFWsKrP2TXUwo y0sAn3cigemfB8V8C3gEosR030MLG+s5 =7yqx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2011. április 19. 13:42 napon "Carlos E. R." <robin.listas@telefonica.net> írta:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-04-19 12:22, Istvan Gabor wrote:
Hello:
I have a question related to building/compiling programs on oS 11.2. Recently I have compiled lyx 2.0.0rc3 with no problems and errors. The compiled program works, but the resulted lyx binary size is ~80 megabytes. The 1.6.9 binary from the build repo is ~7 MB.
Either static libs, or more probably IMO, debug info. Use strip.
Thank you all for your help. I did not build with static libraries. I got the large binary since the --enable-debug option is enabled by default for the rc version of lyx. After disabling it rebuilding the program resulted in a 10 MB binary. Applying strip on the 80 MB binary also reduced the size to 8 MB. Thank you again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-04-19 16:52, Istvan Gabor wrote:
Thank you all for your help. I did not build with static libraries. I got the large binary since the --enable-debug option is enabled by default for the rc version of lyx. After disabling it rebuilding the program resulted in a 10 MB binary. Applying strip on the 80 MB binary also reduced the size to 8 MB.
If you create the rpm with checkinstall, it will automatically run "strip" (configurable). - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk2t2xkACgkQtTMYHG2NR9X40QCghIU4dGh1zHYVwlYsczeKZak8 vyoAniwMdSS6dzmLdvBPIMR5OY/12vq9 =aPjN -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 19/04/11 08:42, Carlos E. R. escribió:
Either static libs, or more probably IMO, debug info. Use strip.
that's more likely in the case of "lyx", debug information. Unless the package itself includes bundled libraries of course. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Bogdan Cristea
-
Carlos E. R.
-
Cristian Rodríguez
-
Istvan Gabor
-
Per Jessen
-
Will Stephenson