Cmake is screwed building KDE Application

Bug #375012 reported by kovariadam
22
This bug affects 5 people
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/projects/db2client/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1059 (message):

  Could not compile simple test program:
   #include <QtCore/QtGlobal>
   int main()
   {
   #ifdef QT_VISIBILITY_AVAILABLE
   return 0;
   #else
   return 1;
   #endif
   }

Call Stack (most recent call first):
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:7 (find_package)

After adding
set(QT_QT_INCLUDE_DIR /usr/include/qt4/)

into my CMakeLists.txt, the following happens:

CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake "cmTryCompileExec/fast"
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1059 (message):
  Could not compile simple test program:

   #include <QtCore/QtGlobal>
   int main()
   {
   #ifdef QT_VISIBILITY_AVAILABLE
   return 0;
   #else
   return 1;
   #endif
   }

  Change Dir: /home/adam/projects/db2client/build/CMakeFiles/CMakeTmp

  Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"

  No such file or directory

  Generator: execution of make failed. Make command was: /usr/bin/gmake
  "cmTryCompileExec/fast"

Call Stack (most recent call first):
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  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

Revision history for this message
kovariadam (kovariadam) wrote :

Symlink made cmake work, but:

adam@adam-ubuntu:~/projects/db2client/build$ cmake ..
-- 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/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/adam/projects/db2client/build
adam@adam-ubuntu:~/projects/db2client/build$ make -j3
Generating moc_querytab.cpp
automoc4: process for /home/adam/projects/db2client/build/moc_querytab.cppfailed to start: Unknown error
Generating moc_mainform.cpp
automoc4: process for /home/adam/projects/db2client/build/moc_mainform.cppfailed to start: Unknown error
Generating moc_highlighter.cpp
automoc4: process for /home/adam/projects/db2client/build/moc_highlighter.cppfailed to start: Unknown error
returning failed..
make[2]: *** [CMakeFiles/db2client_automoc] Error 1
make[1]: *** [CMakeFiles/db2client_automoc.dir/all] Error 2
make: *** [all] Error 2

Now automoc doesn't work for unknown reason.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cmake (Ubuntu):
status: New → Confirmed
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

can you please try again with xenial and cmake 3.5.1?

Changed in cmake (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cmake (Ubuntu) because there has been no activity for 60 days.]

Changed in cmake (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.