×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    syntax error in .mbg file

    Hi,

    I get a syntax error in the generated .mbg file. Here is the complete log (errors in bold type):


    ***Building project "CardGameGUIAppVer1" for configuration "Emulator Debug (WINSCW) [S60_5th_Edition_SDK_v1.0]"

    ***Printing environment variables modified from default:
    MWSYM2LIBRARIES=C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\Win32-x86 Support\Libraries\Win32 SDK;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs
    MWCSYM2INCLUDES=C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C\MSL_X86;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C++\MSL_Common\Include;+C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\Win32-x86 Support\Headers\Win32 SDK;
    PATH=C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Tools\Command_Line_Tools;C:\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\tools;C:\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\gcc\bin;C:/Program Files/Nokia/Carbide.c++ v2.3/jre/bin/client;C:/Program Files/Nokia/Carbide.c++ v2.3/jre/bin;C:\Program Files\CSL Arm Toolchain\bin;C:\Program Files\Common Files\Symbian\Tools;C:\Perl\bin\;C:\Perl\bin\;C:\Program Files\PC Connectivity Solution\;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Symbian\UIQ3.1SDK\epoc32\tools\nokia_compiler\Symbian_Tools\Command_Line_Tools
    =::=::\
    MWCINCLUDES=C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C\MSL_X86;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_C++\MSL_Common\Include;+C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Support\Win32-x86 Support\Headers\Win32 SDK;
    EPOCROOT=\S60\devices\S60_5th_Edition_SDK_v1.0\
    NO_DEPENDENCIES=-nd
    MAKE=make -j 4

    Working Directory: C:/Symbian/Carbide/workspace/CardGameGUIAppVer1/group

    ***Makefile structures up to date. Skipping 'bldmake bldfiles'

    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\CardGameGUIAppVer1\group\ export
    make -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do

    Total Time: 0 sec

    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\CardGameGUIAppVer1\group\ library winscw
    make -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\WINSCW.make" LIBRARY VERBOSE=-s
    make -s -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\CARDGAMEGUIAPPVER1\WINSCW\CARDGAMEGUIAPPVER1.WINSCW" LIBRARY

    Total Time: 0 sec

    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\CardGameGUIAppVer1\group\ resource winscw udeb
    make -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
    make -s -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\CARDGAMEGUIAPPVER1\WINSCW\CARDGAMEGUIAPPVER1.WINSCW" RESOURCEUDEB
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\CardGameGUI.mbg
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\Cards.mbg
    18) : 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\CardGameGUIAppVer1_reg.rsc] Error 1
    make: *** [RESOURCECARDGAMEGUIAPPVER1] Error 2
    Total Time: 1 sec

    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\CardGameGUIAppVer1\group\ target winscw udeb
    make -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
    make -j 4 -s -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\CARDGAMEGUIAPPVER1\WINSCW\CARDGAMEGUIAPPVER1.WINSCW" UDEB
    Creating \s60\devices\s60_5th_edition_sdk_v1.0\epoc32\build\symbian\carbide\workspace\cardgameguiappver1\group\cardgameguiappver1\winscw\udeb
    18) : syntax error
    RCOMP failed with code 1

    18) : syntax error
    RCOMP failed with code 1

    * RCOMP failed - deleting output files
    * RCOMP failed - deleting output files
    18) : syntax error
    RCOMP failed with code 1
    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\data\z\resource\CardGameGUIAppVer1_reg.rsc] Error 1
    make[1]: *** Waiting for unfinished jobs....

    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\data\z\resource\CardGameGUIAppVer1_loc.r23] Error 1
    * RCOMP failed - deleting output files
    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\data\z\resource\CardGameGUIAppVer1_loc.rsc] Error 1
    make: *** [TARGETCARDGAMEGUIAPPVER1] Error 2
    18) : syntax error
    RCOMP failed with code 1

    * RCOMP failed - deleting output files

    Total Time: 3 sec

    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\CardGameGUIAppVer1\group\ final winscw udeb
    make -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s

    Total Time: 3 sec

    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\CardGameGUIAppVer1\group\ test export
    make -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\CardGameGUIAppVer1\group\EXPORTtest.make" EXPORT VERBOSE=-s
    Nothing to do

    Total Time: 4 sec

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

    Total Time: 4 sec

    Here is my .mmp file and I have made sure that all the .bmp files are in place inside the SOURCEPTATH:
    /*
    ============================================================================
    Name : CardGameGUIAppVer1.mmp
    Author :
    Copyright : Your copyright notice
    Description : This is the project specification file for CardGameGUIAppVer1.
    ============================================================================
    */

    TARGET CardGameGUIAppVer1.exe
    TARGETTYPE exe
    UID2 KUidApp
    UID3 0xE0000001
    SYSTEMINCLUDE \epoc32\include
    SYSTEMINCLUDE \epoc32\include\libc
    //SYSTEMRESOURCE \epoc32\data\z\system\data
    USERINCLUDE ../inc
    SOURCEPATH ../src
    SOURCE BasicGUIController.cpp
    SOURCE BasicGUIView.cpp
    SOURCE cards.cpp
    SOURCE main.cpp
    SOURCE BasicGUIApplication.cpp
    SOURCE BasicGUIDocument.cpp
    SOURCE BasicGUIApplicationFactory.cpp
    SOURCEPATH ../data
    START RESOURCE CardGameGUIAppVer1_reg.rss
    TARGETPATH \resource
    HEADER
    END
    START RESOURCE CardGameGUIAppVer1.rss
    TARGETPATH \resource
    HEADER
    END
    START RESOURCE CardGameGUIAppVer1_loc.rss
    TARGETPATH \resource
    lang sc 23
    END
    START BITMAP CardGameGUI.mbm
    TARGETPATH \resources\apps
    HEADER
    SOURCEPATH ../gfx
    SOURCE c16 context_pane_icon.bmp
    SOURCE 1 context_pane_icon_mask.bmp
    SOURCE c16 list_icon.bmp
    SOURCE 1 list_icon_mask.bmp
    END
    START BITMAP Cards.mbm
    TARGETPATH \resources\apps
    HEADER
    SOURCEPATH ../gfx
    SOURCE c16 ace_c.bmp
    SOURCE c16 ace_d.bmp
    SOURCE c16 ace_h.bmp
    SOURCE c16 ace_s.bmp
    SOURCE c16 back.bmp
    SOURCE c16 eight_c.bmp
    SOURCE c16 eight_d.bmp
    SOURCE c16 eight_h.bmp
    SOURCE c16 eight_s.bmp
    SOURCE c16 five_c.bmp
    SOURCE c16 five_d.bmp
    SOURCE c16 five_h.bmp
    SOURCE c16 five_s.bmp
    SOURCE c16 four_c.bmp
    SOURCE c16 four_d.bmp
    SOURCE c16 four_h.bmp
    SOURCE c16 four_s.bmp
    SOURCE c16 jack_c.bmp
    SOURCE c16 jack_d.bmp
    SOURCE c16 jack_h.bmp
    SOURCE c16 jack_s.bmp
    SOURCE c16 king_c.bmp
    SOURCE c16 king_d.bmp
    SOURCE c16 king_h.bmp
    SOURCE c16 king_s.bmp
    SOURCE c16 nine_c.bmp
    SOURCE c16 nine_d.bmp
    SOURCE c16 nine_h.bmp
    SOURCE c16 nine_s.bmp
    SOURCE c16 queen_c.bmp
    SOURCE c16 queen_d.bmp
    SOURCE c16 queen_h.bmp
    SOURCE c16 queen_s.bmp
    SOURCE c16 seven_c.bmp
    SOURCE c16 seven_d.bmp
    SOURCE c16 seven_h.bmp
    SOURCE c16 seven_s.bmp
    SOURCE c16 six_c.bmp
    SOURCE c16 six_d.bmp
    SOURCE c16 six_h.bmp
    SOURCE c16 six_s.bmp
    SOURCE c16 ten_c.bmp
    SOURCE c16 ten_d.bmp
    SOURCE c16 ten_h.bmp
    SOURCE c16 ten_s.bmp
    SOURCE c16 three_c.bmp
    SOURCE c16 three_d.bmp
    SOURCE c16 three_h.bmp
    SOURCE c16 three_s.bmp
    SOURCE c16 two_c.bmp
    SOURCE c16 two_d.bmp
    SOURCE c16 two_h.bmp
    SOURCE c16 two_s.bmp
    END

    LIBRARY euser.lib
    LIBRARY fbscli.lib
    LIBRARY eikcore.lib /* cEikAppUi, CAknAppUi */
    LIBRARY avkon.lib
    LIBRARY eiksrv.lib
    LIBRARY eikcoctl.lib /* CAknAppUi */
    LIBRARY cone.lib /* CCoeControl */
    LIBRARY apparc.lib /* CApaApplication */

    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE_UDEBONLY
    #endif

    I am at a loss to figure out the reason for this error. I would really appreciate help from the panel.

    TIA
    Vin

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,748

    Re: syntax error in .mbg file

    RCOMP is not involved in creating the .mbm/.mbg files, that first occurrence is incidental. If you read the messages further, reference to '18' re-appears often.
    Actually it is the 17th line in your .mmp where \-s suddenly become /-s, but if there is an empty line at the beginning, that would be the 18th.
    Otherwise check the 18th line of the various other files, especially the ones related to resources (.rss, .rls, .loc, etc.)

  3. #3
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Re: syntax error in .mbg file

    Quote Originally Posted by wizard_hu_ View Post
    RCOMP is not involved in creating the .mbm/.mbg files, that first occurrence is incidental. If you read the messages further, reference to '18' re-appears often.
    Actually it is the 17th line in your .mmp where \-s suddenly become /-s, but if there is an empty line at the beginning, that would be the 18th.
    Otherwise check the 18th line of the various other files, especially the ones related to resources (.rss, .rls, .loc, etc.)
    Hi,
    I copied the .mmp file to vi text editor and this is the 18th line in the file:

    SOURCE BasicGUIView.cpp
    I checked all the other resource files and all of them have less than 18 lines.

    Could you please highlight the particular line that you were referring to in your reply?

    thanks
    Vin

  4. #4
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Re: syntax error in .mbg file

    Sorry, there is one other resource file which is the .rss file and the 18th line in the file as shown in vi editor is as follows:
    titles =

    Here is the complete file in case you might want to have a look


    #include<avkon.rsg>
    #include<avkon.rh>
    #include<avkon.hrh>
    #include<eikon.rh>
    #include "CardGameGUIAppVer1.hrh"
    #include "CardGameGUIAppVer1.rls"
    NAME CGUI
    RESOURCE RSS_SIGNATURE {}
    RESOURCE TBUF ()
    RESOURCE EIK_APP_INFO
    {
    menubar = cardgame_menu;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    status_pane = cardgame_status_pane;
    }
    RESOURCE MENU_BAR cardgame_menu
    {
    titles =
    {
    MENU_TITLE
    {
    menu_pane = cardgame_menu_pane;
    }
    };
    }
    RESOURCE MENU_PANE cardgame_menu_pane
    {
    items =
    {
    MENU_ITEM
    {
    command = EGUICmdShuffle;
    txt = STRING_r_app_gui_cmd_shuffle;
    }
    MENU_ITEM
    {
    command = EGUICmdDeal;
    txt = STRING_r_app_gui_cmd_deal;
    }
    };
    }
    RESOURCE STATUS_PANE_APP_MODEL cardgame_status_pane
    {
    layout = EEikStatusPaneUseDefaults;
    panes =
    {
    SPANE_PANE
    {
    id = EEikStatusPaneUidTitle;
    flags = EEikStatusPaneServerOwned;
    type = EAknCtTitlePane;
    resource = card_game_title_pane;
    }
    SPANE_PANE
    {
    id = EEikStatusPaneUidNavi;
    flags = EEikStatusPaneServerOwned;
    type = EAknCtNaviPane;
    resource = card_game_navigation_pane;
    }
    };
    }
    RESOURCE TITLE_PANE card_game_title_pane
    {
    txt = STRING_r_app_title_pane;
    }
    RESOURCE NAVI_DECORATOR card_game_navigation_pane
    {
    type = ENaviDecoratorLabel;
    control = NAVI_LABEL
    {
    txt = STRING_r_app_navi_pane;
    }
    }

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

    Re: syntax error in .mbg file

    hi,
    modified your code of .rss

    #include<avkon.rsg>
    #include<avkon.rh>
    #include<avkon.hrh>
    #include<eikon.rh>
    #include "CardGameGUIAppVer1.hrh"
    #include "CardGameGUIAppVer1.rls"
    NAME CGUI
    RESOURCE RSS_SIGNATURE {}
    RESOURCE TBUF r_default_document_name { buf="gui"; }
    RESOURCE EIK_APP_INFO
    {
    menubar = cardgame_menu;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    status_pane = cardgame_status_pane;
    }
    RESOURCE MENU_BAR cardgame_menu
    {
    titles =
    {
    MENU_TITLE
    {
    menu_pane = cardgame_menu_pane;
    }
    };
    }
    RESOURCE MENU_PANE cardgame_menu_pane
    {
    items =
    {
    MENU_ITEM
    {
    command = EGUICmdShuffle;
    txt = STRING_r_app_gui_cmd_shuffle;
    },
    MENU_ITEM
    {
    command = EGUICmdDeal;
    txt = STRING_r_app_gui_cmd_deal;
    }
    };
    }
    RESOURCE STATUS_PANE_APP_MODEL cardgame_status_pane
    {
    layout = EEikStatusPaneUseDefaults;
    panes =
    {
    SPANE_PANE
    {
    id = EEikStatusPaneUidTitle;
    flags = EEikStatusPaneServerOwned;
    type = EAknCtTitlePane;
    resource = card_game_title_pane;
    },
    SPANE_PANE
    {
    id = EEikStatusPaneUidNavi;
    flags = EEikStatusPaneServerOwned;
    type = EAknCtNaviPane;
    resource = card_game_navigation_pane;
    }
    };
    }
    RESOURCE TITLE_PANE card_game_title_pane
    {
    txt = STRING_r_app_title_pane;
    }
    RESOURCE NAVI_DECORATOR card_game_navigation_pane
    {
    type = ENaviDecoratorLabel;
    control = NAVI_LABEL
    {
    txt = STRING_r_app_navi_pane;
    };
    }



    Regards,
    Mateen Maldar
    Last edited by mateen_maldar; 2010-09-30 at 12:48. Reason: missed data
    "Whatever the mind can conceive and believe, the mind can achieve"

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,748

    Re: syntax error in .mbg file

    Yes, this code has some portions which simply do not look familiar.
    TBUF () was one of them, and the UID2-3 stuff in the .mmp is also strange, especially with that KUidApp.
    Try a single
    Code:
    UID 0x100039ce 0xE0000001
    instead.
    Otherwise in the previous post I was referring to the forward slashes in paths, like
    USERINCLUDE ../inc
    SOURCEPATH ../src
    However they apparently work.

Similar Threads

  1. Replies: 2
    Last Post: 2009-05-21, 06:14
  2. GraphicsAppImages.mbg file error
    By avanidave in forum Symbian
    Replies: 1
    Last Post: 2007-03-27, 14:08
  3. What is a .mbg file?
    By xhsoldier in forum Symbian
    Replies: 4
    Last Post: 2006-10-03, 05:57
  4. .mbg file
    By paper_currybowl in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-30, 08:36

Posting Permissions

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