Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Dec 2014, 16:15
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
QT-opensource-4.7.3
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
morgonzola


Joined: 21 Apr 2010
Posts: 160
Location: Los Angeles, CA

PostPosted: Sat 04 Jun 2011, 17:16    Post subject:  QT-opensource-4.7.3
Subject description: the full shebang. everything included and built
 

ok so here is the full Qt library. its huge. unfortunately i included too many symlinks in the / directory so just go in there and delete those that are not useful. i figure this is easier then re-uploading the whole thing (huge ugh)
i can make a script which will do it, but i'm afraid of deleting things that people already had there, so if the script is desired i will try and make it.
this is if you got the old one!!!!!!!!!!!

for the new one, its all good i cleaned it up

everything is compiled in /opt/qt-opensource-4.73

qt-opensource-4.7.3
size=161.11 MB
file host=2shared[/b]
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Sun 05 Jun 2011, 03:25    Post subject:  

Hello Morgonzola,

I'm a bit daunted by the size of your QT4 sfs! Compared with Pemasu's 4.8:

qt4-4.8.0.sfs (18M)
http://www.smokey01.com/pemasu/Sfs/qt4_DEV-4.8.0.sfs (14M)

I wonder whether, before creating the sfs, you stripped all the libraries?
Back to top
View user's profile Send private message 
playdayz


Joined: 25 Apr 2008
Posts: 3789

PostPosted: Sun 05 Jun 2011, 09:16    Post subject:  

Quote:
I wonder whether, before creating the sfs, you stripped all the libraries?


Good guess muggins. There was also considerable documentation included. Musescore 1.0 is available in a 68MB pet complete.
http://www.murga-linux.com/puppy/viewtopic.php?p=531042#531042
Back to top
View user's profile Send private message 
Dingo


Joined: 11 Dec 2007
Posts: 1423
Location: somewhere at the end of rainbow...

PostPosted: Sun 05 Jun 2011, 11:04    Post subject:  

I usually:

perform strip
Code:
strip --strip-unneeded

perform sstrip (from elfkickers)
to eliminate little garbage that strip leaves
if I'm not satisfied, I try to re-build against dietlibc

for binaries, I often compress with upx

_________________
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux
Back to top
View user's profile Send private message Visit poster's website 
morgonzola


Joined: 21 Apr 2010
Posts: 160
Location: Los Angeles, CA

PostPosted: Mon 06 Jun 2011, 01:10    Post subject:  

Quote:

PostPosted: Yesterday, at 11:04 Post subject:
I usually:

perform strip
Code:
strip --strip-unneeded

perform sstrip (from elfkickers)
to eliminate little garbage that strip leaves
if I'm not satisfied, I try to re-build against dietlibc

for binaries, I often compress with upx


oh ok. to be honest i don't know what any of that is Embarassed tee hee but! i will try it out on the qt thing sometime this week and make a re post

but thanks for all the advice Very Happy much appreciated
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Mon 06 Jun 2011, 04:56    Post subject:  

Hello Morgonzola,

yes, strip can reduce the size of binaries, and library files, by removing symbols that aren't required for the compiled propgram/library to work.

Also, it's been awhile since I last compiled QT4 but, (from what I can recall), if you include the configure option -fast, it really does speed up compilation.

cheers
Back to top
View user's profile Send private message 
morgonzola


Joined: 21 Apr 2010
Posts: 160
Location: Los Angeles, CA

PostPosted: Mon 06 Jun 2011, 20:10    Post subject:  

actually can i ask a clarifying question about stripping libraries?

do i have to tell strip what i specifically want to strip? and if that is so what do i tell it to strip?

also does this take place in the original directory i made it in or is it in the one i plan on turning into a pet/sfs

also does compressing binaries have a lot of impact? or is it just another thing to do
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Tue 07 Jun 2011, 08:43    Post subject:  

Binaries & library .so files should always be stripped, to reduce their size by removing unnecessary debugging symbols. With bin directories you can just run, in the relevant directory:

Code:
strip *


whereas for library files, as mentioned by Dingo, you could use:

Code:
strip --strip-unneeded *.so


(Although, ftom memory, I think Mu usedto use strip * on libs as well?)

Note that strip isn't recursive, so if there are other library files, in subdirectories, you will either need to run the same command in them, or write a script to recursively call strip.

With regard to also compressing binaries, by upx'ing them, well it depends on how the files will be packaged. There's no need to upx binaries in your QT4 sfs, as they'll already be compressed by squashfs.

Edit:

Quote:
also does this take place in the original directory i made it in or is it in the one i plan on turning into a pet/sfs


Usually you'll find, after doing a make install, that often the Makefile has already called strip. But, it's something to get into the habit of checking, in your final pet directory, especially in the case of big packages like QT4.

Quote:
also does compressing binaries have a lot of impact?


Stripping doesn't change the operation of the binary, only removing unrequired symbols. (With the caution that --strip-uneeded has to be used for libs, as they might not work with more aggressive stripping.)

Upx'ing binaries also doesn't negatively alter their operation...just makes them load slightly slower. But, as mentioned above, you wouldn't upx binaries intended for inclusion in an sfs file.

One last thing about upx'ed bimaries is that running ldd on them doesn;t show which library files they're linked to. The solution is to run upx -d binary_name
first, then use ldd binary_name.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0700s ][ Queries: 12 (0.0071s) ][ GZIP on ]