Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] QtLocation support for ios
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QtLocation support for ios

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 3 Posters 3.9k 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.
  • clogwogC Offline
    clogwogC Offline
    clogwog
    wrote on last edited by
    #1

    is the QtLocation addon supposed to work under ios ?

    i got the module from git ( git clone git://gitorious.org/qt/qtlocation.git )

    and then try to build it:
    @~/Qt5.2.0/5.2.0-beta1/ios_armv7/bin/qmake .
    Checking for geoclue... no
    Checking for geoclue-satellite... no
    Checking for gypsy... no@

    which doesn't look promissing..

    make and make install does a lot of work without trowing an error though..
    my application compiles but when i run it on the iphone

    @qDebug() << QGeoPositionInfoSource::availableSources();@
    returns: ()
    and
    @QGeoPositionInfoSource::createDefaultSource(this);@
    returns NULL

    is there something i'm missing ?
    or is it just not supported on ios ?

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      [quote author="clogwog" date="1383524305"]
      is there something i'm missing ?
      or is it just not supported on ios ? [/quote]
      not yet supported, not even on Android which port is even more mature than the iOS port.
      QtLocation support is planned for Qt 5.3 in Adnroid, so i wouldn't expect it before in iOS either.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • clogwogC Offline
        clogwogC Offline
        clogwog
        wrote on last edited by
        #3

        thank you. makes my search a lot easier.

        i'll see if i can link to an objectiveC library instead.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CuteiOS
          wrote on last edited by
          #4

          It will be in Qt 5.2.0 for iOS. Just busy getting through the review process at the moment...

          1 Reply Last reply
          0
          • clogwogC Offline
            clogwogC Offline
            clogwog
            wrote on last edited by
            #5

            ooh
            that is good news.
            is it available in the add-on module from a development branch ? i'd be happy to beta test.

            1 Reply Last reply
            0
            • clogwogC Offline
              clogwogC Offline
              clogwog
              wrote on last edited by
              #6

              @git branch -a

              • dev
                remotes/origin/HEAD -> origin/dev
                remotes/origin/dev
                remotes/origin/stable
                remotes/origin/wip/experimental_scenegraphing
                remotes/origin/wip/qa
                @

              so it looks like i'm already using the development branch. @CuteiOS what branch can i look at for the latest ?

              1 Reply Last reply
              0
              • C Offline
                C Offline
                CuteiOS
                wrote on last edited by
                #7

                It's stuck in review because of test failures on OSX (it's an iOS/OSX plugin). You can test it from here:

                https://codereview.qt-project.org/#change,68306

                1 Reply Last reply
                0
                • clogwogC Offline
                  clogwogC Offline
                  clogwog
                  wrote on last edited by
                  #8

                  looks like:

                  @~/Qt5.2.0/5.2.0-beta1/ios_armv7/bin/qmake .
                  Checking for geoclue... no
                  Checking for geoclue-satellite... no
                  Checking for gypsy... no@

                  is expected output for ios since it is using a plugin called corelocation

                  so QGeoPositionInfoSource::availableSources() should at least return
                  ["corelocation"]

                  however it does not, not even with the changes applied.

                  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