Bug 231576 - kdebase-workspace fails to compile, incorrect CMakeLists.txt
Summary: kdebase-workspace fails to compile, incorrect CMakeLists.txt
Status: RESOLVED WORKSFORME
Alias: None
Product: buildsystem
Classification: Developer tools
Component: KDE4 (cmake) (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-21 20:02 UTC by Alexey Chernov
Modified: 2010-11-04 00:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
config file with commented check section (6.08 KB, text/plain)
2010-03-21 20:07 UTC, Alexey Chernov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernov 2010-03-21 20:02:57 UTC
Version:            (using KDE 4.4.1)
Compiler:          GCC 4.4.3 Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.4.3/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran --disable-multilib --disable-bootstrap Thread model: posix
OS:                Linux
Installed from:    Compiled From Sources

kdebase-workspace source package fails to compile because CMake incorrectly recognizes necessary requirement on XInput library. It fails to find XInput library of required version 1.2.0 or later though it's installed and prints to the output the following message:
"_XiGetDevicePresenceNotifyEvent is not found, libXi version 1.2.0 or later is required to keep layouts with keyboard hotplugging"
Everything configures OK but build fails with linker error.
If to comment out the following strings in kdebase-workspace/kcontrol/kxkb/CMakeLists.txt (line 60 to 64):

if( X11_Xinput_FOUND AND XiGetDevicePresenceNotifyEvent_EXISTS )
    set(XiGetDevicePresence_FOUND 1)
else( X11_Xinput_FOUND AND XiGetDevicePresenceNotifyEvent_EXISTS )
    MESSAGE(STATUS "_XiGetDevicePresenceNotifyEvent is not found, libXi version 1.2.0 or later is required to keep layouts with keyboard hotplugging")
endif( X11_Xinput_FOUND AND XiGetDevicePresenceNotifyEvent_EXISTS )

and add

set(XiGetDevicePresence_FOUND HAVE_XINPUT 1)

everything configures ok and builds ok with no one problem.

Maybe this caused by the fact that I compiled Xserver without HAL support. But as it works ok without this check I think it should be fixed or make optional.
Comment 1 Alexey Chernov 2010-03-21 20:07:05 UTC
Created attachment 41813 [details]
config file with commented check section
Comment 2 Alexey Chernov 2010-04-25 14:41:25 UTC
Well, and will there be any responce on this bug? It still exists in 4.4.2 and it completely ruins the compilation of the whole KDE actually.
Comment 3 Alexey Chernov 2010-11-04 00:24:05 UTC
Not reproducible for 4.5 branch.