kdebindings, generator, LD_LIBRARY_PATH
Thiago Macieira
thiago at kde.org
Mon Nov 2 20:46:49 CET 2009
Em Segunda-feira 2. Novembro 2009, às 11.31.43, David Faure escreveu:
> On Monday 02 November 2009, Thiago Macieira wrote:
> > Em Segunda-feira 2. Novembro 2009, às 10.55.08, Yury G. Kudryashov
>
> escreveu:
> > > On Monday 02 November 2009 20:13:45 David Faure wrote:
> > > > > > QLibrary lib("generator_smoke"); lib.load().
> > > > >
> > > > > Can you tell QLibrary to search in an additional directory ?
> > > >
> > > > Yes, see QApplication::addLibraryPath().
> > >
> > > It seems that applicationDirPath is always in libraryPaths but
> > > app.libraryPaths() is not used in QLibrary code. They use
> > > app.libraryPaths() for Qt plugins, not QLibrary.
>
> Hmmpf, the documentation for addLibraryPath is really not clear about that.
>
> > Set LD_LIBRARY_PATH then.
>
> The doc for QLibrary does mention this. But it's not really convenient
> nor portable...
Actually, it does:
"When loading the library, QLibrary searches in all the system-specific library
locations (e.g. LD_LIBRARY_PATH on Unix), unless the file name has an absolute
path."
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20091102/7d241b39/attachment-0001.sig
More information about the Kde-buildsystem
mailing list