[Kde-bindings] Smokegen and amd64
Maciej Mrozowski
reavertm at gmail.com
Wed Jul 14 18:01:49 UTC 2010
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)
--
regards
MM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebindings.diff
Type: text/x-patch
Size: 956 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100714/aeca05a0/attachment.diff>
More information about the Kde-bindings
mailing list