Ubuntu – How to get KDE4 for building a project in Ubuntu 12.04


There is a command

find_package(KDE4 REQUIRED)

in the CMakeLists.txt file from the question How to make a project of Krusader. My attempts to build the project in the Qt Creator result in a message

CMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
Call Stack (most recent call first):
  CMakeLists.txt:8 (find_package)

What particular should I install into the Ubuntu 12.04 to satisfy the line 'find_package(KDE4 REQUIRED)'? (I asked about the same problem in Qt build in Ubuntu 12.04; I gave it up at that time, but it appears to be a basic matter.) Thanks!

Best Answer

Build depends

The Krusader 'Build-Depends': http://archive.ubuntu.com/ubuntu/pool/universe/k/krusader/krusader_2.4.0~beta3-2.dsc

=> cmake, debhelper (>= 9), kdelibs5-dev (>= 4:4.4.4), libkonq5-dev, pkg-kde-tools (>= 0.9.0), zlib1g-dev

The KDE development packages are: kdelibs5-dev and libkonq5-dev

Related Question