This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can't compile KDE-Workspace-4.3.2

Tags: None
(comma "," separated)
mike01109
Registered Member
Posts
6
Karma
0

Can't compile KDE-Workspace-4.3.2

Mon Oct 26, 2009 9:37 pm
hi folks

i can't compile the actually kde-workspace from source. the compiler/linker means:
[ 81%] Built target krandrtray
[ 81%] Built target kcm_keyboard_layout_automoc
Linking CXX shared module ../../lib/kcm_keyboard_layout.so
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::registerForNewDeviceEvent(_XDisplay*)':
/sources/BLFS/1KDE4/kdebase-workspace-4.3.2/kcontrol/kxkb/x11helper.cpp:413: undefined reference to `_XiGetDevicePresenceNotifyEvent'
/sources/BLFS/1KDE4/kdebase-workspace-4.3.2/kcontrol/kxkb/x11helper.cpp:414: undefined reference to `XSelectExtensionEvent'
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::isNewDeviceEvent(_XEvent*)':
/sources/BLFS/1KDE4/kdebase-workspace-4.3.2/kcontrol/kxkb/x11helper.cpp:388: undefined reference to `XListInputDevices'
/sources/BLFS/1KDE4/kdebase-workspace-4.3.2/kcontrol/kxkb/x11helper.cpp:399: undefined reference to `XFreeDeviceList'
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [lib/kcm_keyboard_layout.so] Fehler 1
make[1]: *** [kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/all] Fehler 2
make: *** [all] Fehler 2
root@:notbug:/sources/BLFS/1KDE4/kdebase-workspace-4.3.2/build$

so i googled around an found some infos about this issue. but the entired xorg is uptodate. i compiled my x-server in a new version for kde4. i used the the latest packages from freedesktop. my gcc is in version 4.4.2. my distribution is a clfs... ;-)

whats is my error? can any body help on this issue?

btw:
# KDE4/Oxygen-Icons
# KDE4/KdeLibs
# KDE4/KdeLibs-experimental
# KDE4/KdePimLibs
this kde-parts are compiled with the 'older' xorg-server. but on kde-workspace i run in this error. so for this reason i setting up a new xorg-server. must i now compiling EVERY package again?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you got all of the needed X headers installed? These are usually contained within debug packages.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mike01109
Registered Member
Posts
6
Karma
0
i'm not shure about the headers. i used the following tutorial:
http://cblfs.cross-lfs.org/index.php/Xorg7/Intro
but with the latest package version for each part of xorg.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Whilst re-reviewing the output, I noticed that it is a case of libraries not being found, rather than missing headers.

Do you have the path to the Xorg libraries for the manually compiled X in the ld.so.conf file?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mike01109
Registered Member
Posts
6
Karma
0

Re: Can't compile KDE-Workspace-4.3.2

Tue Oct 27, 2009 10:26 am
yes.
cat /etc/ld.so.conf | grep X11:
/usr/X11/lib
/usr/X11/lib64
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Do you have the X keyboard support library, X Input library, X Extensions library and standard X library compiled and present in that directory?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mike01109
Registered Member
Posts
6
Karma
0
i think so.
and all lib are sure in /usr/X11/lib[64] -> /usr/X11R7/lib[64]
i installed all latest libs from http://xorg.freedesktop.org/releases/individual/lib/
and also the xcb -> http://xcb.freedesktop.org/dist/libxcb-1.4.tar.bz2
while building the xorg, there was no more dependencies.
also the kde-parts don't screem about some x-libs
i think, i will build the entire kde-env again. possible there is the error (i hope so)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Only removing and recreating the KDEBase/Workspace build directory should be required.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mike01109
Registered Member
Posts
6
Karma
0
bcooksley wrote:Only removing and recreating the KDEBase/Workspace build directory should be required.

already tried, but the same issue...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to make sure the libXi library is correctly installed.

Code: Select all
trunk@grace:/usr/lib> strings -f libX* | grep XListInputDevices
libXi.a: XListInputDevices
libXi.a: XListInputDevices
libXi.a: XListInputDevices
libXi.a: XListInputDevices
libXi.so: XListInputDevices
libXi.so.6: XListInputDevices
libXi.so.6.0.0: XListInputDevices

trunk@grace:/usr/lib> strings -f libX* | grep XFreeDeviceList
libXi.a: XFreeDeviceList
libXi.a: XFreeDeviceList
libXi.a: XFreeDeviceList
libXi.a: XFreeDeviceList
libXi.so: XFreeDeviceList
libXi.so.6: XFreeDeviceList
libXi.so.6.0.0: XFreeDeviceList

trunk@grace:/usr/lib> strings -f libX* | grep XiGetDevicePresenceNotifyEvent
libXi.a: _XiGetDevicePresenceNotifyEvent
libXi.a: _XiGetDevicePresenceNotifyEvent
libXi.a: _XiGetDevicePresenceNotifyEvent
libXi.a: _XiGetDevicePresenceNotifyEvent
libXi.so: _XiGetDevicePresenceNotifyEvent
libXi.so.6: _XiGetDevicePresenceNotifyEvent
libXi.so.6.0.0: _XiGetDevicePresenceNotifyEvent

trunk@grace:/usr/lib> strings -f libX* | grep XSelectExtensionEvent
libXi.a: XSelectExtensionEvent
libXi.a: XSelectExtensionEvent
libXi.a: XSelectExtensionEvent
libXi.a: XSelectExtensionEvent
libXi.so: XSelectExtensionEvent
libXi.so.6: XSelectExtensionEvent
libXi.so.6.0.0: XSelectExtensionEvent


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mike01109
Registered Member
Posts
6
Karma
0

Re: Can't compile KDE-Workspace-4.3.2

Tue Nov 03, 2009 12:31 pm
hi,

strings -f libX* | grep XListInputDevices
strings -f libX* | grep XFreeDeviceList
strings -f libX* | grep XiGetDevicePresenceNotifyEvent
strings -f libX* | grep XSelectExtensionEvent

i tryed this in /usr/X11/lib and /usr/X11/lib64
i've got the same result like you. and now?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you are getting a listing like mine then your system should not be encountering the error listed. Make sure that the correct libraries are found ( maybe verify your /etc/ld.so.conf configuration, as older libraries may be getting found )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
prezzemolo
Registered Member
Posts
3
Karma
0
OS

Re: Can't compile KDE-Workspace-4.3.2

Tue Dec 01, 2009 12:30 am
Hi
I am a BLFS user from many years. My system is working (for now) with Kernel
2.6.28.2 upgdraded to 2.6.30.9, GCC-4.3.3, XOrg 7.4 and KDE-3.5.10. Last week
i take a look at new kde and i have installed qt-4.5.3 with kde-4.3.3: well, i
have found the same trouble with kde-workspace.

The make output is stopped at about 80% with:
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::registerForNewDeviceEvent(_XDisplay*)':
x11helper.cpp:(.text+0xbb): undefined reference to `_XiGetDevicePresenceNotifyEvent'
x11helper.cpp:(.text+0xef): undefined reference to `XSelectExtensionEvent'
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::isNewDeviceEvent(_XEvent*)':
x11helper.cpp:(.text+0x94c): undefined reference to `XListInputDevices'
x11helper.cpp:(.text+0xc99): undefined reference to `XFreeDeviceList'
collect2: ld returned 1 exit status
make[2]: *** [lib/kcm_keyboard_layout.so] Error 1
make[1]: *** [kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/all] Error 2
make: *** [all] Error 2

The four undefined reference are exported by XOrg LibXi and the output of
strings command is:
strings -f /usr/X11R6/lib/libX* | grep XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: _XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: _XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: _XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: _XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.so: _XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.so.6: _XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.so.6.0.0: _XiGetDevicePresenceNotifyEvent
same good result for XSelectExtensionEvent, XListInputDevices and
XFreeDeviceList.

I am newby on KDE4 but I have think that kde-workspace don't link LibXi and
looking over kde-workspace's directory I have found a file named link.txt (the
full path is ../build/kcontrol/kxkb/kcm_keyboard_layout.dir/link.txt). Well,
LibXi is not present... I have simply write at the end of the file
/usr/X11R6/lib/libXi.so and the compilation work fine. For prevent another
error I have do the same on ../build/kcontrol/kxkb/kdeinit_kxkb.dir/link.txt

Now, this is not a clean solution... someone know a better mode (like modify
compiler parameter)?
Bye and sorry for my english...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This sounds like a bug in CMake, the utility that powers KDE's build system. Please ask on the kde-buildsystem@kde.org, so that they can correct the build system to fully find X.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
prezzemolo
Registered Member
Posts
3
Karma
0
OS
Hi bcooksley
I have send a mail to kde-buildsystem@kde.org.
Thank you so match
Bye


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]