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. Qt positioning requirements for Linux
Forum Updated to NodeBB v4.3 + New Features

Qt positioning requirements for Linux

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 999 Views 2 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.
  • A Offline
    A Offline
    adutzu89
    wrote on 22 Feb 2018, 18:27 last edited by
    #1

    Does anyone know a list of requirements for Qt positioning to work on Linux?
    I have GeoClue installed, the version mentioned on the positioning page, but when I run

    QGeoPositionInfoSource *pos = QGeoPositionInfoSource::createDefaultSource(0);
    

    it doesn't seem to work, if(pos) returns false.

    On Android and Windows 10 returns true, so I'm probably doing something right, no?
    Using Qt Creator(latest version), Qt 5.9.4 on Ubuntu 16.04.3, X86_64.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Feb 2018, 20:46 last edited by
      #2

      Hi,

      You should start your application with the QT_DEBUG_PLUGINS environment variable set to one to see what is happening with the position info source plugin.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply 23 Feb 2018, 10:34
      3
      • S SGaist
        22 Feb 2018, 20:46

        Hi,

        You should start your application with the QT_DEBUG_PLUGINS environment variable set to one to see what is happening with the position info source plugin.

        A Offline
        A Offline
        adutzu89
        wrote on 23 Feb 2018, 10:34 last edited by
        #3

        @SGaist Thank you, I forgot I had qt.conf inside the build directory and it was trying to load the plugin from that but it wasn't finding it, after I copied the position plugin directory inside my build it works.
        By the way, shouldn't it try to load the plugins from the installation directory if it doesn't find in the application build directory?

        1 Reply Last reply
        1
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Feb 2018, 10:43 last edited by
          #4

          You're welcome !

          No because you are using qt.conf which means that you are telling your application where to find Qt therefore it's where it will look for everything.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply 23 Feb 2018, 18:09
          1
          • S SGaist
            23 Feb 2018, 10:43

            You're welcome !

            No because you are using qt.conf which means that you are telling your application where to find Qt therefore it's where it will look for everything.

            A Offline
            A Offline
            adutzu89
            wrote on 23 Feb 2018, 18:09 last edited by
            #5

            @SGaist I see, thank you.

            1 Reply Last reply
            0

            1/5

            22 Feb 2018, 18:27

            • Login

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