Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33223

Regression: CMake references a file that does not exists.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.2.0 Alpha
    • 5.1.1
    • Build System
    • None
    • Debian sid (unstable).

    Description

      After upgrading to 5.1.1 from 5.1.0 I get in one of my projects:

      CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake:27 (message):
        The imported target "Qt5::Network" references the file
      
           "/usr/lib/include/qt5/"
      
        but this file does not exist.  Possible reasons include:
      
        * The file was deleted, renamed, or moved to another location.
      
        * An install or uninstall procedure did not complete successfully.
      
        * The installation package was faulty and contained
      
           "/usr/lib/x86_64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake"
      
        but not all the files it references.
      
      Call Stack (most recent call first):
        /usr/lib/x86_64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake:62 (_qt5_Network_check_file_exists)
        CMakeLists.txt:67 (find_package)
      

      The problem seems to be in mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in, possibly introduced in 880f73d1f0382d4ac91f54f47e1c6be0b760c393. Timo Jyrinki from Ubuntu forced setting _qt5$${CMAKE_MODULE_NAME}_install_prefix and the problem got solved. The patch, which is not suitable for pushing upstream, is http://bazaar.launchpad.net/~kubuntu-packagers/kubuntu-packaging/qtbase-opensource-src/view/head:/debian/patches/force_qt_install_prefix.patch

      Attachments

        1. Qt5NetworkConfig.cmake
          5 kB
          Lisandro Damián Nicanor Pérez Meyer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            lisandropm Lisandro Damián Nicanor Pérez Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes