×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Sep 2010
    Location
    India
    Posts
    75

    Fail to Build on target device

    ok, i'm a newbie in symbian.
    I'm trying to install my app on my target(N97).

    I've succesfully build the app and able to install it on the phone.

    The demo app is pretty simple and just has a grid implementation. It runs well on emulator. It doesnt even have nay capabilities other than Readuserdata.

    But after installing the app on phone,when i try to launch the app,it crashses before startup.


    I wanted to know, wht r the things I can check that might differ in emulator nd target device.And can i have a log on device? how do i debug it?

    plz help.....This one is a surprise i got...wth evrything running well on emulator y cant i launch it on target.

    your suggestions and help is highly welcome.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,492

    Re: Fail to Build on target device

    Quote Originally Posted by Megh View Post
    ok, i'm a newbie in symbian.
    I'm trying to install my app on my target(N97).

    I've succesfully build the app and able to install it on the phone.

    The demo app is pretty simple and just has a grid implementation. It runs well on emulator. It doesnt even have nay capabilities other than Readuserdata.

    But after installing the app on phone,when i try to launch the app,it crashses before startup.


    I wanted to know, wht r the things I can check that might differ in emulator nd target device.And can i have a log on device? how do i debug it?

    plz help.....This one is a surprise i got...wth evrything running well on emulator y cant i launch it on target.

    your suggestions and help is highly welcome.
    You have the option of on device debugging which is much improved from what is in the article http://wiki.forum.nokia.com/index.ph...vice_app_debug if you try to search you might find more newer relevant screencast/article.

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Fail to Build on target device

    Also checking the panic could give some ideas on what could be going wrong in there: http://wiki.forum.nokia.com/index.php/Panic

  4. #4
    Regular Contributor
    Join Date
    Sep 2010
    Location
    India
    Posts
    75

    Re: Fail to Build on target device

    Thnx for ur help...

    I cud finally zoom down to the line from where d app crashes..

    AknIconUtils::CreateIconLC(AppIcon,AppIconMsk,KMifFile,j,k);

    where KMifFile="\\resource\\apps\\Demo.mbm")

    Mostly, it is unable to find d KMifFile....but i cant figure out why...

    posting my package file if can give ny clue:

    Code:
    ;Files to install
    
    "\S60\devices\S60_5th_Edition_SDK_v1.0\Epoc32\release\gcce\urel\Demo_0xEA3F66D2.exe"		-"!:\sys\bin\Demo_0xEA3F66D2.exe"
    "\S60\devices\S60_5th_Edition_SDK_v1.0\Epoc32\data\z\resource\apps\Demo_0xEA3F66D2.rsc"		-"!:\resource\apps\Demo_0xEA3F66D2.rsc"
    "\S60\devices\S60_5th_Edition_SDK_v1.0\Epoc32\data\z\private\10003a3f\apps\Demo_0xEA3F66D2_reg.rsc"	-"!:\private\10003a3f\import\apps\Demo_0xEA3F66D2_reg.rsc"
    "\S60\devices\S60_5th_Edition_SDK_v1.0\Epoc32\data\z\resource\apps\Demo_0xEA3F66D2.mif" -"!:\resource\apps\Demo_0xEA3F66D2.mif"
    pLZ SUGGEST....i'm clueless y is this happening..

  5. #5
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Fail to Build on target device

    Hi,

    install an ErrRd sis file on your device and then launch your application.
    You will see the error reported for not lauching your application process.
    http://wiki.forum.nokia.com/index.ph...ded_panic_code

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: Fail to Build on target device

    First of all you are installing
    "\S60\devices\S60_5th_Edition_SDK_v1.0\Epoc32\data\z\resource\apps\Demo_0xEA3F66D2.mif" -"!:\resource\apps\Demo_0xEA3F66D2.mif"
    so it shows some kind of absolute non-understanding if you really expect \\resource\\apps\\Demo.mbm to be there.
    The second thing is that providing \\something will not necessarily find out where your application installed.
    You can detect the installation drive in run-time
    Code:
    _LIT(KMifFile,"\\resource\\apps\\Demo_0xEA3F66D2.mif");
    TFileName filename=KMifFile;
    filename.Insert(0,RProcess().FileName().Left(2));
    ...
    AknIconUtils::CreateIconLC(AppIcon,AppIconMsk,filename,j,k);
    (where the Demo.mbm is also fixed).

  7. #7
    Regular Contributor
    Join Date
    Sep 2010
    Location
    India
    Posts
    75

    Re: Fail to Build on target device

    @Wizard_hu
    Ooopsss...my bad...

    Stupid of me,there was some issue in mif file so i changed it KMifFile to mbm file and missed to change it in the pkg file also.

    Thnx for a lot help...

    @mateen Maldar...thnx a ton for d Erd tool....atleast i got to see d panic...

    Its finally up for d time being....

Similar Threads

  1. Replies: 3
    Last Post: 2010-12-31, 16:35
  2. Replies: 1
    Last Post: 2004-11-05, 09:26
  3. how to build app with bitmap to target device
    By windalfred in forum Symbian
    Replies: 8
    Last Post: 2003-08-13, 08:33
  4. how to build app with bitmap to target device
    By windalfred in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-08-13, 08:15
  5. Build error when trying to build for real target
    By aehrath in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-07-04, 16:10

Posting Permissions

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