[Kde-bindings] Smokegen and amd64
Maciej Mrozowski
reavertm at gmail.com
Wed Aug 11 18:23:26 UTC 2010
On Wednesday 14 of July 2010 20:01:49 Maciej Mrozowski wrote:
> Hi
>
> Currently smokegen is unable to find generator plugins installed in lib dir
> different that "lib". I propose either something along the lines of
> attached patch or some more cleaner solution (like introduce
> smoke_config.h.cmake and put LIB_SUFFIX macrodefinition there) or maybe
> some more generic (?) library loading mechanism than QLibrary.
>
> current code:
> <snip>
> // first try to load plugins from the executable's directory
> QLibrary lib(app.applicationDirPath() + "/generator_" + generator);
> lib.load();
> if (!lib.isLoaded()) {
> lib.unload();
> lib.setFileName(app.applicationDirPath() +
> "/../lib/smokegen/generator_" + generator);
> lib.load();
> }
> if (!lib.isLoaded()) {
> lib.unload();
> lib.setFileName("generator_" + generator);
> lib.load();
> }
> if (!lib.isLoaded()) {
> qCritical() << lib.errorString();
> return EXIT_FAILURE;
> }
> </snip>
>
> (originally reported by Michael Jansen)
Attached a bit cleaner solution (using config-generator.h instead).
--
regards
MM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebindings.diff
Type: text/x-patch
Size: 1617 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100811/697aa8c0/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100811/697aa8c0/attachment.sig>
More information about the Kde-bindings
mailing list