×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    94

    Question Problem linking with Qt mobility sensor API.

    I want to use the Qt mobility sensor API (1.0.1).

    From the Qt mobility docs I should add this to the .pro file:

    CONFIG += mobility
    MOBILITY += sensors

    My code compiles ok by I'm getting these linker errors

    undefined reference to `QtMobility::QAmbientLightSensor::type'
    undefined reference to `vtable for QtMobility::QAmbientLightSensor'
    undefined reference to `QtMobility::QSensor::reading() const'
    undefined reference to `QtMobility::QAmbientLightReading::lightLevel() const' L
    undefined reference to `QtMobility::QSensor::QSensor(QByteArray const&, QObject*)'

    There does seem to be some confusion in the documentation between
    MOBILITY += sensors
    and
    MOBILITY += sensor

    but neither work?

    I assume that I have Qt mobility install ok, as I have all the headers.

    Exactly what does MOBILITY += sensor mean?,
    I assume it means link with some libs, but what libs where? How can I check that they are installed?

  2. #2
    Registered User
    Join Date
    Jan 2009
    Posts
    94

    Thumbs up Re: Problem linking with Qt mobility sensor API.


Similar Threads

  1. Does Qt Mobility API included in the smart installer?
    By edwinywmak in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 7
    Last Post: 2010-07-17, 07:40
  2. Python + Qt Mobility API
    By AltoRetrato in forum Python
    Replies: 3
    Last Post: 2010-06-18, 17:42
  3. Problem with Qt Mobility
    By picachu.nioto in forum [Archived] Qt Mobility Project
    Replies: 7
    Last Post: 2010-04-06, 05:28
  4. Possibility of Qt Mobility API
    By Zhengtao in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2010-03-15, 14:46
  5. Is QT Mobility API release for Maemo?
    By Nitesh Bhardwaj in forum Nokia N9
    Replies: 3
    Last Post: 2009-12-08, 08:08

Posting Permissions

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