kdebindings, generator, LD_LIBRARY_PATH
Yury G. Kudryashov
urkud at ya.ru
Sat Oct 31 22:00:46 CET 2009
On Saturday 31 October 2009 23:47:38 Alexander Neundorf wrote:
> > 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 ?
I haven't found it in QLibrary docs.
>
> You could add a command line argument to the generator where you can
> specifiy one or more additional plugin directories, and then give this to
> QLibrary, something like $ generator
> -plugin_dir=${CMAKE_CURRENT_BINARY_DIR}
>
> If that's not directly possible, you could do a setenv(LD_LIBRARY_PATH ...)
> in the generator executable when such an extra search path has been
> specified.
>
> Alternatively, if you don't want to modify the generator, you could use a
> wrapper script. E.g. in kdelibs/cmake/modules/KDE4Macros.cmake,
> KDE4_HANDLE_RPATH_FOR_EXECUTABLE() this is done for every executable
> created via KDE4_ADD_EXECUTABLE(), for the case that KDE4 is built with
> RPATH completely disabled and still some executables have to be executed
> during the build.
I think that kdebindings maintainer should chose one of these variants. Alex,
do you know whether he is subscribed to this list?
May be I'll write a patch in a few days.
>
> > > So I assume that the patch actually does nothing at all, it neither
> > > fixes or breaks something.
> >
> > Yes, this patch does nothing.
>
> Can you please revert it then ?
No, I have no KDE svn+ssh account.
--
Yury G. Kudryashov,
mailto: urkud.urkud at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20091101/96caa837/attachment.sig
More information about the Kde-buildsystem
mailing list