×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    10

    Application runs on simulator, but get errors with symbian device

    When I test my application with qt creator simulator, it runs fine.

    But when I it to Symbian Device and press build, I will get these errors:

    :: warning: The Symbian toolchain does not handle special characters in a project path well.
    :: error: No rule to make target `moc\main.moc', needed by `all_source_deps'. Stop.
    /Some/Else/nokia_qt_programs/myapp/main.cpp:1311: error: main.moc: No such file or directory
    /Programs/NokiaQtSDK/Symbian/SDK/epoc32/include/e32std.h:13: In file included from /Programs/NokiaQtSDK/Symbian/SDK/epoc32/include/e32std.h:13,
    ... and these get continued...
    Could the reason be that its missing V:/ (drive name) at /Some/Else/nokia_qt_programs/myapp/main.cpp:1311: error: main.moc: No such file or directory
    and from the others? (like it should be V:/Programs/NokiaQtSDK/Symbian/SDK/... but its missing V:/ drive name)

    And if thats the problem, how it could be fixed?

    Edit: my app.pro file:

    TEMPLATE = app
    CONFIG += mobility
    MOBILITY += sensors
    DESTDIR = ..

    MOC_DIR = .moc
    OBJECTS_DIR = .obj

    QT += xml

    TARGET = myapp
    ICON = myappicon.svg

    include(some/something.pri)

    SOURCES += main.cpp \
    mapitem.cpp \
    tilelayeritem.cpp
    HEADERS += mapitem.h \
    tilelayeritem.h \
    mainpixmap.h \
    pushbutton.h
    RESOURCES += data/data.qrc \
    myapcc.qrc
    mac {
    LIBS += -lz
    }
    win32:INCLUDEPATH += $$(QTDIR)/src/3rdparty/zlib

    symbian {
    TARGET.UID3 = 0xA000E3F5
    include($$PWD/../../symbianpkgrules.pri)
    }
    Last edited by Herra; 2010-12-26 at 15:25. Reason: added myapp.pro file content

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

    Re: Application runs on simulator, but get errors with symbian device

    Before trying anything else, run qmake.

    And make sure that all your SDK components and your project are on the same drive and installed without any blank-containing path names.

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    10

    Re: Application runs on simulator, but get errors with symbian device

    Running qmake didnt change anything. My project is on same drive with NokiaQtSDK.

    In Qt Creator -> Tools -> Options -> Qt4 it looks in this image:


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

    Re: Application runs on simulator, but get errors with symbian device

    error: No rule to make target `moc\main.moc', needed by `all_source_deps'. Stop.
    /Some/Else/nokia_qt_programs/myapp/main.cpp:1311: error: main.moc: No such file or directory
    I think their are some unwanted changes happened in moc file or i think their is some problem with your enviroment variable....
    Regards
    Viral Parmar

  5. #5
    Registered User
    Join Date
    Oct 2010
    Posts
    10

    Re: Application runs on simulator, but get errors with symbian device

    Well, I didn't have installed Qt Source at Qt Creator but when I updated it, nothing happened. Should it be used from somewhere?
    Everything in for eg. main.cpp are fine, no errors/missing files when target is Simulator but when I change it to Symbian Device, it losts main.moc, and for eg. #include <QAccelerometer> and QTM_USE_NAMESPACE won't work.
    Please help me.

    EDIT:

    Well I got it fixed by playing around with errors.
    Now I just get 1500 warnings but still working.

    So If you know how to get rid of those:
    /Programs/NokiaQtSDK/Symbian/SDK/epoc32/include/e32std.h:13: In file included from /Programs/NokiaQtSDK/Symbian/SDK/epoc32/include/e32std.h:13,
    ...

    it would help
    Last edited by Herra; 2010-12-26 at 23:09. Reason: working with 1500 warnings

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

    Re: Application runs on simulator, but get errors with symbian device

    With that many versions of Qt installed it's amazing that Creator can figure out how to compile anything!

Similar Threads

  1. audiooutput example fails to start on symbian device but runs on emulator
    By davidvir in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-10-15, 00:29
  2. App runs in simulator but not on real device
    By jccorral in forum [Archived] Qt Mobility Project
    Replies: 11
    Last Post: 2010-08-15, 18:57
  3. Replies: 7
    Last Post: 2010-06-27, 17:52
  4. Replies: 3
    Last Post: 2007-03-14, 03: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
  •  
×