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. Mobility include dir not recognised in QtSDK
QtWS25 Last Chance

Mobility include dir not recognised in QtSDK

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.5k 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.
  • X Offline
    X Offline
    xsacha
    wrote on last edited by
    #1

    I installed a fresh copy of QtSDK from the website with an attempt to use the Messaging API in QtMobility but,
    @#include <QMessage>@
    doesn't work -- file not found.

    I hunted down the QtMobility files and it turns out they are in the subdirectory 'mw'.
    So, I used:
    @#include <mw/QMessage>@

    Success. But now I still can't use it because when I try to add this to my code:
    @QMessage msg;@
    I get the following errors depending on where in the code I use it:
    error: 'QMessage' does not name a type, error: 'QMessage' has not been declared, error: 'QMessage' was not declared in this scope

    The really puzzling thing is that once I include <mw/QMessage>, Qt Creator recognises QMessage and provides API info for it.

    So I'm not sure exactly what's going on but think it may all be because the QtMobility include dir (mw) isn't in the include paths.

    Any ideas?

    Edit: And yes, I'm compiling for Symbian which seems to be the only platform QMessage is supported on. And my .pro file has mobility and messaging enabled.

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

      Did you add

      @
      CONFIG += mobility
      MOBILITY += messaging
      @

      to your .pro file?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xsacha
        wrote on last edited by
        #3

        Yes.
        @# If your application uses the Qt Mobility libraries, uncomment

        the following lines and add the respective components to the

        MOBILITY variable.

        CONFIG += mobility
        MOBILITY += sensors
        messaging@

        Just tried removing QtMobility API from QtSDK Maintenance and then installing it again. No dice :(.

        • Sacha
        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