kdebindings, generator, LD_LIBRARY_PATH

David Faure faure at kde.org
Mon Nov 2 20:31:43 CET 2009


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...

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror 
(http://www.konqueror.org).


More information about the Kde-buildsystem mailing list