×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    40

    Question Unable to run Qt Mobility example

    Hi,

    I am trying to run QtMobility example but i am getting following errors :

    Creation Time Description Resource Path Location Type
    1295241941676 Undefined symbol: '__declspec(dllimport) void QtMobility::QMessage::setType(enum QtMobility::QMessage::Type) (__imp_?setType@QMessage@QtMobility@@QAEXW4Type@12@@Z)' messageExample2 Unknown C/C++ Problem
    1295241941677 Undefined symbol: '__declspec(dllimport) void QtMobility::QMessage::setParentAccountId(class QtMobility::QMessageAccountId const &) (__imp_?setParentAccountId@QMessage@QtMobility@@QAEXABVQMessageAccountId@2@@Z)' messageExample2 Unknown C/C++ Problem
    1295241941678 Undefined symbol: '__declspec(dllimport) void QtMobility::QMessage::setBody(class QString const &, class QByteArray const &) (__imp_?setBody@QMessage@QtMobility@@QAEXABVQString@@ABVQByteArray@@@Z)' messageExample2 Unknown C/C++ Problem
    1295241941672 Undefined symbol: '__declspec(dllimport) QtMobility::QMessageService::QMessageService(class QObject *) (__imp_??0QMessageService@QtMobility@@QAE@PAVQObject@@@Z)' messageExample2 Unknown C/C++ Problem
    1295241941674 Undefined symbol: '__declspec(dllimport) QtMobility::QMessageService::~QMessageService(void) (__imp_??1QMessageService@QtMobility@@UAE@XZ)' messageExample2 Unknown C/C++ Problem
    1295241941671 Undefined symbol: '__declspec(dllimport) QtMobility::QMessageAccountId::QMessageAccountId(void) (__imp_??0QMessageAccountId@QtMobility@@QAE@XZ)' messageExample2 Unknown C/C++ Problem
    1295241941673 Undefined symbol: '__declspec(dllimport) QtMobility::QMessageAccountId::~QMessageAccountId(void) (__imp_??1QMessageAccountId@QtMobility@@QAE@XZ)' messageExample2 Unknown C/C++ Problem
    1295241941675 Undefined symbol: '__declspec(dllimport) QtMobility::QMessage::QMessage(void) (__imp_??0QMessage@QtMobility@@QAE@XZ)' messageExample2 Unknown C/C++ Problem
    1295241941683 Undefined symbol: '__declspec(dllimport) QtMobility::QMessage::~QMessage(void) (__imp_??1QMessage@QtMobility@@UAE@XZ)' messageExample2 Unknown C/C++ Problem
    1295241941682 Undefined symbol: '__declspec(dllimport) enum QtMobility::QMessageManager::Error QtMobility::QMessageService::error(void) const (__imp_?error@QMessageService@QtMobility@@QBE?AW4Error@QMessageManager@2@XZ)' messageExample2 Unknown C/C++ Problem
    1295241941680 Undefined symbol: '__declspec(dllimport) class QtMobility::QMessageAccountId QtMobility::QMessage:arentAccountId(void) const (__imp_?parentAccountId@QMessage@QtMobility@@QBE?AVQMessageAccountId@2@XZ)' messageExample2 Unknown C/C++ Problem
    1295241941679 Undefined symbol: '__declspec(dllimport) bool QtMobility::QMessageService::send(class QtMobility::QMessage &) (__imp_?send@QMessageService@QtMobility@@QAE_NAAVQMessage@2@@Z)' messageExample2 Unknown C/C++ Problem
    1295241941681 Undefined symbol: '__declspec(dllimport) class QtMobility::QMessageAccountId & QtMobility::QMessageAccountId:perator=(class QtMobility::QMessageAccountId const &) (__imp_??4QMessageAccountId@QtMobility@@QAEAAV01@ABV01@@Z)' messageExample2 Unknown C/C++ Problem


    Can anyone plz help me to resolve this issue.

    Thanks in advance.

    Regards
    Monali

  2. #2
    Nokia Developer Expert
    Join Date
    Jul 2003
    Location
    Vancouver, Canada
    Posts
    220

    Re: Unable to run Qt Mobility example

    I assume you are running the desktop version. The errors means that you don't have the library installed. Did you install the mobility libraries?

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    40

    Re: Unable to run Qt Mobility example

    Thanks for the reply..
    I had installed QtMobilty.
    Should i need to do other setting?

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Unable to run Qt Mobility example

    How does the project file look like? Are you using Carbide or Nokia Qt SDK?

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    40

    Re: Unable to run Qt Mobility example

    Quote Originally Posted by divanov View Post
    How does the project file look like? Are you using Carbide or Nokia Qt SDK?
    I am using carbide and project file looks like same as Qt
    Last edited by jainmonali21; 2011-01-17 at 09:04.

  6. #6
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Unable to run Qt Mobility example

    Do you have the proper Mobility setup in your pro file?

  7. #7
    Registered User
    Join Date
    Mar 2010
    Posts
    40

    Re: Unable to run Qt Mobility example

    yes,
    i have included

    CONFIG += mobility
    MOBILITY = messaging
    INCLUDEPATH += ../../src/messaging

    in my .pro file, but those errors are still there....

  8. #8
    Nokia Developer Expert
    Join Date
    Dec 2009
    Posts
    81

    Re: Unable to run Qt Mobility example

    Do you have

    QTM_USE_NAMESPACE

    somewhere near the top of your source file?

    (From http://doc.qt.nokia.com/qtmobility-1...uickstart.html)

  9. #9
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Unable to run Qt Mobility example

    He wouldn't compile without that. The link error messages include the "QtMobility:" namespace qualifier, meaning the compile steps found the Qt Mobility classes in the H files, but the linker's not finding the library that defines those entry points. Most likely there's a misplaced lib or dll file.

  10. #10
    Nokia Developer Expert
    Join Date
    Dec 2009
    Posts
    81

    Re: Unable to run Qt Mobility example

    I think might have put that last reply in the wrong tab Now I just need to track down the right thread (and possibly the right site) where that tip was relevant...

  11. #11
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: Unable to run Qt Mobility example

    Quote Originally Posted by jainmonali21 View Post
    INCLUDEPATH += ../../src/messaging
    It seems you have not installed qt mobility in your sdk and you are including mobility header files from qt mobility source code. Hence it compiles fine but linker gives error because no library is installed.

  12. #12
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Unable to run Qt Mobility example

    if you have not install the qt mobility source code and you were having the source code with you, then first build qt mobility source code.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  13. #13
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Unable to run Qt Mobility example

    Should not be necessary to build Mobility -- it comes already built.

  14. #14
    Registered User
    Join Date
    Mar 2010
    Posts
    40

    Question errors in Qt mobility application

    Hello Sir,
    I am facing errors while doing Qt mobility programming. I am making the same program run which is given on wiki of quickStart.cpp....
    But some errors are coming, please help me to resolve those issues.
    errors are-
    Creation Time Description Resource Path Location Type
    1295518661969 Undefined symbol: '__declspec(dllimport) class QString QtMobility::QSystemInfo::currentCountryCode(void) (__imp_?currentCountryCode@QSystemInfo@QtMobility@@QAE?AVQString@@XZ)' quickStart Unknown C/C++ Problem
    1295518661968 Undefined symbol: '__declspec(dllimport) QtMobility::QSystemInfo::QSystemInfo(class QObject *) (__imp_??0QSystemInfo@QtMobility@@QAE@PAVQObject@@@Z)' quickStart Unknown C/C++ Problem
    1295518661970 Undefined symbol: '__declspec(dllimport) QtMobility::QSystemInfo::~QSystemInfo(void) (__imp_??1QSystemInfo@QtMobility@@UAE@XZ)' quickStart Unknown C/C++ Problem


    Thanks in advance

  15. #15
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: errors in Qt mobility application

    Have you added the correct mobility options to your .pro file and re-run qmake?

Similar Threads

  1. how to test writemessage example for qt mobility
    By jainmonali21 in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-04-23, 05:56
  2. How to run a Qt Mobility app on the S60 emulator
    By ceefour in forum [Archived] Qt Mobility Project
    Replies: 4
    Last Post: 2010-01-27, 07:06

Posting Permissions

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