×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    4.7/Mobility/QGeoPositionInfo

    Hi,

    I am trying to port my app from using 4.6.2+mobility to using 4.7 which includes mobility.

    I have this in my pro file :

    Code:
    CONFIG      += qt mobility
    MOBILITY    += location bearer
    QT=core gui network maemo5
    The code compiles, but fails to link with errors such as :

    Code:
    build/location.o: In function `Location::setLocation(QtMobility::QGeoPositionInfo const&)':
    location.cpp:(.text+0xf64): undefined reference to `QtMobility::QGeoPositionInfo::coordinate() const'
    Any ideas?

    Max.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: 4.7/Mobility/QGeoPositionInfo

    You should write like below way :

    Code:
    CONFIG += mobility
    MOBILITY += location
    Also see this useful article for you :Get_continuous_location_updates_using_Qt_Mobility_API

    Best regards,
    RaHuL

Similar Threads

  1. How to use Qt mobility?
    By BalajiR in forum [Archived] Qt Mobility Project
    Replies: 25
    Last Post: 2010-09-07, 08:17
  2. MOBILITY = bearer or MOBILITY = Bearer??
    By tadu in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-06-03, 21:01
  3. About QT Mobility
    By rajalakshmi in forum [Archived] Qt Mobility Project
    Replies: 6
    Last Post: 2010-01-27, 15:05
  4. CONFIG += mobility & MOBILITY = ...
    By viktor.burka in forum [Archived] Qt Mobility Project
    Replies: 8
    Last Post: 2009-12-25, 15:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×