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

Cmake error in kde hello world program (in ubuntu 13.10)

Tags: None
(comma "," separated)
aprekates
Registered Member
Posts
2
Karma
0
I follow http://techbase.kde.org/Development/Tut ... st_program

Trying to execute:
$ cmake .
-- Found Qt-Version 5.0.2 (using /usr/bin/qmake)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /home/alex/Programming Projects/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed

CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message):
Unable to compile a basic Qt application. Qt has not been found correctly.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
CMakeLists.txt:2 (find_package)


-- Configuring incomplete, errors occurred!



User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Those tutorials are intended for use with Qt 4 rather than Qt 5 - which is probably why it is failing to configure.
You need to install Qt 4 development headers, and make the appropriate changes to ensure it is found instead (this tends to be distribution specific unfortunately).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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