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

Documentation for QtAndroidPrivate is still wrong for CMake

    XMLWordPrintable

Details

    • Android
    • 8844c6ef3 (dev), 8680d45ba (6.5), e64172efc (6.4), f6d6666c4 (dev)
    • DaVinci 69, DaVinci 70

    Description

      For https://doc.qt.io/qt-6/qtandroidprivate.html

       

      Wrong instructions

      find_package(Qt6 REQUIRED COMPONENTS CorePrivate)
      target_link_libraries(mytarget PRIVATE Qt6::CorePrivate)
      

      These do not exist.

      error: Found package configuration file: C:/Qt/6.4.1/android_x86/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "CorePrivate". Expected Config file at "C:/Qt/6.4.1/android_x86/lib/cmake/Qt6CorePrivate/Qt6CorePrivateConfig.cmake" does NOT exist

       

      Correct instructions

      include_directories(${Qt6Core_PRIVATE_INCLUDE_DIRS})
      

      Attachments

        Issue Links

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

          Activity

            People

              treinio Topi Reiniö
              skoh-qt Sze Howe Koh
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: