[OE-core] RFC: Qt session management is disabled via QT_DISTRO_FLAGS

Samuel Stirtzel s.stirtzel at googlemail.com
Thu Feb 16 13:04:57 UTC 2012


Hi,
my attempts to work around this didn't work out so maybe anyone else
has a good idea.

First of, the Qt session management is a build time dependency of
kdelibs, disabling the components that need it will make it impossible
to build Plasma Active.



The direct error message in kdelibs4:
git/kdeui/kernel/kapplication.cpp:329:2: error: #error
QT_NO_SESSIONMANAGER was set, this will not compile. Reconfigure Qt
with Session management support.
git/kdeui/kernel/ksessionmanager.h:60:27: error: 'QSessionManager' has
not been declared

After a bit of tracing it has become visible that the header files
exists in an inactive status due to Qt defines.

In qt4-x11-free log.do_compile:
kernel/qsessionmanager.h:0: Note: No relevant classes found. No output
generated.

The problem:
In qt4.inc the "-no-sm" disables session management (QT_DISTRO_FLAGS
?= "-no-accessibility -no-sm").

If it would be possible to disable Nepomuk in Plasma Active, then this
would be no problem, but this is not intended by the KDE devs...


Anyone knows if enabling session management in Qt is a bad idea, or if
there is another way of solving this?


-- 
Regards
Samuel




More information about the Openembedded-core mailing list