%general-entities; ]> $LastChangedBy: bdubbs $ $Date: 2015-06-26 14:39:08 -0500 (Fri, 26 Jun 2015) $ Building KDE Frameworks 5 (KF5) KDE Frameworks KDE Frameworks 5 is a collection of libraries based on top of Qt5 and QML derived from the monolithic KDE 4 libraries. They can be used independent of the KDE Display Environment (Plasma 5). &lfs77_checked; &gcc5_checked; The instructions below build all of the KDE Frameworks packages in one step by using a bash script. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &kf5-md5sum; Download size: &kf5-size; Estimated disk space required: &kf5-buildsize; Estimated build time: &kf5-time; KF5 Dependencies Required , , , , , , , , , , (built with qt5), , and (required to download the packages) Recommended (DNS-SD backend for KDNSSD), (Dictionary backend for Sonnet), (built with qt5), and (Authentication backend for KAuth) Optional (needed to build Bluez-Qt), (needed to build NetworkManager-Qt), ModemManager (needed to build ModemManager-Qt) Runtime dependency for FrameworkIntegration oxygen-fonts Runtime dependencies for kapidox , Jinja2, and PyYAML Additional image formats support in KImageFormats and OpenEXR Optional dependencies for KIO Optional dependencies for ModemManager-QT ModemManager Optional dependencies for Solid , and media-player-info (runtime) Optional dictionary backends for Sonnet Hspell and Hunspell User Notes: Downloading KDE Frameworks The easiest way to get the KDE Frameworks packages is to use a single wget to fetch them all at once: url=http://download.kde.org/stable/frameworks/&kf5-short-version;/ wget -r -nH --cut-dirs=3 -A '*.xz' -np $url The options used here are: -r recurse through child directories -nH disable generation of host-prefixed directories --cut-dirs=3 remove three levels of directories when saving -A '*.xz' just get the *.xz files -np don't get parent directories Setting Package Order The order of building files is important due to internal dependencies. Create the list of files in the proper order as follows: cat > frameworks-&kf5-version;.md5 << "EOF" f12d5f866690b0954dfaa963e971eb27 attica-5.12.0.tar.xz #e4042cf258b545267d74b0cf7d756150 extra-cmake-modules-5.12.0.tar.xz 0808423b1c23ca609904b711a5daccbe kapidox-5.12.0.tar.xz 024f3f34236bd64823a5350ef8670557 karchive-5.12.0.tar.xz 7130e5d439afcfd0f558957a2ff33ee3 kcodecs-5.12.0.tar.xz 826d84426eb7cf9f2bccd49aca694f96 kconfig-5.12.0.tar.xz 65975642ab8272601df81b738da01e7d kcoreaddons-5.12.0.tar.xz d7eb58d52123a90f90533bf6691a3f40 kdbusaddons-5.12.0.tar.xz e6100dd6dfbf53264a0c233ef357d823 kdnssd-5.12.0.tar.xz 154b8c8a475a18ef1936e53f91ca5dff kguiaddons-5.12.0.tar.xz 146da9ecae1e489d462309092011edd2 ki18n-5.12.0.tar.xz f87b44e5acd0c3a0ec891450a11f6c2b kidletime-5.12.0.tar.xz 36e1a6fc39c73670b744429a1b3ef288 kimageformats-5.12.0.tar.xz ce9f3e3adefc17848c51f06e96572947 kitemmodels-5.12.0.tar.xz 172fcd531af0df4329eaf35b91c7123d kitemviews-5.12.0.tar.xz 9b2a7286c3576155037e2c1d7dc2dd0c kplotting-5.12.0.tar.xz c65b4f7bac1fcd3fc599d203ab7f15a0 kwidgetsaddons-5.12.0.tar.xz 001095e87ba8a52932f780bb043429d5 kwindowsystem-5.12.0.tar.xz #984c2ca3a17b066b6be0220db610659b networkmanager-qt-5.12.0.tar.xz 534592c079fb90cfe8734f91d90c8fbd solid-5.12.0.tar.xz 070f07fbbfc7badf061d6cd46706a39e sonnet-5.12.0.tar.xz e7bec854878b5e1a874999691ff2ed19 threadweaver-5.12.0.tar.xz 890be635d70451258fe5472812114148 kauth-5.12.0.tar.xz b778c5f541e35c076a5729a8e6765b63 kcompletion-5.12.0.tar.xz 47ae59a330ec700e0912382ddb951c25 kcrash-5.12.0.tar.xz 09617b8f4ce218626e8dc1a1bc0d43f5 kdoctools-5.12.0.tar.xz 6e36193e133d1300cd825c2eae5cbfd1 kpty-5.12.0.tar.xz 520741ddd15e3d20666fd6dfcb99e9cb kunitconversion-5.12.0.tar.xz 31bb3396c6561e4de3fa858c51a0d82f kconfigwidgets-5.12.0.tar.xz 93b2302fa2587bec638c3e619fac1bd5 kglobalaccel-5.12.0.tar.xz e88e6a41687d499a10c0e72c0f7b384d kpackage-5.12.0.tar.xz 88456f52f5511b6d26a03f747b51bd2b kservice-5.12.0.tar.xz fd182c27645b3bfbcd725bc7190d9b30 kdesu-5.12.0.tar.xz 007b1acc0aaf7bfadbcc14cec90d27eb kemoticons-5.12.0.tar.xz 2a3eb21a34091008c75e87146320a324 kiconthemes-5.12.0.tar.xz af26c7006f3e4404947314b9fdb64820 kjobwidgets-5.12.0.tar.xz f2c365142e4700caa546f61f08d0f46e knotifications-5.12.0.tar.xz 543c8c891e98c9c7c91bd16e762bc31f ktextwidgets-5.12.0.tar.xz eb3118489006cd6760740cc9f1f3be51 kwallet-5.12.0.tar.xz bce712aaeb6e369dcb950753370da5a8 kxmlgui-5.12.0.tar.xz baf1c82110ab626ef8f1cafc80571490 kbookmarks-5.12.0.tar.xz 0b0a52ff61f8354022d1aaf4514e9b70 kio-5.12.0.tar.xz 62cb010adb59c15129743ad57fdc198a kdeclarative-5.12.0.tar.xz d8b55927aa2636dbaf1b8c3dc6df03c4 kcmutils-5.12.0.tar.xz 87bdfb6972f8bd9b8b20cf1813bbb552 frameworkintegration-5.12.0.tar.xz 40d5cda2fc8f6b9bf57d86858414757b kinit-5.12.0.tar.xz 30a5daedb40a6c826572d48a564b56fe knewstuff-5.12.0.tar.xz df52e0e67c18ae35276425204db07df6 knotifyconfig-5.12.0.tar.xz ad9bd1946aaca8320f3e71f43184c699 kparts-5.12.0.tar.xz 3aa860c9df8888b13e2dc1f79ff5e704 kactivities-5.12.0.tar.xz f9d80602631659b3960358470dfad836 kded-5.12.0.tar.xz f95be7f48c904597b73cf0406712f4ab kdewebkit-5.12.0.tar.xz 7d1d89fd57da9a1ca5c331b878bac196 ktexteditor-5.12.0.tar.xz eb20c5371306630b8c480adac760ac80 kdesignerplugin-5.12.0.tar.xz 5d995245c69498886e7e2a546cc095eb plasma-framework-5.12.0.tar.xz #92a765aef34a5cb59969abcde487e5e0 modemmanager-qt-5.12.0.tar.xz e5237301931919b484784be450536fd2 kpeople-5.12.0.tar.xz 72d803ac11a7000c4db00ddd45eacfab kxmlrpcclient-5.12.0.tar.xz #6f6ecffacfa14485e7ae09796c4fd381 bluez-qt-5.12.0.tar.xz 988bff4927d2230d8a98f2b9597cfd05 portingAids/kjs-5.12.0.tar.xz bd02fae328a8e2e702933f09bfd95966 portingAids/kdelibs4support-5.12.0.tar.xz 36a415041b78ffcf2e652de43077f616 portingAids/khtml-5.12.0.tar.xz 370da9915046901f48e9e3e5cf69d202 portingAids/kjsembed-5.12.0.tar.xz dc1a78386c65c9f8a18a597a5cecda9c portingAids/kmediaplayer-5.12.0.tar.xz 400d20a5f3a0a0db7da20c406c76c06f portingAids/kross-5.12.0.tar.xz 2caee0c50290dea30bc049e67bb84a23 portingAids/krunner-5.12.0.tar.xz EOF In the above list, notice that three files have been commented out with a hash (#) character. The extra-cmake-modules entry has been commented out because it was built earlier in the . The others may be built if the optional dependencies have been installed. Installation of KDE Frameworks &as_root; If inatalling in /opt and there is an existing /opt/kf5 either as a regular directory or a symbolic link, it should be removed (as root): rm -rf /opt/kf5 First, start a subshell that will exit on error: bash -e Install all of the packages by running the following commands: while read -r line; do # Get the file name, ignoring comments and blank lines if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi file=$(echo $line | cut -d" " -f2) pkg=$(echo $file|sed 's|^.*/||') # Remove directory packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory tar -xf $file pushd $packagedir mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \ -DCMAKE_PREFIX_PATH=$QT5DIR \ -DCMAKE_BUILD_TYPE=Release \ -DLIB_INSTALL_DIR=lib \ -DBUILD_TESTING=OFF \ -Wno-dev .. make as_root make install popd rm -rf $packagedir as_root /sbin/ldconfig done < frameworks-&kf5-version;.md5 exit Any modules that have been omitted can be installed later by using the same mkdir build; cd build; cmake; make; make install procedure as above. Sometimes the installation paths are hardcoded into installed files. If the installed directory is not /usr, rename the directory and create a symlink: mv -v /opt/kf5 /opt/kf5-&kf5-version; ln -sfvn kf5-&kf5-version; /opt/kf5 Command Explanations -DCMAKE_PREFIX_PATH=$QT5_PREFIX: This switch is used to allow cmake to find the proper Qt libraries. -DCMAKE_BUILD_TYPE=Release: This switch is used to apply higher level of the compiler optimizations. -DLIB_INSTALL_DIR=lib: This switch is used to get libraries to install to $KF5_PREFIX/lib instead of $KF5_PREFIX/lib64 on a 64 bit system. -DBUILD_TESTING=OFF: This switch is used to prevent building test programs and libraries that are of no use to an end user. Contents Installed Programs Installed Libraries Installed Directories checkXML5, depdiagram-generate, depdiagram-generate-all, depdiagram-prepare, desktoptojson, kactivitymanagerd, kbuildsycoca5, kconfig_compiler_kf5, kcookiejar5, kdebugdialog5, kded5, kdeinit5, kdeinit5_shutdown, kdeinit5_wrapper, kf5-config, kf5kross, kgenapidox, kgendesignerplugin, genframeworksapidox, kglobalaccel5, kiconfinder5, kjs5, kjscmd5, kjsconsole, kmailservice5, kpackagelauncherqml, kpackagetool5, kquitapp5, kreadconfig5, kshell5, ktelnetservice5, ktrash5, kwalletd5, kwrapper5, kwriteconfig5, meinproc5, plasmapkg2, preparetips5, and solid-hardware5 libkdeinit5_kded5.so, libkdeinit5_klauncher.so, libKF5Activities.so, libKF5Archive.so, libKF5Attica.so, libKF5Auth.so, libKF5BluezQt.so, libKF5Bookmarks.so, libKF5Codecs.so, libKF5Completion.so, libKF5ConfigCore.so, libKF5ConfigGui.so, libKF5ConfigWidgets.so, libKF5CoreAddons.so, libKF5Crash.so, libKF5DBusAddons.so, libKF5Declarative.so, libKF5DNSSD.so, libKF5Emoticons.so, libKF5GlobalAccelPrivate.so, libKF5GlobalAccel.so, libKF5GuiAddons.so, libKF5I18n.so, libKF5IconThemes.so, libKF5IdleTime.so, libKF5ItemModels.so, libKF5ItemViews.so, libKF5JobWidgets.so, libKF5JSApi.so, libKF5JsEmbed.so, libKF5JS.so, libKF5KCMUtils.so, libKF5KDELibs4Support.so, libKF5KHtml.so, libKF5KIOCore.so, libKF5KIOFileWidgets.so, libKF5KIONTLM.so, libKF5KIOWidgets.so, libKF5KrossCore.so, libKF5KrossUi.so, libKF5MediaPlayer.so, libKF5ModemManagerQt.so, libKF5NetworkManagerQt.so, libKF5NewStuff.so, libKF5Notifications.so, libKF5NotifyConfig.so, libKF5Package.so, libKF5Parts.so, libKF5PeopleBackend.so, libKF5People.so, libKF5PeopleWidgets.so, libKF5PlasmaQuick.so, libKF5Plasma.so, libKF5Plotting.so, libKF5Pty.so, libKF5QuickAddons.so, libKF5Runner.so, libKF5Service.so, libKF5Solid.so, libKF5SonnetCore.so, libKF5SonnetUi.so, libKF5Style.so, libKF5Su.so, libKF5TextEditor.so, libKF5TextWidgets.so, libKF5ThreadWeaver.so, libKF5UnitConversion.so, libKF5Wallet.so, libKF5WebKit.so, libKF5WidgetsAddons.so, libKF5WindowSystem.so, libKF5XmlGui.so, libKF5XmlRpcClient.so, libKF5XsltKde.a, and libkwalletbackend5.so $KF5_PREFIX/include/KF5/{Attica,BluezQt,KActivities,KArchive,KAuth}, $KF5_PREFIX/include/KF5/{KBookmarks,KCMUtils,KCodecs,KCompletion}, $KF5_PREFIX/include/KF5/{KConfigCore,KConfigGui,KConfigWidgets,KCoreAddons}, $KF5_PREFIX/include/KF5/{KCrash,KDBusAddons,KDeclarative,KDELibs4Support}, $KF5_PREFIX/include/KF5/{KDESu,KDEWebKit,KDNSSD,KEmoticons,KGlobalAccel}, $KF5_PREFIX/include/KF5/{KGuiAddons,KHtml,KI18n,KIconThemes,KIdleTime}, $KF5_PREFIX/include/KF5/{kio,KIOCore,KIOFileWidgets,KIOWidgets}, $KF5_PREFIX/include/KF5/{KItemModels,KItemViews,KJobWidgets,kjs,KJsEmbed}, $KF5_PREFIX/include/KF5/{KMediaPlayer,KNewStuff3,KNotifications}, $KF5_PREFIX/include/KF5/{KNotifyConfig,KPackage,KParts,KPeople,KPlotting}, $KF5_PREFIX/include/KF5/{KPty,KrossCore,KrossUi,KRunner,KService,KStyle}, $KF5_PREFIX/include/KF5/{KTextEditor,KTextWidgets,KUnitConversion,KWallet}, $KF5_PREFIX/include/KF5/{KWidgetsAddons,KWindowSystem,KXmlGui}, $KF5_PREFIX/include/KF5/{KXmlRpcClient,ModemManagerQt,NetworkManagerQt}, $KF5_PREFIX/include/KF5/{plasma,Plasma,Solid,SonnetCore}, $KF5_PREFIX/include/KF5/{SonnetUi,ThreadWeaver,wtf,XsltKde}, $KF5_PREFIX/lib/cmake/{KDED,KDELibs4,KF5Activities,KF5Archive,KF5Attica}, $KF5_PREFIX/lib/cmake/{KF5Auth,KF5BluezQt,KF5Bookmarks,KF5Codec}, $KF5_PREFIX/lib/cmake/{KF5Completion,KF5Config,KF5ConfigWidgets}, $KF5_PREFIX/lib/cmake/{KF5CoreAddons,KF5Crash,KF5DBusAddons}, $KF5_PREFIX/lib/cmake/{KF5Declarative,KF5DesignerPlugin,KF5DNSSD}, $KF5_PREFIX/lib/cmake/{KF5DocTools,KF5Emoticons,F5FrameworkIntegration}, $KF5_PREFIX/lib/cmake/{KF5GlobalAccel,KF5GuiAddons,KF5I18n}, $KF5_PREFIX/lib/cmake/{KF5IconThemes,KF5IdleTime,KF5Init}, $KF5_PREFIX/lib/cmake/{KF5ItemModels,KF5ItemViews,KF5JobWidgets}, $KF5_PREFIX/lib/cmake/{KF5JS,KF5JsEmbed,KF5KCMUtils}, $KF5_PREFIX/lib/cmake/{KF5KDE4Support,KF5KDELibs4Support}, $KF5_PREFIX/lib/cmake/{KF5KHtml,KF5KIO,KF5Kross,KF5MediaPlayer}, $KF5_PREFIX/lib/cmake/{KF5ModemManagerQt,KF5NetworkManagerQt,KF5NewStuff}, $KF5_PREFIX/lib/cmake/{KF5Notifications,KF5NotifyConfig,KF5Package}, $KF5_PREFIX/lib/cmake/{KF5Parts,KF5People,KF5Plasma,KF5PlasmaQuick}, $KF5_PREFIX/lib/cmake/{KF5Plotting,KF5Pty,KF5Runner,KF5Service}, $KF5_PREFIX/lib/cmake/{KF5Solid,KF5Sonnet,KF5Su,KF5TextEditor}, $KF5_PREFIX/lib/cmake/{KF5TextWidgets,KF5ThreadWeaver}, $KF5_PREFIX/lib/cmake/{KF5UnitConversion,KF5Wallet,KF5WebKit}, $KF5_PREFIX/lib/cmake/{KF5WidgetsAddons,KF5WindowSystem,KF5XmlGui}, $KF5_PREFIX/lib/cmake/KF5XmlRpcClient, $KF5_PREFIX/lib/libexec/{kauth,kf5}, $KF5_PREFIX/lib/python&python2-majorver;/site-packages/kapidox, $KF5_PREFIX/lib/qt5/{designer,imageformats,kactivitymanagerd}, $KF5_PREFIX/lib/qt5/{kauth,kf5,org.kde.kglobalaccel5.platforms}, $KF5_PREFIX/lib/qt5/{plasma,platformthemes,script}, $KF5_PREFIX/lib/qml/org/kde/{activities,bluezqt,draganddrop}, $KF5_PREFIX/lib/qml/org/kde/{kcoreaddons,kio,kquickcontrols}, $KF5_PREFIX/lib/qml/org/kde/{kquickcontrolsaddons,kwindowsystem}, $KF5_PREFIX/lib/qml/org/kde/{people,plasma,private,runnermodel}, $KF5_PREFIX/lib/qml/org/kde/solid, $KF5_PREFIX/lib/qml/QtQuick/Controls/Styles/Plasma, $KF5_PREFIX/share/doc/HTML/*/{kdebugdialog5,kdoctools5-common,kioslave5}, $KF5_PREFIX/share/emoticons/Glass, $KF5_PREFIX/share/{katepart5,knotifications5,kservices5,kservicetypes5}, $KF5_PREFIX/share/kf5/{infopage,kactivitymanagerd,kauth,kcharselect}, $KF5_PREFIX/share/kf5/{kconfigwidgets,kcookiejar,kdoctools,khtml,kjava}, $KF5_PREFIX/share/kf5/{kjs,kmoretools,knewstuff,kpeople,kssl,kxmlgui}, $KF5_PREFIX/share/kf5/{locale,sonnet,widgets}, $KF5_PREFIX/share/kxmlgui5/{katepart,khtml}i, and $KF5_PREFIX/share/plasma/{desktoptheme,services}