[Natty] CMake: FindQt4 doesn't work if qt3-dev-tools are installed

Bug #744878 reported by Dmitry Tantsur
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Won't Fix
Undecided
Unassigned
qt-x11-free (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cmake

Preparing Qt libraries...
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1148 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  CMakeLists.txt:48 (FIND_PACKAGE)

Used as:

MESSAGE ("Preparing Qt libraries...")

FIND_PACKAGE (Qt4 REQUIRED)
SET (QT_USE_QTGUI 1)
SET (QT_USE_QTXML 1)
SET (QT_USE_QTNETWORK 1)
SET (QT_USE_QTSQL 1)
SET (QT_USE_QT3SUPPORT 1)
INCLUDE (${QT_USE_FILE})

MESSAGE (STATUS "Found Qt version: ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}")
MESSAGE (STATUS "Found Qt libraries: ${QT_LIBRARY_DIR}")
MESSAGE (STATUS "Found Qt includes: ${QT_INCLUDE_DIR}")

$ apt-cache policy libqt4-dev
libqt4-dev:
  Установлен: 4:4.7.2-0ubuntu6
  Кандидат: 4:4.7.2-0ubuntu6
  Таблица версий:
 *** 4:4.7.2-0ubuntu6 0
        500 http://ru.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy qt4-qmake
qt4-qmake:
  Установлен: 4:4.7.2-0ubuntu6
  Кандидат: 4:4.7.2-0ubuntu6
  Таблица версий:
 *** 4:4.7.2-0ubuntu6 0
        500 http://ru.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

$ qmake-qt4 -v
QMake version 2.01a
Using Qt version 4.7.2 in /usr/lib

Used to work in maverick

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: cmake 2.8.3-3ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue Mar 29 14:35:38 2011
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
 LANGUAGE=ru_RU:en
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: cmake
UpgradeStatus: Upgraded to natty on 2011-03-07 (21 days ago)

Revision history for this message
Dmitry Tantsur (divius) wrote :
tags: added: regression-release
Revision history for this message
mokabar (tim-klingt) wrote :

it seems that it is impossible to detect qt4, if qt3-dev-tools is installed

Revision history for this message
Dmitry Tantsur (divius) wrote :

Yes, removing qt3-dev-tools helps

summary: - [Natty] CMake: FindQt4 no longer works
+ [Natty] CMake: FindQt4 doesn't work if qt3-dev-tools are installed
Revision history for this message
Felix Geyer (debfx) wrote :

Since qt-x11-free 3:3.3.8-b-8ubuntu1 qmake defaults to qmake-qt4.

Changed in qt-x11-free (Ubuntu):
status: New → Fix Released
Changed in cmake (Ubuntu):
status: New → Won't Fix
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.