Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. What to use instead of locations

What to use instead of locations

Scheduled Pinned Locked Moved Solved Qt 6
5 Posts 2 Posters 623 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BambusFanB Offline
    BambusFanB Offline
    BambusFan
    wrote on last edited by
    #1

    Hey,
    I want to calculate the distance between two addresses and for this I wanted to insert the component positioning in cmake with:

    find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Positioning REQUIRED)
    

    Unfortunately I get the message:

    "Found package configuration file: C:/Qt/6.1.2/mingw81_64/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 Qt component "Positioning" config file at """
    

    After searching around I found out that Positioning has been removed https://doc.qt.io/qt-6/whatsnew60.html#changes-to-supported-modules. Is there a suitable alternative? I didn't find anything and every application example always had Poisitioning.
    Would be very pleased to receive an answer.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      Upgrade to Qt6.2.

      1 Reply Last reply
      2
      • BambusFanB Offline
        BambusFanB Offline
        BambusFan
        wrote on last edited by BambusFan
        #3

        @mchinand
        Now i got this:

        Found package configuration file: C:/Qt6/6.2.0/mingw81_64/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 Qt component "Positioning". Expected Config file at "C:/Qt6/6.2.0/mingw81_64/lib/cmake/Qt6Positioning/Qt6PositioningConfig.cmake" does NOT exist```
        1 Reply Last reply
        0
        • M Offline
          M Offline
          mchinand
          wrote on last edited by mchinand
          #4

          Did you explicitly install the Positioning module? Qt6 is more modular so many modules have to be individually selected to be installed; expand the 'Additional Libaries' item in the Maintenance Tool to see these modules.

          BambusFanB 1 Reply Last reply
          3
          • M mchinand

            Did you explicitly install the Positioning module? Qt6 is more modular so many modules have to be individually selected to be installed; expand the 'Additional Libaries' item in the Maintenance Tool to see these modules.

            BambusFanB Offline
            BambusFanB Offline
            BambusFan
            wrote on last edited by
            #5

            @mchinand Ah, thank you very much, that was the problem

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved