[SOLVED]Custom application build for Symbian error to solve.



  • Hello,
    I am trying to build end deploy to Nokia C700 device qml compass application:
    "git":https://gitorious.org/qmlcompass

    when I build it with Qt 4.7.3 for Symbian^3 I get next errors:

    ...

    D:/DEVELOPING/TOOLBAR/Beeper/qmlcompass/compass.cpp: In member function 'virtual bool Compass::filter(QtMobility::QCompassReading*)':
    D:/DEVELOPING/TOOLBAR/Beeper/qmlcompass/compass.cpp:28: warning: unused variable 'diff'

    target : epoc32\release\armv5\urel\qmlcompassplugin.exe [arm.v5.urel.gcce4_4_1]
    d:/qt/qtsdk/symbian/tools/gcce4/bin/../lib/gcc/arm-none-symbianelf/4.4.1/../../../../arm-none-symbianelf/bin/ld.exe: warning: D:/Qt/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/release/armv5/urel/usrt3_1.lib(ucppinit.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
    D:/Qt/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/release/armv5/urel/qtmain.lib(qts60main_mcrt0.o): In function CallMain(int, char**, char**)': S:\sf\mw\qt\src\s60main\qts60main_mcrt0.cpp:(.emb_text+0x0): undefined reference tomain'
    d:/qt/qtsdk/symbian/tools/gcce4/bin/../lib/gcc/arm-none-symbianelf/4.4.1/../../../../arm-none-symbianelf/bin/ld.exe: D:/Qt/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/release/armv5/urel/qmlcompassplugin.exe.sym: hidden symbol `main' isn't defined
    d:/qt/qtsdk/symbian/tools/gcce4/bin/../lib/gcc/arm-none-symbianelf/4.4.1/../../../../arm-none-symbianelf/bin/ld.exe: final link failed: Nonrepresentable section on output
    collect2: ld returned 1 exit status

    sbs : warnings: 4
    sbs : errors: 2

    built 'arm.v5.urel.gcce4_4_1'

    Run time 54 seconds

    sbs: build log in D:\Qt\QtSDK\Symbian\SDKs\Symbian3Qt473\epoc32\build\Makefile.2012-01-21-15-49-45.12-4544.log

    FAILED linkandpostlink for arm.v5.urel.gcce4_4_1: epoc32\release\armv5\urel\qmlcompassplugin.exe
    mmp: qmlcompassplugin_exe.mmp
    mingw32-make[1]: *** [D:/Qt/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/release/armv5/urel/qmlcompassplugin.exe] Error 1
    sbs: error: The make-engine exited with errors.
    make.exe: *** [release-gcce] Error 1
    make.exe: Leaving directory `D:/DEVELOPING/TOOLBAR/Beeper/qmlcompass'
    15:50:39: The process "D:\Qt\QtSDK\Symbian\SDKs\Symbian3Qt473\epoc32\tools\make.exe" exited with code 2.
    Error while building project qmlcompass (target: Symbian Device)
    When executing build step 'Make'

    project file:
    @

    TEMPLATE = app
    CONFIG += qt plugin
    QT += declarative

    CONFIG += mobility
    CONFIG += debug
    MOBILITY += sensors

    DESTDIR = com/nokia/qmlcompass
    TARGET = qmlcompassplugin

    SOURCES += compass.cpp
    register.cpp

    HEADERS += compass.h
    register.h

    qdeclarativesources.files +=
    com/nokia/qmlcompass/qmldir
    com/nokia/qmlcompass/Compass.qml
    com/nokia/qmlcompass/Compass.png

    INSTALLS += qdeclarativesources target

    symbian:TARGET.UID3 = 0xEB1C54E8

    symbian {

    TARGET.EPOCALLOWDLLDATA = 1
    pluginstub.sources = $${TARGET}.dll
    pluginstub.path = /resource/qt/imports/$$DESTDIR
    resources.path = /resource/qt/imports/$$DESTDIR
    resources.sources += $${qdeclarativesources.files}
    DEPLOYMENT += pluginstub resources
    

    }
    @

    Does anybody know why such an error and how to resolve ?

    Thanks in advance.
    ( solved , that was a custom plugin and not an application ).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.