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

cmake cannot find Qt6Targets.cmake and Qt6VersionlessTargets.cmake when configuring prefix build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.0 Beta4
    • 6.2
    • WebEngine
    • None
    • All

    Description

      Qt is configured with configure -prefix path -release

      Top-level build including qtwebengine: cmake --build . --parallel

      When build reaches the qtwebengine configuration phase it fails to find Qt6Targets.cmake and Qt6VersionlessTargets.cmake files:

      CMake Error at /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6Config.cmake:33 (include):                                                                                                                                                                        
        include could not find requested file:                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                       
          /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6Targets.cmake                                                                                                                                                                                                
      Call Stack (most recent call first):                                                                                                                                                                                                                                             
        CMakeLists.txt:23 (find_package)                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                       
      CMake Error at /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6Config.cmake:35 (include):                                                                                                                                                                        
        include could not find requested file:                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                       
          /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6VersionlessTargets.cmake                                                                                                                                                                                     
      Call Stack (most recent call first):                                                                                                                                                                                                                                             
        CMakeLists.txt:23 (find_package)
      

      I have also attached whole log of the configuration phase: qtwebengine-cmake-configure.log

      These files are in qtbase/CMakeFiles/Export/lib/cmake/Qt6 and only these two are in that directory. With developer-build they are in qtbase/lib/cmake/Qt6.

      Attachments

        Issue Links

          Activity

            People

              michal Michal Klocek
              pvarga Peter Varga
              Votes:
              6 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: