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

Incorrect CMake files are produced when building from source without qttools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7
    • 5.7
    • Build System: CMake
    • None
    • Linux
    • 6583720aa4503fce16b44cce7b8d939058abf000

    Description

      If configuring qt like this :

            perl init-repository --module-subset=qtbase,qtimageformats,qtsvg,qtwebsockets,qttranslations,qtrepotools,qtdeclarative
      

      when attempting to use the built Qt from CMake, the following error arises :

      CMake Error at /usr/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
        The imported target "Qt5::Core" references the file
      
           "/usr/local/Qt-5.7.0/bin/qdoc"
      
        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/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
      
        but not all the files it references.
      
      Call Stack (most recent call first):
        /usr/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:41 (_qt5_Core_check_file_exists)
        /usr/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:146 (include)
        /usr/local/Qt-5.7.0/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package)
        CMakeLists.txt:40 (find_package)
      

      And indeed, there is no qdoc binary being built anywhere.

      Attachments

        For Gerrit Dashboard: QTBUG-54446
        # Subject Branch Project Status CR V

        Activity

          People

            krf Kevin Funk
            jcelerier Jean-Michaƫl Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes