This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Cmake error : kde4_add_executable

Tags: None
(comma "," separated)
User avatar
aditya_bhatt
Registered Member
Posts
14
Karma
0
OS
Hi.
I wanted to have a look at what' happenning to kaffeine (kde4) at the moment, so I downloaded it from
Code: Select all
svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/kaffeine


Now when i do cmake src/ in the kaffeine directory, i get this error :
CMake Error at CMakeLists.txt:29 (kde4_add_executable):
Unknown CMake command "kde4_add_executable".


The full CMakeLists.txt file is this :
Code: Select all
project(kaffeine)

# search packages used by KDE
find_package(KDE4 REQUIRED)
include(KDE4Defaults)

add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})

add_subdirectory(deviceactions)
add_subdirectory(icons)
add_subdirectory(src)

macro_optional_add_subdirectory(po)

if(BUILD_TOOLS)
  add_subdirectory(tools)
endif(BUILD_TOOLS)


Please help.... what am i doing wrong? do i need to give additional options to cmake?


User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you installed the KDELibs and Qt development packages?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
You need the parent directory «multimedia» to build it. Since you only want to test kaffeine, you can use the following commands to download the least possible:

svn co -N svn://anonsvn.kde.org/home/kde/trunk/ex ... multimedia
cd multimedia
svn up kaffeine

and build from the multimedia directory


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
User avatar
aditya_bhatt
Registered Member
Posts
14
Karma
0
OS
bcooksley wrote:Have you installed the KDELibs and Qt development packages?


Yes, i have them. I followed the instructions for arch at http://techbase.kde.org/Getting_Started ... Arch_Linux
and all of my packages are also up to date.

I have all the stuff needed to build kde.


User avatar
aditya_bhatt
Registered Member
Posts
14
Karma
0
OS
dpalacio wrote:You need the parent directory «multimedia» to build it. Since you only want to test kaffeine, you can use the following commands to download the least possible:

svn co -N svn://anonsvn.kde.org/home/kde/trunk/ex ... multimedia
cd multimedia
svn up kaffeine

and build from the multimedia directory


Uh-oh. Yeah, i did what you said, and I got the multimedia dir with 3 files : cmakelists.txt, configurechecks.cmake, and INSTALL. and the kaffeine dir is also there.

But still i get the same problem.

Last edited by aditya_bhatt on Sun Jun 21, 2009 7:30 am, edited 1 time in total.


User avatar
aditya_bhatt
Registered Member
Posts
14
Karma
0
OS
Yay! thanks dpalacio, it works!!!!




Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]