%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" cf34c6fa2dcad71300592dd393920ff4 attica-5.11.0.tar.xz #0e1298c6fce735f06c789a173c0093ff extra-cmake-modules-5.11.0.tar.xz 1ebfcf3d9ae51024ea619a31de30adbd kapidox-5.11.0.tar.xz a9044a93fc88324d97108d69b07f7851 karchive-5.11.0.tar.xz 5cfbb6836dbbdeddef9d889cf824f1bd kcodecs-5.11.0.tar.xz ecd6f03aa5e0bdcfa1a9b17ce1654afe kconfig-5.11.0.tar.xz 1d17806d243683ac89c95352f82b0da3 kcoreaddons-5.11.0.tar.xz 4c40d991d4c96bc128dd7b31449951ea kdbusaddons-5.11.0.tar.xz 765ee80403c552e07cb96aa033c9377d kdnssd-5.11.0.tar.xz 9829e1689fa1ee9e64679e68c5f096d1 kguiaddons-5.11.0.tar.xz a6bd7a449ccfbbab1a3e400d984ceabe ki18n-5.11.0.tar.xz d3d51e235dc56f164c79dc4ebc9feb3e kidletime-5.11.0.tar.xz ebae895f7e81640d183407810c9f04a4 kimageformats-5.11.0.tar.xz 2021d6412691454b794c7929e1f80c17 kitemmodels-5.11.0.tar.xz 4087b80ec96386348da894e1dbd5839b kitemviews-5.11.0.tar.xz 9c1ba124260ae24f8de606440eefd623 kplotting-5.11.0.tar.xz 6e5d05a5cd7f735ad9832e93c2693ea2 kwidgetsaddons-5.11.0.tar.xz aa8a829b16e4821c12f742aea0476eff kwindowsystem-5.11.0.tar.xz #ccfb2950c7ae9a1022aba4fa4eb5d5a2 networkmanager-qt-5.11.0.tar.xz 3be0e15864f99da1419d957c2933a8c7 solid-5.11.0.tar.xz 6359c0e401d2c08cdb763bb35f14af75 sonnet-5.11.0.tar.xz 5ffac7ee80aa144de5719cae044878b0 threadweaver-5.11.0.tar.xz 44f96e75953fb3e66ecefc21ffc3b3ff kauth-5.11.0.tar.xz b09b9d9e5856f21fb6fedcbcd9719c4f kcompletion-5.11.0.tar.xz 405d9660150c84695373c1c323326a98 kcrash-5.11.0.tar.xz 78e56f2cc33d4e8443339e87fec3571b kdoctools-5.11.0.tar.xz 5cce7e6e758e6456455ea57cbb016b33 kpty-5.11.0.tar.xz 80bbcfc184a8fa6a1664be4719966974 kunitconversion-5.11.0.tar.xz 91e25767cadb56b3894ebfff045f7a21 kconfigwidgets-5.11.0.tar.xz bbdc7503aa7bb3d7be82a5a206520c97 kglobalaccel-5.11.0.tar.xz f8b4e91bee1edc6abfa1407b160d29d5 kpackage-5.11.0.tar.xz fe3138bc70494f0da6e6ea6317141860 kservice-5.11.0.tar.xz 00fb63ff7de44bcec9a408b8a1d0f2d5 kdesu-5.11.0.tar.xz 233e21ccdb6c144c68365aac0c36569f kemoticons-5.11.0.tar.xz de00d3065870c1b2c6d42dff806d44d7 kiconthemes-5.11.0.tar.xz 5dad6d5e6d3d1740d9f10ca05e58c721 kjobwidgets-5.11.0.tar.xz 40435109ce5d9384aaf87d09396cdb4c knotifications-5.11.0.tar.xz 8bf33798f1a0c2099d32ff62adb20ed4 ktextwidgets-5.11.0.tar.xz 15bd67e33adc2fce5fdabb580b4a408a kwallet-5.11.0.tar.xz 057915802467acb7c6b5cb71a38a021a kxmlgui-5.11.0.tar.xz 65100bbdf0f80c21e3f7c25e781fa483 kbookmarks-5.11.0.tar.xz 317bfc7cb41abbaa24f257beceb76501 kio-5.11.0.tar.xz ac8cc22f3e7f210e510ce75e1e606412 kdeclarative-5.11.0.tar.xz 9867fe7fb968cec64265ce59067a8d7e kcmutils-5.11.0.tar.xz 81cb1261454ed337366661d18841b205 frameworkintegration-5.11.0.tar.xz 9cfef5918e21d8c539464f9e67bd7055 kinit-5.11.0.tar.xz bcdb6bee371fe46abaff58993f39544d knewstuff-5.11.0.tar.xz 9c57e87d0f13e8bd0e49782b58716b12 knotifyconfig-5.11.0.tar.xz 497e746e8c9c05b50d21e6a6e3541470 kparts-5.11.0.tar.xz 76be53547d8ffc7b0ab34547c3ef3d15 kactivities-5.11.0.tar.xz 193f5cfaded513da333a83b5acca3b35 kded-5.11.0.tar.xz e5186e68ec0afca81ef8248b5a15b8cc kdewebkit-5.11.0.tar.xz 002fa8c6862fc2e59d14fad1a2feb6cb ktexteditor-5.11.0.tar.xz 5267dd2cd57ca07d319238a1946e32f2 kdesignerplugin-5.11.0.tar.xz de179500e7536dadd33a4b4b3a5f9ed1 plasma-framework-5.11.0.tar.xz #7527cfdc8aa93e1ada1ebb765d90ab22 modemmanager-qt-5.11.0.tar.xz 2f67512dc135ee4f9c87ddb2b02a6e9e kpeople-5.11.0.tar.xz a0fcb3c4d99209a46076ecf084b44fd9 kxmlrpcclient-5.11.0.tar.xz #909827fc26098c7b4ab48c7228801e16 bluez-qt-5.11.0.tar.xz 51ae529769e7e8566de5c542f264bde2 portingAids/kjs-5.11.0.tar.xz 9a9dbbd563af37470665bef96813b495 portingAids/kdelibs4support-5.11.0.tar.xz 2f41b63b227759650cd1fca3f8bbfc73 portingAids/khtml-5.11.0.tar.xz dee5aff4f8b0eaf30a0fc5f572086fe7 portingAids/kjsembed-5.11.0.tar.xz cd11941765848e298327a1d91dc0377b portingAids/kmediaplayer-5.11.0.tar.xz 8bbc29287684b127280a54e620800a96 portingAids/kross-5.11.0.tar.xz a59141c3aaa3e9f8f846082a9c1c78b9 portingAids/krunner-5.11.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=$QT5_PREFIX \ -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 /opt/kf5 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}