kdebindings, generator, LD_LIBRARY_PATH
Alexander Neundorf
neundorf at kde.org
Tue Nov 3 19:06:13 CET 2009
On Monday 02 November 2009, Thiago Macieira wrote:
> 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."
I think somebody should write a patch to make adding dirs possible also for
QLibrary.
Alex
More information about the Kde-buildsystem
mailing list