Talk:Projects/Plasma/Plasmoids

From KDE TechBase

Error compiling system-monitor

$ svn co svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/system-monitor
   ...
   ...
   ...                                                                    
Checked out revision 810383.                                                                               
$ cd system-monitor
$ mkdir build
$ cd build   
$ cmake ../
-- The C compiler identification is GNU         
-- The CXX compiler identification is GNU       
-- Check for working C compiler: /usr/bin/gcc   
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info                      
-- Detecting C compiler ABI info - done               
-- Check for working CXX compiler: /usr/bin/c++       
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:12 (kde4_add_ui_files):
  Unknown CMake command "kde4_add_ui_files".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done

How can I fix this. --89.142.182.236 18:37, 20 May 2008 (CEST)

This usually means that find_package(KDE4 REQUIRED) is missing in the CMakeLists.txt.

Add it somewhere before the first use of the kde4_add_ui_files macro: http://linux-tipps.blogspot.com/2008/08/unknown-cmake-command-kde4adduifiles.html