×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Post Unble to execute program on device due to problem with mobility

    Here is my .pro file
    Code:
    #-------------------------------------------------
    #
    # Project created by QtCreator 2011-10-11T21:51:38
    #
    #-------------------------------------------------
    
    QT       += core gui
    
    TARGET = snippet
    TEMPLATE = app
    
    
    SOURCES += main.cpp\
            snippet.cpp
    
    HEADERS  += snippet.h
    
    FORMS    += snippet.ui
    
    CONFIG += mobility
    MOBILITY += messaging
    
    symbian {
        TARGET.UID3 = 0xe2921653
        TARGET.CAPABILITY += ReadUserData \
        WriteUserData \
        ReadDeviceData \
        WriteDeviceData
        TARGET.EPOCSTACKSIZE = 0x14000
        TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    }
    
    OTHER_FILES += \
        qtc_packaging/debian_harmattan/rules \
        qtc_packaging/debian_harmattan/README \
        qtc_packaging/debian_harmattan/copyright \
        qtc_packaging/debian_harmattan/control \
        qtc_packaging/debian_harmattan/compat \
        qtc_packaging/debian_harmattan/changelog
    snippet.h file
    Code:
    #ifndef SNIPPET_H
    #define SNIPPET_H
    #include<QPointer>
    #include<QMessageBox>
    #include<QMainWindow>
    #include<QPointer>
    #include<QtMessaging/QMessage>
    #include<QtMessaging/QMessageService>
    #include<QtMessaging/QMessageManager>
    #include<QtMessaging/QMessageId>
    namespace Ui {
        class snippet;
    }
    
    class snippet : public QMainWindow
    {
        Q_OBJECT
    
    public:
        explicit snippet(QWidget *parent = 0);
        ~snippet();
        void queryMessages();
    public slots:
        // Listens messagesFound() signal of QMessageService
        void messagesFound(const QMessageId &);
    private:
        QPointer<QMessageService> m_service; /* Error  here*/
        QPointer<QMessageManager> m_manager; /* Error  here*/
    private:
        Ui::snippet *ui;
    };
    
    #endif // SNIPPET_H
    snippet.cpp

    Code:
    #include "snippet.h"
    #include "ui_snippet.h"
    
    snippet::snippet(QWidget *parent) :
        QMainWindow(parent),
        ui(new Ui::snippet)
    {
        ui->setupUi(this);
        m_service = new QMessageService(this);
            QObject::connect(m_service,
                SIGNAL(messagesFound(const QMessageId&)),
                this,
                SLOT(messagesFound(const QMessageId&)));
    
    
            m_manager = new QMessageManager(this);
    
    
            queryMessages();
    }
    
    snippet::~snippet()
    {
        delete ui;
    }
    void snippet::queryMessages()
    {
    
        QMessageFilter queryFilter(QMessageFilter::byType(QMessage::Sms) &
            QMessageFilter::byStandardFolder(QMessage::InboxFolder));
    
        m_service->queryMessages(queryFilter);
        // NOTE: qtSnippets::messagesFound() is called if messages found
    }
    void snippet::messagesFound(const QMessageId &ids)
    {
        foreach(const QMessageId& id, ids)
            {
            // Get QMessage
            QMessage message = m_manager->message(id);
            // Get message string
            QString messageString = message.textContent();
            // Show to user
            QMessageBox::information(this,"Incoming SMS",messageString);
            }
    }
    I am unable to execute this program on E7.

    Errors while executing
    Code:
    C:\QtSDK\snippet\moc\..\snippet.h:7: error: QtMessaging/QMessage: No such file or directory
    
    :-1: error: Recipe compile failed with exit code 1.
    
    :-1: Running command: C:/QtSDK/Symbian/tools/gcce4/bin/arm-none-symbianelf-g++.exe -O2 -gdwarf-2 -fexceptions -Wall -Wno-unknown-pragmas -march=armv5te -mapcs -mthumb-interwork -c -mthumb -D__MARM_THUMB__ -mfloat-abi=soft -fvisibility-inlines-hidden -x c++ -Wno-ctor-dtor-privacy -D__MARM_INTERWORK__ -D__SUPPORT_CPP_EXCEPTIONS__ -D_UNICODE -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__ -D__EABI__ '-D__PRODUCT_INCLUDE__="C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/variant/Symbian_OS.hrh"' -DUNICODE -DQT_KEYPAD_NAVIGATION -DQT_SOFTKEYS_ENABLED -DQT_USE_MATH_H_FLOATS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D__MARM_ARMV5__ -D__GCCE_4__ -D__GCCE_4_4__ -DNDEBUG -D__GCCE__ -D__EXE__ -D__SYMBIAN_STDCPP_SUPPORT__ -include C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/gcce/gcce.h -IC:/QtSDK/snippet/moc -IC:/QtSDK/snippet -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include/QtCore -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include/QtGui -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include/QtMessaging -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/mkspecs/common/symbian -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis/sys -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/mw -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/mw -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/loc -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/mw/loc -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/loc/sc -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/mw/loc/sc -IC:/QtMobility -IC:/QtMessaging -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis/stlportv5 -IC:/QtSDK/snippet/moc -IC:/QtSDK/snippet/ui -IC:/QtSDK/snippet -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/variant -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis -MD -MF C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/build/snippet/c_f43fd69f2751e218/snippet_exe/armv5/urel/moc_snippet.o.d -o C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/build/snippet/c_f43fd69f2751e218/snippet_exe/armv5/urel/moc_snippet.o C:/QtSDK/snippet/moc/moc_snippet.cpp
    In file included from C:/QtSDK/snippet/moc/moc_snippet.cpp:10:
    C:/QtSDK/snippet/moc/../snippet.h:7: fatal error: QtMessaging/QMessage: No such file or directory
    compilation terminated.
    
    :-1: Running command: C:/QtSDK/Symbian/tools/gcce4/bin/arm-none-symbianelf-g++.exe -O2 -gdwarf-2 -fexceptions -Wall -Wno-unknown-pragmas -march=armv5te -mapcs -mthumb-interwork -c -mthumb -D__MARM_THUMB__ -mfloat-abi=soft -fvisibility-inlines-hidden -x c++ -Wno-ctor-dtor-privacy -D__MARM_INTERWORK__ -D__SUPPORT_CPP_EXCEPTIONS__ -D_UNICODE -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__ -D__EABI__ '-D__PRODUCT_INCLUDE__="C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/variant/Symbian_OS.hrh"' -DUNICODE -DQT_KEYPAD_NAVIGATION -DQT_SOFTKEYS_ENABLED -DQT_USE_MATH_H_FLOATS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D__MARM_ARMV5__ -D__GCCE_4__ -D__GCCE_4_4__ -DNDEBUG -D__GCCE__ -D__EXE__ -D__SYMBIAN_STDCPP_SUPPORT__ -include C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/gcce/gcce.h -IC:/QtSDK/snippet -IC:/QtSDK/snippet -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include/QtCore -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include/QtGui -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/include/QtMessaging -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/mkspecs/common/symbian -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis/sys -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/mw -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/mw -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/loc -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/mw/loc -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/loc/sc -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform/mw/loc/sc -IC:/QtMobility -IC:/QtMessaging -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis/stlportv5 -IC:/QtSDK/snippet/moc -IC:/QtSDK/snippet/ui -IC:/QtSDK/snippet -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/variant -IC:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/stdapis -MD -MF C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/build/snippet/c_f43fd69f2751e218/snippet_exe/armv5/urel/main.o.d -o C:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/build/snippet/c_f43fd69f2751e218/snippet_exe/armv5/urel/main.o C:/QtSDK/snippet/main.cpp
    In file included from C:/QtSDK/snippet/main.cpp:2:
    C:/QtSDK/snippet/snippet.h:7: fatal error: QtMessaging/QMessage: No such file or directory
    compilation terminated.
    Device : Nokia E7
    OS: Symbian Anna
    Qt SDK: 1.1.3
    Last edited by mind_freak; 2011-10-12 at 16:22.
    Regards
    Viral Parmar

  2. #2
    Registered User
    Join Date
    Sep 2011
    Location
    Moscow, Russian Federation
    Posts
    19

    Re: Unble to execute program on device due to problem with mobility

    In my Qt SDK 1.1.3 intallation there is only one directory with QMessage file. It is - "...\Qt\QtSDK\Symbian\SDKs\Symbian3Qt473\epoc32\include\mw". As you can see there is no QtMessaging directory there. Try to simplify your include directive from #include <QtMessaging/QMessage> to #include <QMessage>.

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Re: Unble to execute program on device due to problem with mobility

    hey fruj,
    thanks ..will try that and let you know...
    Regards
    Viral Parmar

  4. #4
    Registered User
    Join Date
    Jan 2012
    Posts
    2

    Re: Unble to execute program on device due to problem with mobility

    Same problem..i wonder if Qt mobility comes with Qt sdk or if i must download it after all this.. Besides you dint include the QTM namespace thing ,.i'm working on an academic project and really need to find out how to read and send an sms using my app..got struck here from a few hours though..any help will be well appreciated.Thanks in advance..

  5. #5
    Registered User
    Join Date
    Jan 2012
    Posts
    2

    Re: Unble to execute program on device due to problem with mobility

    Yayy!! Finally found the solution..we need to download the qt mobility pack available seperatly ,probably the older version that is available on our mobiles.. for me 1.0.0(2) and it works fine ,i have just tested and sent an sms with it..it did work..good luck

Similar Threads

  1. [moved] unable to execute program for security reasons
    By brewwindow in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 18
    Last Post: 2010-09-20, 14:40
  2. Replies: 4
    Last Post: 2008-10-17, 13:12
  3. How to Execute an External Program?
    By Xurde in forum Symbian
    Replies: 1
    Last Post: 2008-09-18, 03:32
  4. how to execute a program in background
    By liuxingyu_best in forum Symbian
    Replies: 8
    Last Post: 2008-09-02, 10:41
  5. How can I execute my program?
    By seera in forum Symbian
    Replies: 7
    Last Post: 2007-04-17, 10:25

Posting Permissions

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