I've now got plasma apps working on my first machine, both from within other desktop sessions (icewm, from sddm) AND using Plasma from sddm.
This is with qt-5.5.0 in /opt/qt5 (if I said I was using 5.4.2, I
was mistaken), and with kf-5.11.0 in /opt/kf5.
I have NOT yet managed to get plasma working on the new build (qt5
in /opt/qt5 after initially putting it in /usr, kf-5.12.0 in /usr) -
the apps now work if I use the icewm.desktop session, but starting
Plasma.desktop from sddm now gets as far as producing the splash
screen, followed by a black screen. To get even that far I had to
severely hack 'startkde', I think that the initial install of qt5
in /usr has borked the later attempts.
Anyway, before I list what I had to do, a few comments on some kf5
apps:
kcharselect and konsole worked without my latest changes.
dragon (from git) worked, but whereas with kf-5.11.0 it is fairly
usable (opening a file does not default to a file type, all files
are listed, I can open .wmv files), with whichever part of 5.12.0 is
responsible *every* attempt to open a file defaults to .mxf, and I
have to scroll almost all the way down through many file types to
select .mkv for my file I was using to test it. And the same again
to open the next file. What is worse, there is no option for "all
files" (or, perhaps more sanely, "all media files") and as far as I
can see there is no way to select .wmv files. I used the same git
version on both the original 5.11.0 and the new 5.12.0 builds.
With konqueror (from kde-baseapps) and okular (both from git) the
apps only work once QT_PLUGIN_PATH is set up (possibly also the
QML{,2}_IMPORT_PATH - I set both at the same time). Yes, the book
has that when setting PATH, but I had not set them in my normal
profile. Adding them to .xinitrc allowed me to run the apps from
'startx', but made no difference to using sddm. And this, I think,
is important: for (at least) icewm and lxqt with openbox, I need to
export those variables in .xprofile if I am using sddm. As Bruce
pointed out to me, the PATH (actually 'DefaultPath') in
/etc/sddm.conf can be edited - that makes the apps addressable, and
is sufficient for dragon, kcharselect, konsole.
Also for konqueror - it crashes on many sites, but that is nothing
different from the kde4 version. It does render the book from
linuxfromscratch.org, and my local copies of the various books.
The worst part is getting Plasma to start. Eventually, I found
https://community.kde.org/Plasma/Building which talks of using
runPlasma5.sh and modifying 'startkde'. There is an example
runPlasma5.sh attached, at the moment I do not think that qt5 in
/usr is usable (link failure in qupzilla, compile failures in
various kf5 packages). I'm sure that this can be simplified, and
that something like this needs to get into the book when plasma is
added. In particular, $kdehome is referenced in 'startkde' but
apparently never set. The PATH part is better set in
/etc/sddm.conf. This file needs to be executable.
In /usr/share/xsessions/plasma.desktop, change the Exec and TryExec
lines to use that script instead of startkde :
Exec=/usr/share/xsessions/runPlasma5.sh
TryExec=/usr/share/xsessions/runPlasma5.sh
I'm using that at the moment.
I had assumed that the reason I could not run plasma from sddm was
because kf5 was all in /opt. That, it turns out, was not the
problem. So, I've spent a few days on the wrong approach. But
those days were not wholly wasted - with kf5 in /usr, my normal
buildscripts take care of renaming static libs to .a.hidden so that
they will not get linked in without me becoming aware of the fact.
In kde4, kdelibs uses the static libQtUiTools.a. In kf5, there is
one static lib - /usr/lib/libKF5Xsltkde.a from kdoctools - that is
required by 34 of the packages which I built. Having encountered
that, I now strongly suspect that some of the qt5 static libs may
also be required by qt5 programs. We will see,
I'll also attach my list of what I built, and which (few) packages
I managed to get away with not building.
ĸen
--
This one goes up to eleven: but only on a clear day, with the wind in
the right direction.
runPlasma5.sh
Description: Bourne shell script
In general, for what the packages do, see the systemd book.
Wayland is needed, and that means rebuilding mesa
using --with-egl-platforms="drm,x11,wayland"
I normally omit xmessage and xprop, except when I am build-testing
all of the Xorg packages in the book. I suspect that my kde4 builds
have probably coincided with that.
NetworkManager is non-optional for plasma-workspace
The kf5 packages start with extra-cmake-modules. That installs a
versioned file, and all the kf5 packages will look for that and check
the version. It looks as if trying to mix versions would be a really
bad idea.
NB - for naming, I use the name from the tarball, at least for those
packages I have built. So, a lack of StudlyCapitals here.
kf5 -
attic
(I omitted bluez-qt - no bluetooth on my desktop machines)
(I omitted kapidox, it does not seem to be used by anything in the books)
karchive
kcodecs
kconfig
kcoreaddons
kdbusaddons
kdnssd
kguiaddons
ki18n
kidletime
kimageformats
kitemmodels
kitemviews
kplotting
kwidgetsaddons
kwindowsystem
(I omitted ModemManager-Qt)
networkmanager-qt - regrettably, this is not optional
solid
sonnet
threadweaver
kauth
kcompletion
kcrash
kdoctools
kpty
kunitconversion
kconfigwidgets
kglobalaccel
kpackage
kservice
kdesu
kemoticons
kiconthemes
kjobwidgets
kpeople
knotifications
ktextwidgets
kwallet
kxmlgui
kbookmarks
kio
frameworkintegration
kdeclarative
kinit
knewstuff
knotifyconfig
kparts
kxmlrpcclient
kcmutils
# kded is listed as a dep for bluedevil, but it is a runtime dep for
# startkde
kded
kdewebkit
ktexteditor
kactivities
kdesignerplugin
plasma-framework
porting aids-
kjs
kdelibs4support
khtml
kjsembed
kmediaplayer
kross
krunner
plasma -
kde-cli-tools
kdecoration
kfilemetadata
kio-extras
kwayland
libkscreen
libksysguard
baloo
breeze
kwin
oxygen
oxygen-fonts
oxygen-icons
khelpcenter
kinfocenter
ksysguard
systemsettings
plasma-workspace
khotkeys
kmenuedit
kscreen
kwrited
milou
(I omitted plasma-nm)
plasma-workspace-wallpapers ${KM_SCRIPTS}/kde5.d/plasma-workspace-wallpapers
polkit-kde-agent ${KM_SCRIPTS}/kde5.d/polkit-kde-agent
powerdevil ${KM_SCRIPTS}/kde5.d/powerdevil
plasma-desktop ${KM_SCRIPTS}/kde5.d/plasma-desktop
kdeplasma-addons ${KM_SCRIPTS}/kde5.d/kdeplasma-addons
In the systemd book, sddm comes here. I build it later, after the
applications.
kf5 applications -
I omit kate, which is of no interest to me, and also kdenlive for
which I do not have a use - for stitching my own clips together,
ffmpeg and bash do an adequate job : the last time I tried video
editors, they were mostly far too complicated for me).
kmix-15.04.3
konsole-15.04.3
But to actually find things which might be *useful* -
okular (git clone from the frameworks branch)
kcalc-15.04.2 (old - I forgot this was released but not directly in
the book).
dragon (git clone from master)
kcharselect - again, 15.04.2
kde-baseapps [ konqueror ] (git clone from the frameworks branch)
-- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
