×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    8

    How to write pkg file?

    Hi,i'm a new in carbide.c++.

    I have a S60 GUI Application Project and i want to make a .sisx file on my s60 sdk emulator.

    pkg file :

    ; Installation file for Subway application
    ;
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ;
    ;Language - standard language definitions
    &EN

    ; standard SIS file header
    #{"asd"},(0xEAED9512),1,0,0

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\asd_0xEAED9512.exe" -"!:\sys\bin\asd_0xEAED9512.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\asd_0xEAED9512.rsc" -"!:\resource\apps\asd_0xEAED9512.rsc"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\asd_0xEAED9512_reg.rsc" -"!:\private\EAED9512\import\apps\asd_0xEAED9512_reg.rsc"
    "$(EPOCROOT)Epoc32\release\winscw\udeb\z\resource\apps\asd_0xEAED9512.mif" -"!:\resource\apps\asd_0xEAED9512.mif"
    "..\help\asd_0xEAED9512.hlp" -"!:\resource\help\asd_0xEAED9512.hlp"

    ; Add any installation notes if applicable
    ;"Subway.txt" -"!:\private\EAED9512\Subway.txt"

    ;required for application to be covered by backup/restore facility
    "..\sis\backup_registration.xml" -"!:\private\EAED9512\backup_registration.xml"

    /////////////////////////////////////////////////////////////////////
    bld.inf


    PRJ_PLATFORMS
    WINSCW ARMV5 GCCE

    PRJ_MMPFILES
    gnumakefile icons_scalable_dc.mk
    gnumakefile ..\help\build_help.mk
    Subway.mmp

    PRJ_EXPORTS
    asd.xml \epoc32\RELEASE\WINSCW\UDEB\Z\private\EAED9512\asd.xml
    ..\Sound\click.wav \epoc32\RELEASE\WINSCW\UDEB\Z\private\EAED9512\click.wav
    ..\Sound\result.wav \epoc32\RELEASE\WINSCW\UDEB\Z\private\EAED9512\result.wav
    ..\Sound\double.wav \epoc32\RELEASE\WINSCW\UDEB\Z\private\EAED9512\double.wav

    ///////////////////////////////////////////////////////////////////////

    AppView.cpp


    _LIT(KMBMFileName,"\\resource\\apps\\Bitmap.mbm");
    _LIT(KDoubleClickSoundFile, "Z:\\private\\EAED9512\\double.wav");
    _LIT(KClickSoundFile, "Z:\\private\\EAED9512\\click.wav");
    _LIT(KResultSoundFile, "Z:\\private\\EAED9512\\result.wav");

    ///////////////////////////////////////////////////////////////////////
    How to write pkg file on emulator and device?
    Thanks a lot!

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How to write pkg file?

    Hi,

    I think you do not need to write package file for simulator but if there some reguriment the procedure is same but I am not aware about signing in 3rd sdk, it might will not requried for simulator. I have tried a long back on 2nd sdk.

    for device you can check helloworld example, that would be good starting point

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    8

    Re: How to write pkg file?

    Quote Originally Posted by kkrish View Post
    Hi,

    I think you do not need to write package file for simulator but if there some reguriment the procedure is same but I am not aware about signing in 3rd sdk, it might will not requried for simulator. I have tried a long back on 2nd sdk.

    for device you can check helloworld example, that would be good starting point
    Thanks a lot for your reply!!
    Is there something wrong with file path on appview.CPP?
    Last edited by shaoNokia; 2009-06-19 at 05:40.

  4. #4
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How to write pkg file?

    AppView.cpp

    _LIT(KMBMFileName,"\\resource\\apps\\Bitmap.mbm");
    _LIT(KDoubleClickSoundFile, "Z:\\private\\EAED9512\\double.wav");
    _LIT(KClickSoundFile, "Z:\\private\\EAED9512\\click.wav");
    _LIT(KResultSoundFile, "Z:\\private\\EAED9512\\result.wav");
    I have doubt, to access private folder until you do not have all-file capability.

  5. #5
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How to write pkg file?

    he is using the private folder of his own application, see the UID....

    but the problem is "Z" drive... it will not be Z drive but the drive on which your applicaiton is installed...
    you can get the drive by the function CompleteAppWithPath...
    Amit Kankani
    Nokia Developer Champion

Similar Threads

  1. [split] mbm build error
    By mando222 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2009-03-29, 12:32
  2. Error : Cannot find file : for DUMMIES
    By PACALA_BA in forum Symbian
    Replies: 7
    Last Post: 2008-07-06, 13:18
  3. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  4. Replies: 1
    Last Post: 2005-05-26, 14:22

Posting Permissions

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