×

Discussion Board

Results 1 to 8 of 8

Thread: Create

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    93

    Create

    Hi! Can somebody help me?

    I have a problem with qt application for Symbian^1. When I try to build .sis package an error ":Automatic patching failed at D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\bin\createpackage.pl line 357." occures.

    What is the reason of this error?
    Thank's!

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

    Re: Create

    Please, provide your .pro file.

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

    Re: Create

    I had the same error when I tried to build sis package for dll without following option:
    Code:
    symbian {
    	TARGET.EPOCALLOWDLLDATA = 1
    }

  4. #4
    Registered User
    Join Date
    Oct 2011
    Posts
    93

    Re: Create

    My project isn't dll and it havn't dll. Unfortunately this option hasn't resolved a problem.
    My .pro file:

    Code:
    # Add files and directories to ship with the application 
    # by adapting the examples below.
    # file1.source = myfile
    # dir1.source = mydir
    # DEPLOYMENTFOLDERS = # file1 dir1
    
    symbian:TARGET.UID3 = 0xXXXXXXXX
    symbian:DEPLOYMENT.installer_header = 0xXXXXXXXX
    symbian:TARGET.EPOCALLOWDLLDATA = 1
    
    symbian:vendorinfo = \
    "%{\"IDCompany-EN\"}" \
    ":\"IDCompany\""
    
    symbian:my_deployment.pkg_prerules = symbian:vendorinfo
    symbian:DEPLOYMENT += my_deployment
    
    # QMAKE_LFLAGS.ARMCC += --rw-base 0x400000
    QMAKE_LFLAGS.GCCE += -Tdata 0x2A8FFFF
    
    # Smart Installer package's UID
    # This UID is from the protected range 
    # and therefore the package will fail to install if self-signed
    # By default qmake uses the unprotected range value if unprotected UID is defined for the application
    # and 0x2002CCCF value if protected UID is given to the application
    #symbian:DEPLOYMENT.installer_header = 0x2002CCCF
    
    # Allow network access on Symbian
    symbian:TARGET.CAPABILITY += NetworkServices
    
    # If your application uses the Qt Mobility libraries, uncomment
    # the following lines and add the respective components to the 
    # MOBILITY variable.
    # CONFIG += mobility
    # MOBILITY +=
    
    # CONFIG += mobility
    # MOBILITY += systeminfo \
    #             sensors
    
    QT      += declarative
    SOURCES += main.cpp \
        ListModel/listmodel.cpp \
        QmlApplicationManager/qmlapplicationmanager.cpp \
        QCustomStringList/qcustomstringlist.cpp \
        ButtonItem/buttonitem.cpp \
        QTextFileParser/qtextfileparser.cpp \
        TrueTextEditItem/truetextedititem.cpp \
        QCustomIntList/qcustomintlist.cpp \
        QAnswersStore/answersstore.cpp
    HEADERS += \
        ListModel/listmodel.h \
        QmlApplicationManager/qmlapplicationmanager.h \
        QCustomStringList/qcustomstringlist.h \
        ButtonItem/buttonitem.h \
        QTextFileParser/qtextfileparser.h \
        TrueTextEditItem/truetextedititem.h \
        CommonStaticConsts.h \
        QCustomIntList/qcustomintlist.h \
        QAnswersStore/answersstore.h
    
    # Please do not modify the following two lines. Required for deployment.
    include(deployment.pri)
    qtcAddDeployment()
    
    RESOURCES += \
        RoadRegIllustrations_4.qrc \
        RoadRegIllustrations_5.qrc \
        RoadRegIllustrations_3.qrc \
        RoadRegIllustrations_2.qrc \
        RoadRegIllustrations_1.qrc \
        RoadRegulations.qrc
    
    OTHER_FILES += \
        resources/qml/TestListView.qml \
        resources/qml/Panel.qml \
        resources/qml/MainWindowBackground.qml \
        resources/qml/ListViewQuestionsMenuControl.qml \
        resources/qml/ListViewMainMenuControl.qml \
        resources/qml/ImageButton.qml \
        resources/qml/Button.qml \
        resources/qml/TrueTextEdit.qml \
        resources/qml/CommonDeclare.js \
        resources/qml/ComponentManager.js \
        resources/text/help.txt \
        resources/text/examination.txt \
        resources/text/errors.txt \
        resources/text/about.txt \
        resources/qml/ListViewAdditionMenuControl.qml \
        resources/qml/QuestionEntryControl.qml \
        resources/text/questions.txt \
        resources/text/themes.txt \
        resources/text/quest_themes.txt \
        qtc_packaging/debian_fremantle/rules \
        qtc_packaging/debian_fremantle/README \
        qtc_packaging/debian_fremantle/copyright \
        qtc_packaging/debian_fremantle/control \
        qtc_packaging/debian_fremantle/compat \
        qtc_packaging/debian_fremantle/changelog \
        resources/qml/ExamQuestionEntryControl.qml \
        resources/qml/ErrorViewerQuestionEntryControl.qml \
        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 \
        qtc_packaging/debian_fremantle/rules \
        qtc_packaging/debian_fremantle/README \
        qtc_packaging/debian_fremantle/copyright \
        qtc_packaging/debian_fremantle/control \
        qtc_packaging/debian_fremantle/compat \
        qtc_packaging/debian_fremantle/changelog \
        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 \
        qtc_packaging/debian_fremantle/rules \
        qtc_packaging/debian_fremantle/README \
        qtc_packaging/debian_fremantle/copyright \
        qtc_packaging/debian_fremantle/control \
        qtc_packaging/debian_fremantle/compat \
        qtc_packaging/debian_fremantle/changelog \
        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 \
        qtc_packaging/debian_fremantle/rules \
        qtc_packaging/debian_fremantle/README \
        qtc_packaging/debian_fremantle/copyright \
        qtc_packaging/debian_fremantle/control \
        qtc_packaging/debian_fremantle/compat \
        qtc_packaging/debian_fremantle/changelog \
        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 \
        qtc_packaging/debian_fremantle/rules \
        qtc_packaging/debian_fremantle/README \
        qtc_packaging/debian_fremantle/copyright \
        qtc_packaging/debian_fremantle/control \
        qtc_packaging/debian_fremantle/compat \
        qtc_packaging/debian_fremantle/changelog
    
    #maemo5 {
     #   target.path = /opt/roadregulations/bin
     #   INSTALLS += target
    #}
    
    
    #contains(MEEGO_EDITION,harmattan) {
    #    icon.files = roadregulations.png
    #    icon.path = /usr/share/icons/hicolor/80x80/apps
    #    INSTALLS += icon
    #}
    Last edited by HellStranger; 2011-10-25 at 15:40.

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Create

    Check some more logs in compile output/ build issues.

  6. #6
    Registered User
    Join Date
    Oct 2011
    Posts
    93

    Re: Create

    This is a chunk of the building concole log:

    for not-signed .sis package with smartinstaller:


    make -f Makefile ok_unsigned_sis MAKEFILES=.make.cache
    make[1]: Entering directory `D:/KolosovD/Professional/Programs/SymbianAndMeeGo/RoadRegulations'
    createpackage -o roadregulations_template.pkg DEBUG-GCCE
    Error : Cannot find file : d:/Professional/NokiaQtSDK/Symbian/SDKs/Symbian1Qt473/epoc32/release/gcce/udeb/roadregulations.exe

    (23) : error: file I/O fault.
    make[1]: Leaving directory `D:/KolosovD/Professional/Programs/SymbianAndMeeGo/RoadRegulations'
    ERROR: makesis failed at D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\bin\createpackage.pl line 363.
    make[1]: *** [ok_unsigned_sis] Error 1
    D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\epoc32\tools\make.exe: *** [unsigned_sis] Error 2
    Process «D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\epoc32\tools\make.exe» has exited with code 2.
    Error while building project MYAPP (target: Symbian Device)
    When executing build step «Create SIS package»


    and for self-signed .sis package with smartinstaller:


    Patching package file and relevant binaries...
    make[1]: Leaving directory `D:/KolosovD/Professional/Programs/SymbianAndMeeGo/RoadRegulations'
    d:/Professional/NokiaQtSDK/Symbian/SDKs/Symbian1Qt473/epoc32/release/gcce/udeb/roadregulations.exe cannot be copied for patching. at D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\bin\patch_capabilities.pl line 229, <PKG> line 23.
    ERROR: Automatic patching failed at D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\bin\createpackage.pl line 357.
    make[1]: *** [ok_sis] Error 2
    D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\epoc32\tools\make.exe: *** [sis] Error 2
    Process «D:\Professional\NokiaQtSDK\Symbian\SDKs\Symbian1Qt473\epoc32\tools\make.exe» has exited with code 2.
    Error while building project MYAPP (target: Symbian Device)
    When executing build step «Create SIS package»
    Last edited by HellStranger; 2011-10-26 at 08:53.

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Create

    Device must be connected at a time of creating .sis file. Have you connected device before creating .sis file?

  8. #8
    Registered User
    Join Date
    Oct 2011
    Posts
    93

    Re: Create

    Yes! Of course!
    I have resolved problem by now! I have removed all resources files .qrc and then have been adding by one .qrc file and have been rebuilding application for each added file. As a result the app has been built.

Similar Threads

  1. Need to create
    By jameskittu in forum Symbian
    Replies: 8
    Last Post: 2010-05-04, 18:40
  2. How to create my own Cba?
    By shrawan0786 in forum Symbian
    Replies: 6
    Last Post: 2009-11-09, 08:53
  3. how to create a new cba ??
    By noussaENSI in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-05-14, 10:39
  4. Steps to create SIS. How create .pkg file for petran?
    By BobbyFletcher in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-21, 18:26
  5. developer suite: "create application package" (create/recreate) woes
    By vizionari in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2003-03-23, 06:15

Posting Permissions

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