[Qt-interest] Qt Linux static compilation

qzvjtml02 at sneakemail.com qzvjtml02 at sneakemail.com
Fri Jul 3 08:39:23 CEST 2009


Hello all.

	I am running Ubuntu 9.04. I need to statically compile Qt so I can  
statically compile my own application. I found http://doc.trolltech.com/4.5/deployment-x11.html 
  and decided to follow its directions. So, I navigated to /opt/ 
qtsdk-2009.03/qt, and executed "sudo ./configure -static -prefix /opt/ 
qtsdk-2009.03/qt-static". This worked fine, no errors occurred.  
Finally, I executed "sudo make sub-src". This also worked fine, with  
no errors. However, contrary to what that page claims, I did not find  
the compiled libraries in /opt/qtsdk-2009.03/qt-static afterward. I  
can't run "sudo make install" or it tries to statically compile more  
than just the libraries. I tried it anyway, and it DID start moving  
things to where they're supposed to be... but then it died trying to  
compile other stuff. Is a step missing? Did I do something wrong? How  
do I get these libraries where they're supposed to be?

	Thank you for your help!

		Kyle Fazzari



More information about the Qt-interest-old mailing list