You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, September 19th 2007, 4:27pm

cmake error while building kde 4

ive followed the guide step by step at http://techbase.kde.org/Getting_Started/Build/KDE4#Qt and have gotten to building kdelibs. when i do cmakekde in the kdelibs dir, i get the following output:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
The end of a CMakeLists file was reached with an IF statement that was not closed properly.
Within the directory: /home/kde-devel/kde/src/KDE/kdelibs
The arguments are: QT4_QMAKE_FOUND
CMake Error: The end of a CMakeLists file was reached with a MACRO statement that was not closed properly. Within the directory: /home/kde-devel/kde/src/KDE/kdelibs with macro QT4_ADD_DBUS_INTERFACES
The end of a CMakeLists file was reached with an IF statement that was not closed properly.
Within the directory: /home/kde-devel/kde/src/KDE/kdelibs
The arguments are: QT4_QMAKE_FOUND
CMake Error: The end of a CMakeLists file was reached with a MACRO statement that was not closed properly. Within the directory: /home/kde-devel/kde/src/KDE/kdelibs with macro QT4_ADD_DBUS_INTERFACES
The end of a CMakeLists file was reached with an IF statement that was not closed properly.
Within the directory: /home/kde-devel/kde/src/KDE/kdelibs
The arguments are: QT4_QMAKE_FOUND
CMake Error: The end of a CMakeLists file was reached with a MACRO statement that was not closed properly. Within the directory: /home/kde-devel/kde/src/KDE/kdelibs with macro QT4_ADD_DBUS_INTERFACES
-- Configuring done


im really not sure how to fix this, anyone have any ideas?

2

Wednesday, September 19th 2007, 5:56pm

RE: cmake error while building kde 4

figured out the issue, the error messages were pretty clear. there is a macro in the cmakefile FindQt4.cmake:

Source code

1
2
3
4
5
6
7
8
9
  MACRO(QT4_ADD_DBUS_INTERFACES _sources)
     FOREACH (_current_FILE ${ARGN})
        GET_FILENAME_COMPONENT(_infile ${_current_FILE} ABSOLUTE)
        # get the part before the ".xml" suffix
        STRING(REGEX REPLACE "(.*[/\\.])?([^\\.]+)\\.xml" "\\2" _basename ${_current_FILE})
        STRING(TOLOWER ${_basename} _basename)
        QT4_ADD_DBUS_INTERFACE(${_sources} ${_infile} ${_basename}interface)
     ENDFOREACH (_current_FILE)
  ENDMACRO(_QT4_ADD_DBUS_INTERFACES)


if you look at the ENDMACRO statement the argument does not match the one in the IF (it has a leading underscore). removing the underscore is all i needed to do.

This post has been edited 1 times, last edit by "vimninja" (Sep 19th 2007, 5:57pm)