Public bug reported:

When requiring the Qt4 package in a CMakeLists.txt, among the available
variables the one called QT_IMPORTS_DIR should point to where QML
plugins are to be installed (its value would typically be
"/usr/lib/qt4/imports").

However with cmake 2.8.5-1ubuntu1 in Oneiric, its value is
"QT_IMPORTS_DIR-NOTFOUND" as evidenced when running cmake on the
following minimal CMakeLists.txt:

    cmake_minimum_required(VERSION 2.8)
    find_package(Qt4 REQUIRED)
    message("QT_IMPORTS_DIR = " ${QT_IMPORTS_DIR})

A quick look at /usr/share/cmake-2.8/Modules/FindQt4.cmake shows that the logic 
used to define the value of QT_IMPORTS_DIR queries qmake’s QT_INSTALL_IMPORTS 
variable.
On the same machine, the query returns the expected value:

    $ qmake -query QT_INSTALL_IMPORTS
    /usr/lib/qt4/imports

So the logic to define QT_IMPORTS_DIR in 
/usr/share/cmake-2.8/Modules/FindQt4.cmake is somehow faulty.
I have tested the above both on x86 and amd64, with the same results.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cmake 2.8.5-1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: 2c7995ffdf051a6d0adf7ab2c7be5ba9
CheckboxSystem: 7e42599bda39ea7ff8b528272b6ef52b
Date: Fri Nov 25 16:31:59 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: cmake
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: cmake (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug oneiric running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/894805

Title:
  QT_IMPORTS_DIR is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/894805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to