Bonjour, j'ai téléchargé le code de ksysguard : svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase/workspace/ksysguard ; mais lorsque je lance cmake, il me sort cette erreur (j'ai CMake version 2.6-patch 2) :
J'ai le même problème avec kfind.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 CMake Error at gui/ksgrd/CMakeLists.txt:14 (kde4_add_library): Unknown CMake command "kde4_add_library". 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 incomplete, errors occurred!
Edité : finalement c'est bon... J'ai pu l'ouvrir en ajoutant
dans le CMakeLists.txt.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 find_package(KDE4 REQUIRED) include (KDE4Defaults) include(MacroOptionalAddSubdirectory) add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})![]()
Partager