[Qt-interest] Static linking

Martin Hofius Martin at hofius-online.com
Thu Jun 25 09:37:18 CEST 2009


Hi,

Am Donnerstag, 25. Juni 2009 schrieb Sujan Dasmahapatra:
> OK Matrin That's possible...i think I have to dynamically link qwt.so
> file.thats right
> WHY I am   getting this file not found when I am doing ldd./application
> I am setting the correct path in the .pro file.
> libqwt.so.5 => not found
> libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x0000003579700000)
did you read 
http://doc.trolltech.com/4.5/deployment-x11.html#creating-the-application-package?
You should understand how the runtime searches for shared libs.

Greetings
Martin
>
>
> Kind Regards,
> Sujan Dasmahapatra
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Martin Hofius
> Sent: Thursday, June 25, 2009 12:51 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Static linking
>
> Hi,
>
> Am Donnerstag, 25. Juni 2009 schrieb Sujan Dasmahapatra:
> > Dear Friends
> >
> > I am trying to make static linking for my application....But the
> > executable is still dependent on qwt......I am specifying the  qwt lib
> > in the *.pro file...And building  in release mode bbut when I am doing
> > ldd ./application I can see it's still dependent of qwt and qwt.so
>
> file
>
> > not found it's showing...What I am doing wrong please someone tell me.
>
> i guess this qwt.lib file is a dummy linking lib (just to give the
> linker
> information about how to use the dynamic lib (so) at runtime) and your
> qwt
> was build for dynamic linking.
>
> Greetings
> Martin
>
> > Kind regards,
> > LM Glasfiber R&D (India) Pvt. Ltd.
> >
> > Sujan Dasmahapatra
> > Project Engineer - CFD
> >
> > Telephone: +91 80 66470248
> > Mobile:
> > E-mail: sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --------------------------------------------------------------
> >
> > This e-mail and any attachments are confidential. If you are not the
> > named or intended recipient, please notify the sender immediately and
>
> do
>
> > not disclose the contents to any other person, use it for any purpose
>
> or
>
> > store or copy the information in any medium. Any unauthorized
> > disclosure, use or storage is prohibited and might be unlawful.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest





More information about the Qt-interest-old mailing list