Registered Member
|
Hi,
I finally build KDE-SC on a KVM GUEST. I was able to launch it. Ok. (that was the previous thread i opened, now solved). I repeated the steps on a baremetal F17, same steps. I am able to build KDE (both master and 4. but i am not able to launch it. Master and 4.8 use different users. .xsession-errors shows: (imsettings-check:11657): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0) (imsettings-check:11687): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0) xset: bad font path element (#2), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax startkde: Starting up... Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. kded(11760): Communication problem with "kded" , it probably crashed. Error message was: "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " startkde: Shutting down... klauncher: Exiting on signal 1 startkde: Running shutdown scripts... startkde: Done. And dmesg shows: [ 4472.564337] kded4[11761]: segfault at 10 ip 00007f78c1143678 sp 00007fffb7913490 error 6 in oxygen.so[7f78c10ed000+ae000] [ 4472.686371] kcminit_startup[11766]: segfault at 10 ip 00007f987fad6678 sp 00007fff005d3a80 error 6 in oxygen.so[7f987fa80000+ae000] [ 4472.827279] ksmserver[11771]: segfault at 10 ip 00007f100900a678 sp 00007fffbc07f170 error 6 in oxygen.so[7f1008fb4000+ae000] KDE is installed in: /home/admin/kde (for master) and /home/user2/kde (for 4.8.5) To launch KDE (i first choose wich one i will launch, for example 4.8.5): # ls -l /usr/share/xsessions/kde-bleding-edge.desktop -rw-r--r--. 1 root root 3978 Aug 11 13:38 /usr/share/xsessions/kde-bleding-edge.desktop # head -6 /usr/share/xsessions/kde-bleding-edge.desktop [Desktop Entry] Encoding=UTF-8 Type=XSession Exec=/home/user2/kde/bin/startkde-wrapper TryExec=/home/user2/kde/bin/startkde-wrapper Name=KDE Bleding Edge $ ls -l ~/kde/bin/startk* -rwxr-xr-x. 1 user2 user2 13666 Aug 11 16:49 /home/user2/kde/bin/startkde -rwxr-xr-x. 1 user2 user2 544 Aug 11 13:39 /home/user2/kde/bin/startkde-wrapper $ cat /home/user2/kde/bin/startkde-wrapper #!/bin/sh export KDEDIR="$HOME/kde" AddToPath() { eval "export $1=$2\${$1+:\$$1}" # prepend to existing path, if there is one } AddToPath PATH "$KDEDIR/bin" AddToPath LD_LIBRARY_PATH "$KDEDIR/lib" AddToPath QT_PLUGIN_PATH "$KDEDIR/lib/kde4/plugins:$KDEDIR/lib/qt4/plugins" AddToPath PKG_CONFIG_PATH "$KDEDIR/lib/pkgconfig" AddToPath CMAKE_PREFIX_PATH "$KDEDIR" export XDG_DATA_DIRS="$KDEDIR/share:/usr/share" export XDG_CONFIG_DIRS="$KDEDIR/etc/xdg:/etc/xdg" export KDEDIRS="$KDEDIR" exec startkde "$@" |
Registered Member
|
These are the steps i used to build kde-sc, and the dependencies i isntalled:
STEP 0: * Installed a fresh install to a baremetal host (Phenom II X3 710 + 8 GB RAM + SSD + HDD) * Installed F17 X86_64, used the DVD MEDIA, Selected "Software Developement", customized package and added "KDE Software Developement". * Requiered space 31GB, when compiling everything. STEP 1: * Updated the system '# yum update' and rebooted. STEP 2: * Setup the system to build KDE-SC * Originaly based from: http://techbase.kde.org/Getting_Started ... ons/Fedora * Please note that you must yum-buildep one package at a time. If you specify more than one package, yum-buildep will only resolve dependencies for the first one. # yum-builddep qt # yum-builddep kdelibs # yum-builddep kde-runtime # yum-builddep kde-workspace # yum-builddep akonadi # yum-builddep soprano # yum-builddep kdeaccessibility # yum-builddep kdeedu # yum-builddep kdegames # yum-builddep kdegraphics # yum-builddep kdemultimedia # yum-builddep kdenetwork # yum-builddep kdepim # yum-builddep kdepimlibs # yum-builddep kdeplasma-addons # yum-builddep kdesdk # yum-builddep kdetoys # yum-builddep kdeutils # yum-builddep polkit-qt # yum-builddep strigi # yum install libkdcraw-devel # yum install libksane-devel sane-backends-devel NOW, SET UP RPMFUSION REPOS: RPMFUSION: '# yum install ffmpegthumbnailer-devel' # yum-builddep libkdcraw RPMFUSION: '# yum-builddep ffmpegthumbnailer' # yum install libgphoto2-devel # yum install upower-devel # yum install qt-devel-private # yum install kdenetwork-devel # yum install kate-devel # yum install vlc-devel # yum install scim-devel # yum install json-c-devel json-glib-devel # yum install qjson-devel # yum install calligra-devel # yum install hspell-devel aspell-devel xine-lib-devel xmms-devel xmms2-devel libtidy-devel marble-devel # yum install simspark-devel STEP 3: # mkdir -p ~/kde # mkdir -p ~/kdesrc && cd ~/kdesrc # git clone git://anongit.kde.org/kdesrc-build.git ~/kdesrc * Configure the kdesrc-build script. * In my case, i selected all cpu cores, since the host is dedicated to this task. * I also selected to build all items. # ./kdesrc-build-setup STEP 4: * Compile KDESRC # cd ~/kdesrc # ./kdesrc-build * The build should complete without any error. STEP 5: * DISABLE SELINUX, otherwise it will impede the execution of the recently compiled KDE-SC, since it will be located on non standar directories. Set it to PERMISSIVE. * Configure the recently compiled KDE-SC as an option in KDM. * KDM should be already installed. Edit (or create, because it does not exist by default on DVD Media) the file: # vi /etc/sysconfig/desktop And add: DESKTOP="KDE" DISPLAYMANAGER="KDE" STEP 6: EXAMPLE USER: admin KDE BINARIES: /home/admin/KDE * Adding an entry in KDM: # ls -l /usr/share/xsessions/ total 20 -rw-r--r--. 1 root root 3944 Jun 6 09:45 kde-plasma.desktop -rw-r--r--. 1 root root 5841 Jun 6 09:45 kde-plasma-safe.desktop # cp /usr/share/xsessions/kde-plasma.desktop /usr/share/xsessions/kde-custom.desktop # /usr/share/xsessions/kde-custom.desktop Defaults: Exec=/usr/bin/startkde TryExec=/usr/bin/startkde Name=KDE Plasma Workspace Change To: (example): Exec=/home/admin/kde/startkde-wrapper TryExec=/home/admin/kde/startkde-wrapper Name=KDE Plasma (Self Compiled) SETP 7: * Create startkde-wrapper script to make recently KDM entry work $ vi /home/admin/kde/bin/startkde-wrapper export KDEDIR="$HOME/kde" AddToPath() { eval "export $1=$2\${$1+:\$$1}" # prepend to existing path, if there is one } AddToPath PATH "$KDEDIR/bin" AddToPath LD_LIBRARY_PATH "$KDEDIR/lib" AddToPath QT_PLUGIN_PATH "$KDEDIR/lib/kde4/plugins:$KDEDIR/lib/qt4/plugins" AddToPath PKG_CONFIG_PATH "$KDEDIR/lib/pkgconfig" AddToPath CMAKE_PREFIX_PATH "$KDEDIR" export XDG_DATA_DIRS="$KDEDIR/share:/usr/share" export XDG_CONFIG_DIRS="$KDEDIR/etc/xdg:/etc/xdg" export KDEDIRS="$KDEDIR" exec startkde "$@" STEP 8: * Reboot the system and if you get to KDM, select "KDE Plasma (Self Compiled)" in session type and then login with user 'admin' (in this example). STEP 9: * use kdesrc-build srcipt. |
Administrator
|
Ah, the infamous oxygen.so crash caused when system wide and self compiled installs conflict.
Have you tried removing ~/.config/Trolltech.conf? Also, when do you set the QT_PLUGIN_PATH and LD_LIBRARY_PATH variables? Is it before startkde is invoked?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Have you tried removing ~/.config/Trolltech.conf?
No, i started from scratch and built a smaller subset (26 items). (no qt) I have an issue with kdeplasma-addons, but i will open a new thread and seems very specific. Also, when do you set the QT_PLUGIN_PATH and LD_LIBRARY_PATH variables? Is it before startkde is invoked? To start KDE, i first add a .desktop file /usr/share/xsessions/ I copy a normal kde-plasma and change it to start ~/kde4/bin/startkde-wrapper (modify Exec, and TryExec, and Name) I create startkde-wrapper (as kde doc says). SELinux is in permissive, of couse. KDE is launched from KDM and it resides in ~/kde4 Basically, what i need is to reproduce Bug 294795 in a self-compiled KDE. |
Administrator
|
Okay, as long as you set your environment variables up at the top of startkde-wrapper it should be fine.
Good to see you managed to get it to launch.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient