[cmake-developers] CMake master, Qt dialog and Qt4/5 installed has problems

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Apr 3 21:19:08 EDT 2013


Hi,

I was updating my machine earlier today, and wanted to build the
latest CMake master (00ef90). I am using Arch Linux with Qt 4 and Qt 5
installed. If I compile with qmake-qt4 then I see the following
compile failure,

[ 88%] Generating qrc_CMakeSetup.cpp
/bin/sh: //bin/rcc: No such file or directory
make[2]: *** [Source/QtDialog/qrc_CMakeSetup.cpp] Error 127
make[1]: *** [Source/QtDialog/CMakeFiles/cmake-gui.dir/all] Error 2
make: *** [all] Error 2

Making the following changed allowed me to compile the Qt dialog with Qt 4,

diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
index 1684fb2..2966082 100644
--- a/Source/QtDialog/CMakeLists.txt
+++ b/Source/QtDialog/CMakeLists.txt
@@ -12,7 +12,7 @@

 project(QtDialog)
 find_package(Qt5Widgets QUIET)
-if (Qt5Widgets_FOUND)
+if (Qt5Widgets_FOUND AND FALSE)
   include_directories(${Qt5Widgets_INCLUDE_DIRS})
   add_definitions(${Qt5Widgets_DEFINITONS})
   macro(qt4_wrap_ui)

It seems like even when not using Qt 5 it is attempting to use it, but
failing here at least. I didn't look into it too deeply - is the new
behavior to force Qt 5 if available? I haven't been following master
in the last couple of weeks, but it would be nice to resolve the issue
before the next release.

Marcus



More information about the cmake-developers mailing list