0

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
  /home/me_user/.kde/share/apps;/usr/share/kde4/apps
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!

2

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

  • I begin with building such projects, please advise me with more details how to install the required KDE4 files. Thanks! – Tomáš Pečený Jun 20 '14 at 16:34
  • What do you mean ? How to install a package or How to find the required packages ? The Ubuntu has: help.ubuntu.com/community/InstallingSoftware . If you unpack the Krusader source and open the 'Install' text file you will see the list of the required packages under the 'Compilation requirements' – user26687 Jun 20 '14 at 17:42
  • I meant especially 'How to find the required packages'; but studying your references shows that they are precisely what I have meant by the 'general introduction how to make such projects'. – Tomáš Pečený Jun 22 '14 at 10:24
1

According to the 'Compilation requirements' (thanks to comment by user26687), kdelibs5-dev is required. In the Synaptic it was marked as not installed (no green mark) and supported (Red Ubuntu symbol). I have installed it by

me_user@myCPU:~$ sudo apt-get install kdelibs5-dev 
. After it the command
find_package(KDE4 REQUIRED)
is accepted by Qt.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.