×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    4

    Qt mobility undefined reference when building on symbian device

    Hi, Im trying to make an application for symbian s60 3rd edition using qt 4.7 and mobility 1.00.2(i think) and when I build on symbian simulator everything is ok, but when I try to build on device I get undefined reference error when using qt mobility sensors methods. I've tried http://bugreports.qt.nokia.com/browse/QTSDK-98 but didnt help, is there anyone who could help me? I couldnt find anything helpful on internet.
    Thank you
    Josef

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    20

    Re: Qt mobility undefined reference when building on symbian device

    It might be bcuz you try to deploy to device an application compiled with QT 4.7 and on devicemight be 4.6...

    From what I know Qt Mobility 1.0.2 and Qt 4.6.3 are required to go to Ovi store.

    Regs,
    Andy

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    4

    Re: Qt mobility undefined reference when building on symbian device

    Thank you, I've tried to find qt 4.6.3 but I was always redirected to qt 4.7 do you know any web addresses where I can download 4.6.3 or do I just have to search harder?
    Thanks

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Qt mobility undefined reference when building on symbian device


  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    20

    Re: Qt mobility undefined reference when building on symbian device

    Quote Originally Posted by jozin1988 View Post
    Thank you, I've tried to find qt 4.6.3 but I was always redirected to qt 4.7 do you know any web addresses where I can download 4.6.3 or do I just have to search harder?
    Thanks
    Using only headers won't help, you will need libraries too. If you download Nokia Qt SDK 1.0.2 - https://www.forum.nokia.com/info/sw....ia_Qt_SDK.html - it comes directly with Qt 4.6.2 which will be ok to publish to Ovi store.

    Regs,
    Andy

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Qt mobility undefined reference when building on symbian device

    Nokia Qt SDK 1.0.2 comes with Qt 4.6.3 for Symbian and Qt Mobility 1.0.2 for Symbian.

    Still, I don't see how this is related to the original question as there is no indication there about which SDK is being used nor is there any connection between compile time errors and whatever Qt version is available or not on a device.

    So, let's start from the top and clarify what the problem is, on which context it is showing (which tools, release versions) and what the actual code being compiled is.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Registered User
    Join Date
    Feb 2011
    Posts
    4

    Re: Qt mobility undefined reference when building on symbian device

    Thank you for your help guys, Im using Nokia Qt SDK 1.0.2, when I go to about qt creator it says Qt Creator 2.0.1 Based on Qt 4.7.0 (32 bit). Im still not sure if Im actually using qt 4.7 or qt 4.6.3.
    Now Ill post the code Im using:
    Code:
    #include <QtGui/QApplication>
    #include "mainwindow.h"
    
    #include <QLabel>
    
    #include <QSystemInfo> //(1)
    #include <QSensor>
    #include <QList>
    #include <QByteArray>
    
    QTM_USE_NAMESPACE //(2)
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
        QSystemInfo s;
    
        QList<QByteArray> seznam;
        int pocet;
    
        seznam = QtMobility::QSensor::sensorTypes();
        pocet = seznam.count();
    
        QList<QByteArray>::iterator it;
    
        QString slovo;
        for (it = seznam.begin();it != seznam.end() ;it++) {
            slovo.append(*it);
            slovo.append("\n");
        }
    
        QString spocet;
        spocet.setNum(seznam.count());
    
        QLabel *label = new QLabel(slovo);
    
        label->showMaximized();
        return app.exec();
    
    }
    and my .pro file looks like this:
    Code:
    QT       += core gui network
    
    TARGET = Zkouska
    TEMPLATE = app
    
    
    SOURCES += main.cpp\
            mainwindow.cpp
    
    HEADERS  += mainwindow.h
    
    FORMS    += mainwindow.ui
    
    CONFIG += mobility
    MOBILITY += sensors
    
    symbian {
        TARGET.UID3 = 0xed4f201d
        # TARGET.CAPABILITY += 
        TARGET.CAPABILITY = CAPABILITY_A CAPABILITY_B
        TARGET.EPOCSTACKSIZE = 0x14000
        TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    }
    When I build on simulator, everythings is OK, but when I build on device I get undefined reference error on this line : seznam = QtMobility::QSensor::sensorTypes();

    I am a begginer at this, and I will appreciate any help, thank you.
    Josef
    Last edited by ltomuta; 2011-02-27 at 20:09. Reason: Formatting

  8. #8
    Registered User
    Join Date
    Feb 2011
    Posts
    4

    Re: Qt mobility undefined reference when building on symbian device

    Im sorry if Im being difficult Ive just tried the application on my device and if I build it as release it works, debug still says undefined reference.
    Thank you
    Josef

  9. #9
    Registered User
    Join Date
    Oct 2008
    Posts
    20

    Re: Qt mobility undefined reference when building on symbian device

    Quote Originally Posted by jozin1988 View Post
    Im sorry if Im being difficult Ive just tried the application on my device and if I build it as release it works, debug still says undefined reference.
    Thank you
    Josef
    Debug might say undefined reference as you don't have debug libraries on your device.

    Regs,
    Andy

  10. #10
    Registered User
    Join Date
    Apr 2011
    Posts
    25

    Re: Qt mobility undefined reference when building on symbian device

    I have the exact same problem, just taking use of bearer from QtMobility. Hope some smart heads can see what we are doing wrong....

    It is not my intention to hijack your thread, but here's a link to compare your problem with mine, as it seems they are alike....
    http://discussion.forum.nokia.com/fo...he-application

Similar Threads

  1. Replies: 21
    Last Post: 2010-11-17, 04:44
  2. Video playback with Qt 4.7 and Qt Mobility 1.1.0 on Symbian^3
    By santama in forum [Archived] Qt Mobility Project
    Replies: 0
    Last Post: 2010-10-25, 14:05
  3. Building Qt-mobility libs and installing on phone
    By jmclaurin11 in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-04-30, 00:49
  4. Replies: 5
    Last Post: 2006-05-31, 07:23
  5. Replies: 4
    Last Post: 2006-05-11, 10:03

Posting Permissions

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