On Wednesday 08 November 2006 21:47, Philipp Kolmann wrote: > just tried this out, but it seems not to work. Maybe someone on the list > knows how to do it. > > * created build dir in gui_qt4 > * cmake .. > > [...] > -- Looking for IceConnectionNumber in ICE > -- Looking for IceConnectionNumber in ICE - found > -- Looking for XScreenSaverRegister in Xss > -- Looking for XScreenSaverRegister in Xss - not found > -- Looking for X11/extensions/scrnsaver.h > -- Looking for X11/extensions/scrnsaver.h - not found > CMake Error: Error in cmake code at > /usr/share/CMake/Modules/FindQt4.cmake:857: > MESSAGE Qt qmake not found! > Current CMake stack: > /home/philipp/licq/src/licq/plugins/qt-gui_qt4/CMakeLists.txt;/usr/share/CM >ake/Modules/CMakeCInformation.cmake;/usr/share/CMake/Modules/CMakeCXXInforma >tion.cmake;/usr/share/CMake/Modules/FindQt4.cmake -- Configuring done
For some reason, cmake searches for qmake before qmake-qt4. When you have both Qt3 and Qt4 installed, qmake points to qmake-qt3. This results in cmake finding the wrong version. See this bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392473 Luckily, there's an easy solution. a) after running cmake, run ccmake . (note dot), append -qt4 to QT_QMAKE_EXECUTABLE, press c (to configure), q to quit, and run cmake .. again. or b) run cmake .. -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 // Erik -- Don't worry, tomorrow won't be a better day! Erik Johansson http://ejohansson.se
pgp9ey7VHwqXH.pgp
Description: PGP signature
