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. Sensors library missing in android
Forum Updated to NodeBB v4.3 + New Features

Sensors library missing in android

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 1.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.
  • A Offline
    A Offline
    aiphee
    wrote on last edited by
    #1

    Hi,
    im making simple app (pacman-like) in pure QML and JS (no C).

    I tried to add sensors but neither of them (tilt, proximity) worked, it always says

    ...'libQt5Sensors.so' not found

    I tried packing for ministro and integrating, neither worked.

    Im using QT 5.2. Can you help me please?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cezmen
      wrote on last edited by
      #2

      Have you included the following statement in your .PRO file? :

      QT += sensors

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aiphee
        wrote on last edited by
        #3

        Didnt know i should. I tried to append it at the end of file but same error as before.

        Here: https://dl.dropboxusercontent.com/u/12063254/pacman.zip is my project if someone could take a look.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aiphee
          wrote on last edited by
          #4

          I will be gratefull even for some sample project using QT 5.2 and sensors, please?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cezmen
            wrote on last edited by
            #5

            One very didactical is Accel Bubble :

            http://qt-project.org/doc/qt-5/qtsensors-accelbubble-example.html

            For working on iOS, I've made some minor modifications in the .PRO file :

            QT += quick sensors svg xml
            QTPLUGIN += qtsensors_ios qsvg

            But it works both on Android and iOS.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aiphee
              wrote on last edited by
              #6

              Ok, i added those line into pri (not pro?) in new project and it seems to be working just fine.

              Thanks

              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