kdebindings, generator, LD_LIBRARY_PATH
David Faure
faure at kde.org
Mon Nov 2 18:13:45 CET 2009
On Saturday 31 October 2009, Alexander Neundorf wrote:
> On Saturday 31 October 2009, Yury G. Kudryashov wrote:
> > On Saturday 31 October 2009 20:45:16 you wrote:
> > > On Friday 30 October 2009, Yury G. Kudryashov wrote:
> > > > Hi!
> > > > if( UNIX )
> > > > # Generator library is used during compilation. If some
> > > > environment not # have previous kdebindings installed, will
fail,
> > > > then we need add local path
> > > > set( ENV{LD_LIBRARY_PATH}
> > > > ${CMAKE_CURRENT_BINARY_DIR}/generator/bin ) endif( UNIX
)
> > >
> > > If you set(ENV{FOO} bar) in a CMakeLists.txt, this sets the
env.var FOO
> > > at the moment when this command is executed, i.e. at cmake-
time. This
> > > means it won't be set later at build time (when the makefiles are
> > > executed).
> >
> > Yes, I've read about this before sending e-mail.
> >
> > > You may file a feature request to support an ENVIRONMENT
argument so
> > > that it is possible to set env.vars for the executed process.
> > >
> > > What's going wrong without this patch ?
> >
> > The generator fails to load plugin
> > BUILD_DIR/generator/bin/generator_smoke.so at build (make)
time. It uses
> > QLibrary lib("generator_smoke"); lib.load().
>
> Can you tell QLibrary to search in an additional directory ?
Yes, see QApplication::addLibraryPath().
--
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