×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2010
    Location
    Finland
    Posts
    19

    Nokia Qt SDK missing QT Mobility - messaging

    http://www.forum.nokia.com/Tools_Doc.../Nokia_Qt_SDK/

    When trying to compile a simple QT Mobility example

    Code:
    #include <QMessage>
    #include <QMessageAccount>
    #include <QMessageService>
    #include <QMessageManager>
    i get errors like these:
    Code:
    In file included from mainwindow.h:6, 
    from moc_mainwindow.cpp:10: 
    ../../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/include/QMessage:1:22: error: qmessage.h: No such file or directory 
    In file included from mainwindow.h:7, 
    from moc_mainwindow.cpp:10: 
    ../../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/include/QMessageAccount:1:29: error: qmessageaccount.h: No such file or directory 
    In file included from mainwindow.h:8, 
    from moc_mainwindow.cpp:10: 
    ../../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/include/QMessageService:1:29: error: qmessageservice.h: No such file or directory 
    In file included from mainwindow.h:9, 
    from moc_mainwindow.cpp:10: 
    ../../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/include/QMessageManager:1:29: error: qmessagemanager.h: No such file or directory 
    In file included from eventmenu.h:13, 
    from mainwindow.h:17, 
    from moc_mainwindow.cpp:10: 
    pushout.h:31: error: 'QMessageService' does not name a type 
    pushout.h:32: error: 'QMessage' was not declared in this scope 
    pushout.h:32: error: wrong number of template arguments (1, should be 2) 
    ../../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/include/QtCore/qpair.h:54: error: provided for 'template<class T1, class T2> struct QPair' 
    pushout.h:32: error: template argument 2 is invalid 
    pushout.h:34: error: 'QMessageManager' does not name a type 
    pushout.h:41: error: 'QMessageService' has not been declared 
    pushout.h:41: error: expected ',' or '...' before 'newState' 
    In file included from moc_mainwindow.cpp:10: 
    mainwindow.h:41: error: 'QMessage' was not declared in this scope 
    mainwindow.h:41: error: wrong number of template arguments (1, should be 2) 
    ../../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/include/QtCore/qpair.h:54: error: provided for 'template<class T1, class T2> struct QPair' 
    mainwindow.h:41: error: template argument 2 is invalid 
    mainwindow.h:42: error: 'QMessageService' does not name a type 
    mainwindow.h:44: error: 'QMessageManager' does not name a type 
    mainwindow.h:54: error: 'QMessageService' has not been declared 
    mainwindow.h:54: error: expected ',' or '...' before 'newState' 
    mainwindow.h:55: error: expected ',' or '...' before '&' token 
    mainwindow.h:55: error: ISO C++ forbids declaration of 'QMessageId' with no type 
    mainwindow.h:56: error: expected ',' or '...' before '&' token 
    mainwindow.h:56: error: ISO C++ forbids declaration of 'QMessageId' with no type 
    moc_mainwindow.cpp: In member function 'virtual int MainWindow::qt_metacall(QMetaObject::Call, int, void**)': 
    moc_mainwindow.cpp:91: error: expected type-specifier before 'QMessageService' 
    moc_mainwindow.cpp:91: error: expected `>' before 'QMessageService' 
    moc_mainwindow.cpp:91: error: expected `(' before 'QMessageService' 
    moc_mainwindow.cpp:91: error: 'QMessageService' has not been declared 
    moc_mainwindow.cpp:91: error: expected primary-expression before ')' token 
    moc_mainwindow.cpp:92: error: ISO C++ forbids declaration of 'type name' with no type 
    moc_mainwindow.cpp:92: error: expected `>' before 'QMessageId' 
    moc_mainwindow.cpp:92: error: expected `(' before 'QMessageId' 
    moc_mainwindow.cpp:92: error: expected primary-expression before ')' token 
    moc_mainwindow.cpp:92: error: 'QMessageId' was not declared in this scope 
    moc_mainwindow.cpp:92: error: ISO C++ forbids declaration of 'type name' with no type 
    moc_mainwindow.cpp:92: error: expected `>' before 'QMessageManager' 
    moc_mainwindow.cpp:92: error: expected `(' before 'QMessageManager' 
    moc_mainwindow.cpp:92: error: 'QMessageManager' has not been declared 
    moc_mainwindow.cpp:92: error: expected primary-expression before ')' token 
    moc_mainwindow.cpp:92: error: expected `)' before ';' token 
    moc_mainwindow.cpp:93: error: ISO C++ forbids declaration of 'type name' with no type 
    moc_mainwindow.cpp:93: error: expected `>' before 'QMessageId' 
    moc_mainwindow.cpp:93: error: expected `(' before 'QMessageId' 
    moc_mainwindow.cpp:93: error: expected primary-expression before ')' token 
    moc_mainwindow.cpp:93: error: ISO C++ forbids declaration of 'type name' with no type 
    moc_mainwindow.cpp:93: error: expected `>' before 'QMessageManager' 
    moc_mainwindow.cpp:93: error: expected `(' before 'QMessageManager' 
    moc_mainwindow.cpp:93: error: 'QMessageManager' has not been declared 
    moc_mainwindow.cpp:93: error: expected primary-expression before ')' token 
    moc_mainwindow.cpp:93: error: expected `)' before ';' token 
    make: Leaving directory `/c/qtmaemo/shaba/shaba' 
    make: *** [moc_mainwindow.o] Error 1 
    Exited with code 2.
    Error while building project shaba (target: Maemo)
    When executing build step 'Make'
    So basically all headers required are missing, what im wondering is that if i wanted to manually add them, what would be the correct way to not break my SDK?

  2. #2
    Regular Contributor
    Join Date
    May 2007
    Posts
    468

    Re: Nokia Qt SDK missing QT Mobility - messaging

    Howdy,
    unfortunately there are currently issues on the maemo side. The whole Qt development for N900 device needs to wait for the PR 1.2 firmware update (some weeks still but not months). Once available the Nokia Qt SDK will be updated and at the same time the mobility api related issues will be fixed.

    Cheers,
    Jack

  3. #3
    Registered User
    Join Date
    May 2010
    Location
    Noida, India
    Posts
    13

    Re: Nokia Qt SDK missing QT Mobility - messaging

    Are qmessage.h, qmessagemanager.h, qmessageservice.h released for Maemo?

    Since the examples at http://wiki.forum.nokia.com/index.ph...x_folder_in_Qt
    or at http://wiki.forum.nokia.com/index.ph...g_an_SMS_in_Qt
    seems to claiming that they have tested these examples on Maemo too.

    Are these examples not updated properly or QtMobility Messaging is released for Maemo?

    I ask this question because I in my SDK install, I could not find these headers although all other headers of other modules of QtMobility are present in my installation.

    A quick reply will be a great help as you know deadline is approaching

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

    Re: Nokia Qt SDK missing QT Mobility - messaging

    Quote Originally Posted by ALCHEMIST View Post
    A quick reply will be a great help as you know deadline is approaching
    Which deadline?

  5. #5
    Registered User
    Join Date
    May 2010
    Location
    Noida, India
    Posts
    13

    Re: Nokia Qt SDK missing QT Mobility - messaging

    Quote Originally Posted by divanov View Post
    Which deadline?
    My mistake that I didn't set the context properly.

    Well I am talking about June 10, 2010 - http://www.callingallinnovators.com/

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

    Re: Nokia Qt SDK missing QT Mobility - messaging

    Well, Qt Mobility is partially missing in Maemo target of NokiaQtSDK. But you always have scratchbox as a working option.
    http://wiki.maemo.org/Documentation/...l_Installation

Similar Threads

  1. Nokia Qt SDK: Cross-platform development made easy
    By liuxg in forum [Archived] Qt General ( Qt技术)
    Replies: 0
    Last Post: 2010-04-28, 02:58
  2. automatic rotate screen on meamo
    By fily_love in forum Nokia N9
    Replies: 27
    Last Post: 2010-04-06, 08:37

Posting Permissions

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