Cmake is screwed building KDE Application
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cmake
Hello,
i'm developing Kde app, but cmake in Kubuntu 9.04 x86_64 is all screwed. First error:
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/adam/
CMake Error: Internal CMake error, TryCompile configure of cmake failed
CMake Error at /usr/share/
Could not compile simple test program:
#include <QtCore/QtGlobal>
int main()
{
#ifdef QT_VISIBILITY_
return 0;
#else
return 1;
#endif
}
Call Stack (most recent call first):
/usr/
CMakeLists.txt:7 (find_package)
After adding
set(QT_
into my CMakeLists.txt, the following happens:
CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake "cmTryCompileEx
CMake Error at /usr/share/
Could not compile simple test program:
#include <QtCore/QtGlobal>
int main()
{
#ifdef QT_VISIBILITY_
return 0;
#else
return 1;
#endif
}
Change Dir: /home/adam/
Run Build Command:
No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake
"cmTryCompile
Call Stack (most recent call first):
/usr/
CMakeLists.txt:7 (find_package)
Now what? Make symlink to make?
There seems to be something very wrong in ubuntu Cmake, in Fedora it builds fine.
Thanks
Symlink made cmake work, but:
adam@adam- ubuntu: ~/projects/ db2client/ build$ cmake .. kconfig_ compiler projects/ db2client/ build ubuntu: ~/projects/ db2client/ build$ make -j3 projects/ db2client/ build/moc_ querytab. cppfailed to start: Unknown error projects/ db2client/ build/moc_ mainform. cppfailed to start: Unknown error projects/ db2client/ build/moc_ highlighter. cppfailed to start: Unknown error db2client_ automoc] Error 1 db2client_ automoc. dir/all] Error 2
-- Phonon Version: 4.3.0
-- Found KDE 4.2 include dir: /usr/include
-- Found KDE 4.2 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/adam/
adam@adam-
Generating moc_querytab.cpp
automoc4: process for /home/adam/
Generating moc_mainform.cpp
automoc4: process for /home/adam/
Generating moc_highlighter.cpp
automoc4: process for /home/adam/
returning failed..
make[2]: *** [CMakeFiles/
make[1]: *** [CMakeFiles/
make: *** [all] Error 2
Now automoc doesn't work for unknown reason.