[Qt-interest] Qt Linux static compilation

Thiago Macieira thiago.macieira at trolltech.com
Fri Jul 3 09:46:53 CEST 2009


qzvjtml02 at sneakemail.com wrote:
>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?

Yes, you have to run make install to get stuff installed. It's not an 
optional step, since Qt won't work otherwise.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090703/b6f484fd/attachment.bin 


More information about the Qt-interest-old mailing list