Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor vinp's Avatar
    Join Date
    Aug 2010
    Posts
    347
    Hello list,
    Here is the LOCALISABLE_APP_INFO structure generated by Carbide C++ V2.3 for my project:
    RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
    {
    short_caption = qtn_caption_string;
    caption_and_icon =
    CAPTION_AND_ICON_INFO
    {
    caption = qtn_caption_string;

    number_of_icons = 1;
    icon_file = "\\resource\\apps\\CardGameGUIAppVer2_0xEC32B5FC.mif";
    };
    }
    Assuming that the .mif file is related to my app icon, I commented the line out and created another icon_file statement for my .mbm file.
    But when I compile the project, I get an RCOMP error for the .rsg file included in my _reg.rss:
    #include <CardGameGUIAppVer2_0xEC32B5FC.rsg>
    The error says that the file could not be found.
    But if I reinstate the original icon_file line, this error goes away.
    Can any of the members explain this?
    TIA
    Vin

  2. #2
    Registered User mateen_maldar's Avatar
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,063
    hi,

    can you paste the console output of ur project.
    and it seems problem due to error in your .rss file syntax and grammar.

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

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    If the 2 in "AppVer2" is a new thing, do not forget updating your .mk file.

  4. #4
    Regular Contributor vinp's Avatar
    Join Date
    Aug 2010
    Posts
    347
    Quote Originally Posted by mateen_maldar View Post
    hi,

    can you paste the console output of ur project.
    and it seems problem due to error in your .rss file syntax and grammar.

    Regards,
    Mateen Maldar
    Here is change that I make to .rss file in LOCALISABLE_APP_INFO:
    //icon_file = "\\resource\\apps\\CardGameGUIAppVer2_0xEC32B5FC.mif";
    icon_file = "\\resource\\apps\\CardGame.mbm"

    And here is the console output with the errors. If rever the above change, the errors disapear. I have only copied the errors because of the limitation about the number of characters that are permissible in the post.

    C:\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\winc\urel\cshlpwtr "-ifC:\Symbian\Carbide\workspace\CardGameGUIAppVer2\HELP\temp\CardGameGUIAppVer2_0xEC32B5FC.cshlp.xml" "-ofC:\Symbian\Carbide\workspace\CardGameGUIAppVer2\HELP\CardGameGUIAppVer2_0xEC32B5FC.hlp"

    Extracting contexts into a cpp header file C:\Symbian\Carbide\workspace\CardGameGUIAppVer2\HELP\CardGameGUIAppVer2_0xEC32B5FC.hlp.hrh
    A subdirectory or file \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\WINSCW\c\resource\help already exists.
    make[1]: *** [CardGameGUIAppVer2_0xEC32B5FC.hlp] Error 1
    make: *** [MAKEFILEBUILD_HELP] Error 2


    MifConv version 1.11 build (50, SVG stand-alone).
    Checking: ..\gfx\qgn_menu_CardGameGUIAppVer2.svg
    Choosing...
    Used from: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\tools\SVGTBINENCODE.exe.
    Convert files...
    .
    Loading mif icons...
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s5ms.tmp\.._gfx_qgn_menu_CardGameGUIAppVer2.svgb
    Writing mif: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\WINSCW\UDEB\Z\resource\apps\CardGameGUIAppVer2_0xEC32B5FC.mif
    make -s -C \Symbian\Carbide\workspace\CardGameGUIAppVer2\HELP -f "BUILD_HELP.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\BUILD_HELP\WINSCW TO_BLDINF=..\..\..\..\..\Symbian\Carbide\workspace\CardGameGUIAppVer2\group PLATFORM=WINSCW CFG=UDEB RESOURCE
    make -s -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer2\group\CARDGAMEGUIAPPVER2\WINSCW\CARDGAMEGUIAPPVER2.WINSCW" RESOURCEUDEB
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\CardGame.mbg
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\CardGameGUI.mbg
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\CardGameGUIcons.mbg
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\Cards.mbg
    185) : syntax error
    189) : syntax error
    RCOMP failed with code 1

    * RCOMP failed - deleting output files
    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\data\z\resource\apps\CardGameGUIAppVer2_0xEC32B5FC.rsc] Error 1
    make: *** [RESOURCECARDGAMEGUIAPPVER2] Error 2

    Total Time: 27 sec

    C:\Symbian\Carbide\workspace\CardGameGUIAppVer2\data\CardGameGUIAppVer2_reg.rss:13: CardGameGUIAppVer2_0xEC32B5FC.rsg: No such file or directory
    CardGameGUIAppVer2Application.cpp
    * cpp failed
    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\data\z\private\10003a3f\apps\CardGameGUIAppVer2_0xEC32B5FC_reg.rsc] Error 2make[1]: *** Waiting for unfinished jobs....
    make[1]: *** Waiting for unfinished jobs....
    185) : syntax error
    189) : syntax error
    RCOMP failed with code 1

    * RCOMP failed - deleting output files
    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\data\z\resource\apps\CardGameGUIAppVer2_0xEC32B5FC.rsc] Error 1
    make: *** [TARGETCARDGAMEGUIAPPVER2] Error 2

    Total Time: 32 sec


    ***Errors were detected in build. See the Problems or Console view for details.

    Total Time: 33 sec

  5. #5
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    Did you put ";" after this statement
    icon_file = "\\resource\\apps\\CardGame.mbm"

    as it is showing syntax error.
    Regards,
    Shafali

  6. #6
    Registered User mateen_maldar's Avatar
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,063
    hi,,

    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\CardGame.mbg
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\CardGameGUI.mbg
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\CardGameGUIcons.mbg
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\Cards.mbg
    185) : syntax error
    189) : syntax errorRCOMP failed with code 1

    * RCOMP failed - deleting output files


    The rcomp failures are due to .rss or _reg.rss file. Can you check your .rss file at line 185 and 189.
    better paste that portion of code ...

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

  7. #7
    Regular Contributor vinp's Avatar
    Join Date
    Aug 2010
    Posts
    347
    Quote Originally Posted by shafali gupta View Post
    Did you put ";" after this statement
    icon_file = "\\resource\\apps\\CardGame.mbm"

    as it is showing syntax error.
    The issue was the missing semicolon. I added the semicolon, and the build goes fine.
    However, the icon image that I see on the device is not the same as what I have in my .bmp file.
    Is there a particular format that is required for the image file to be used as an icon?

    thanks
    Vin

  8. #8
    Regular Contributor vinp's Avatar
    Join Date
    Aug 2010
    Posts
    347
    Just to add to my previous post.
    I use a 34x24 24 bit bitmap for my icon.
    thanks
    Vin

  9. #9
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    For the zie of application icon refer to the article below:

    http://wiki.forum.nokia.com/index.ph...plication_icon
    Regards,
    Shafali

Similar Threads

  1. Dynamic MIF possible
    By ManuMies in forum Symbian C++
    Replies: 2
    Last Post: 2008-10-14, 15:16
  2. How can I know the end of mif ?
    By hole1217 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2008-05-13, 06:16
  3. mif problem
    By tal.shahar@mobile-mx.com in forum Symbian C++
    Replies: 1
    Last Post: 2007-06-21, 10:33
  4. .mif and bitmap
    By kenwc2 in forum Symbian C++
    Replies: 0
    Last Post: 2007-03-21, 07:35
  5. MIF files
    By leon_matcovici in forum Symbian C++
    Replies: 3
    Last Post: 2006-08-03, 07:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved