Build KDE/Kwin on ARM

The notes here have been verified with Linaro headless image on Freescale i.MX51 platform.

KDE Basic Components

  • KDE LIBS
  • KDE Runtime
  • KDE Workspace
  • KDE Baseapps

Code Preparation

  • KDE projects: https://projects.kde.org/projects

  • Create $HOME/kde directory for holding source files and building
  • Using git to download upstream code, and put them in $HOME/kde/src directory
    • attica: git clone git://anongit.kde.org/attica
    • soprano: git clone git://anongit.kde.org/soprano
    • phonon: git clone git://anongit.kde.org/phonon
    • kdelibs: git clone git://anongit.kde.org/kdelibs
    • kde-runtime: git clone git://anongit.kde.org/kde-runtime
    • kde-workspace: git clone git://anongit.kde.org/kde-workspace
    • kde-baseapps (optional): git clone git://anongit.kde.org/kde-baseapps

Build Prerequisites

Build Steps

  • Adding cmakekde support to the system: http://techbase.kde.org/Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc

    • A new account is not necessary, just add the environment variables to .bashrc of your account
    • To use Qt installed in the system, please uncomment QT related lines
    • Before going forward, please make sure the environment variables already take effect
  • Build some required libraries first (attica, soprano and phonon), take attica for example here
    • cd ~/kde/src/attica
    • run cmakekde, the build will begin in $HOME/kde/build/attica directory
    • after the build finished, files will be installed to subdirectories under $HOME/kde ('bin' for binary execution, 'etc' for configuration files, 'include' for header files ...)
  • Build kdelibs
    • cd ~/kde/src/kdelibs
    • run cmakekde
  • Build kde-runtime
    • cd ~/kde/src/kde-runtime
    • run cmakekde
  • Build kde-workspace
    • To enable the OpenGL ES code path in kwin, please make sure that following packages are installed in your build machine to support compositing
      • XComposite
      • XDamage
      • OpenGL ES
    • Set the KWIN_BUILD_WITH_OPENGLES build option to ON (in kde-workspace/CMakeLists.txt). Beside change it manually, "-DKWIN_BUILD_WITH_OPENGLES=ON" can be added to cmake command to turn it on
    • cd ~/kde/src/kde-workspace
    • run cmakekde
  • Build kde-baseapps (optional for kwin)
    • cd ~/kde/src/kde-baseapps
    • run cmakekde

Basic Testing

  • start X server: X &

  • export DISPLAY=:0
  • ~/kde/bin/kwin &

  • ~/kde/bin/plasma-desktop

Known Issues

  • TBA

Reference

WorkingGroups/Middleware/Graphics/KDE/Building (last modified 2011-02-22 06:11:41)