Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error: QGeoLocation: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

error: QGeoLocation: No such file or directory

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 3 Posters 3.5k Views 1 Watching
  • 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.
  • W WhatIf

    Qt Creator 3.5.1

    After adding QT+ = positioning, I clicked the run button.

    Ni.SumiN Offline
    Ni.SumiN Offline
    Ni.Sumi
    wrote on last edited by Ni.Sumi
    #4

    @WhatIf

    Qt Creator does not matter, Qt Version has to be minimum 5.2 to use QGeoLocation.

    First try this:
    After adding QT+ = positioning , you must run first qmake. Right click on the "project name" and "Run qmake" , and then build , run.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      WhatIf
      wrote on last edited by
      #5

      Based on Qt 5.5.1 (MSVC 2013, 32 bit)

      I right clicked on the "project name" and "Run qmake", no problems.

      When I click build, I get the same error.

      Ni.SumiN 1 Reply Last reply
      0
      • W WhatIf

        Based on Qt 5.5.1 (MSVC 2013, 32 bit)

        I right clicked on the "project name" and "Run qmake", no problems.

        When I click build, I get the same error.

        Ni.SumiN Offline
        Ni.SumiN Offline
        Ni.Sumi
        wrote on last edited by Ni.Sumi
        #6

        @WhatIf

        I don't see any error. Check all spellings correctly. I tested with the same kit Qt 5.5.1 (MSVC 2013, 32 bit). I dont have any issue.

        Try to make new sample project and add QT += core gui location positioning & #include <QtLocation>
        #include <QGeoLocation> .

        Still if you get error, Could you copy and paste the exact error here.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          WhatIf
          wrote on last edited by WhatIf
          #7

          C:\Users\Mike\Documents\Map\mainwindow.cpp:8: error: QGeoLocation: No such file or directory
          #include <QGeoLocation>
          ^

          These are all my #includes:

          #include <QGeoAddress>
          #include <QGeoRoute>
          #include <QGeoLocation>
          #include <QGeoShape>
          #include <QGeoServiceProvider>
          #include <QGeoCodingManager>
          #include <QGeoCodeReply>

          I included #include <QtLocation>, still the same problem.

          deleted the project and started over, still the same problem.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #8

            Hi! Go to the installation directory and make sure the header files are actually there, e.g. in /opt/Qt5.7/5.7/gcc_64/include/QtPositioning.

            1 Reply Last reply
            1
            • W Offline
              W Offline
              WhatIf
              wrote on last edited by
              #9

              From the following list:

              #include <QGeoAddress>
              #include <QGeoRoute>
              #include <QGeoLocation>
              #include <QGeoShape>
              #include <QGeoServiceProvider>
              #include <QGeoCodingManager>
              #include <QGeoCodeReply>

              only qgeoaddress and qgeoshape are in the QtPositioning folder. Is there a way to update Qt creator or download them? I downloaded and installed Qt creator a few months ago.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #10

                You can run the Qt Maintainance Tool to install / reinstall said modules.

                ? 1 Reply Last reply
                0
                • ? A Former User

                  You can run the Qt Maintainance Tool to install / reinstall said modules.

                  ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #11

                  Although, if possible, updating to 5.7 would be preferable.

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    WhatIf
                    wrote on last edited by WhatIf
                    #12

                    Finally, it's working :)

                    Thank you very much!

                    ? 1 Reply Last reply
                    0
                    • W WhatIf

                      Finally, it's working :)

                      Thank you very much!

                      ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #13

                      @WhatIf Great to hear. Please mark the thread as solved (as described here). How did you solve it?

                      1 Reply Last reply
                      0
                      • W Offline
                        W Offline
                        WhatIf
                        wrote on last edited by
                        #14

                        Qt Maintenance Tool > Add or remove components > expand Qt 5.5 > expand source compnonets > expand Add-Ons and select qtlocation > click update

                        1 Reply Last reply
                        1

                        • Login

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