QtMobility not installed

  • hi all

    I am new to QML. I tried to execute the sample code shown below.

    @ import Qt 4.7
    import QtMobility.location 1.1

    Rectangle {
    id: page
    width: 350
    height: 350
    PositionSource {
    id: positionSource
    updateInterval: 1000
    active: true
    // nmeaSource: "nmealog.txt"
    Column {
    Text {text: "<==== PositionSource ====>"}
    Text {text: "positioningMethod: " + printableMethod(positionSource.positioningMethod)}
    Text {text: "nmeaSource: " + positionSource.nmeaSource}
    Text {text: "updateInterval: " + positionSource.updateInterval}
    Text {text: "active: " + positionSource.active}
    Text {text: "<==== Position ====>"}
    Text {text: "latitude: " + positionSource.position.coordinate.latitude}
    Text {text: "longitude: " + positionSource.position.coordinate.longitude}
    Text {text: "altitude: " + positionSource.position.coordinate.altitude}
    Text {text: "speed: " + positionSource.position.speed}
    Text {text: "timestamp: " + positionSource.position.timestamp}
    Text {text: "altitudeValid: " + positionSource.position.altitudeValid}
    Text {text: "longitudeValid: " + positionSource.position.longitudeValid}
    Text {text: "latitudeValid: " + positionSource.position.latitudeValid}
    Text {text: "speedValid: " + positionSource.position.speedValid}
    function printableMethod(method) {
    if (method == PositionSource.SatellitePositioningMethod)
    return "Satellite";
    else if (method == PositionSource.NoPositioningMethod)
    return "Not available"
    else if (method == PositionSource.NonSatellitePositioningMethod)
    return "Non-satellite"
    else if (method == PositionSource.AllPositioningMethods)
    return "All/multiple"
    return "source error";

    i have added this to my .pro file
    @CONFIG += mobility
    MOBILITY += location@

    I was able to run this app in the QtSimulator but when i tried to deploy the application on a embedded Meego device, i got the following error

    @module "QtMobility.location" is not installed
    import QtMobility.location 1.1
    ^ @

    I have read many threads explaining the reasons but i am unable to resolve the issue. Please help me how to solve this issue

  • what is the version of your Qt? you need to download the latest version to enable the mobility

  • i m using Qt 4.7

  • Which device do you work with?
    (I'm assuming N9.)

    Which platform version do you have on the device (settings > about product)?

    The code works for me as-is (running Qt SDK 1.1.4, PR1.1 on the device).

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.