×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    MBM image is not found

    Hello folks,
    I have a problem with a bitmap image I have put into the MBM file via Carbide's MBM file editor (there is an MMP file in the /group folder, and if I click on it, I can edit an MBM file).

    The code I use is as follows:
    Code:
    			// we now need to create the folder and goUp icons
    			CFbsBitmap* tempBitmap = new (ELeave)CFbsBitmap();
    			error=tempBitmap->Load(KDataFile,EMbmLocanoteFolderup,EFalse);
    			
    			if(error!=KErrNone)
    		{
    ;;;
    		}
    Unfortunately, I always get the error -12. I have already tried a full delete of all LocaNote-related files from the SDK folder to no avail - the recompile of the resources did not list my bitmap even though it was visible in the MIF/MBM editor all the time.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: MBM image is not found

    check that KDataFile Exists .

  3. #3
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi Skumar,
    yep - the LocaNote.mbm is right in /resource/apps where it belongs:
    Code:
    _LIT(KDataFile, "\\resource\\apps\\LocaNote.mbm");
    However, there is no MIF file.

    Furthermore, I dont see my images being accessed in the build process after having deleted all files manually from the ?s60? folder:
    Code:
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\LocaNote\group\ library winscw  
      make -r  -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\LocaNote\group\WINSCW.make" LIBRARY VERBOSE=-s
    make -s  -C \Symbian\Carbide\workspace\LocaNote\group -f "ICONS_AIF_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\ICONS_AIF_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\Symbian\Carbide\workspace\LocaNote\group PLATFORM=WINSCW LIB
    make -s  -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\LocaNote\group\LOCANOTE\WINSCW\LOCANOTE.WINSCW" LIBRARY
    
    Total Time: 13 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\LocaNote\group\ resource winscw udeb  
      make -r  -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\LocaNote\group\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
    make -s  -C \Symbian\Carbide\workspace\LocaNote\group -f "ICONS_AIF_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\ICONS_AIF_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\Symbian\Carbide\workspace\LocaNote\group PLATFORM=WINSCW CFG=UDEB RESOURCE
    MifConv version 1.11 build (50, SVG stand-alone).
    Checking: ..\gfx\qgn_menu_LocaNote.svg
    Checking: ..\gfx\icon_line_down_3rd_selected_38x38.svg
    Checking: ..\gfx\icon_undo_unpressed_38x38.svg
    Checking: ..\gfx\icon_circle_unpressed_38x38.svg
    Checking: ..\gfx\icon_new_pressed_38x38.svg
    Checking: ..\gfx\qgn_menu_MobilePaint.svg
    Checking: ..\gfx\icon_line_pressed_38x38.svg
    Checking: ..\gfx\list_icon.bmp
    Checking: ..\gfx\icon_circle_pressed_38x38.svg
    Checking: ..\gfx\icon_menu_unpressed_38x38.svg
    Checking: ..\gfx\icon_color_pressed_38x38.svg
    Checking: ..\gfx\mark_icon.bmp
    Checking: ..\gfx\icon_menu_pressed_38x38.svg
    Checking: ..\gfx\graf_SK_buttonbar_landscape.svg
    Checking: ..\gfx\graf_bar_portrait.svg
    Checking: ..\gfx\icon_undo_pressed_38x38.svg
    Checking: ..\gfx\icon_line_down_2nd_selected_38x38.svg
    Checking: ..\gfx\icon_new_unpressed_38x38.svg
    Checking: ..\gfx\graf_line_tooltip.svg
    Checking: ..\gfx\icon_line_up_2nd_selected_38x38.svg
    Checking: ..\gfx\icon_pen_unpressed_38x38.svg
    Checking: ..\gfx\icon_exit_pressed_38x38.svg
    Checking: ..\gfx\icon_line_up_1st_selected_38x38.svg
    Checking: ..\gfx\graf_bar_wide_landscape.svg
    Checking: ..\gfx\MobilePaint_icon_44x44.svg
    Checking: ..\gfx\icon_exit_unpressed_38x38.svg
    Checking: ..\gfx\icon_rectangle_pressed_38x38.svg
    Checking: ..\gfx\icon_line_unpressed_38x38.svg
    Checking: ..\gfx\graf_bar_portrait_fat.svg
    Checking: ..\gfx\icon_line_down_1st_selected_38x38.svg
    Checking: ..\gfx\icon_rectangle_unpressed_38x38.svg
    Checking: ..\gfx\icon_line_up_3rd_selected_38x38.svg
    Checking: ..\gfx\icon_pen_pressed_38x38.svg
    Checking: ..\gfx\icon_color_unpressed_38x38.svg
    Checking: ..\gfx\graf_SK_buttonbar.svg
    Checking: ..\gfx\graf_bar_landscape.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\s3qs.tmp\.._gfx_qgn_menu_LocaNote.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_down_3rd_selected_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_undo_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_circle_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_new_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_qgn_menu_MobilePaint.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_circle_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_menu_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_color_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_menu_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_graf_SK_buttonbar_landscape.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_graf_bar_portrait.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_undo_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_down_2nd_selected_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_new_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_graf_line_tooltip.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_up_2nd_selected_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_pen_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_exit_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_up_1st_selected_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_graf_bar_wide_landscape.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_MobilePaint_icon_44x44.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_exit_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_rectangle_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_graf_bar_portrait_fat.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_down_1st_selected_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_rectangle_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_line_up_3rd_selected_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_pen_pressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_icon_color_unpressed_38x38.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_graf_SK_buttonbar.svgb
    Loading file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\s60\icons\temp\s3qs.tmp\.._gfx_graf_bar_landscape.svgb
    Writing mif: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\WINSCW\UDEB\Z\resource\apps\LocaNote_aif.mif
    Loading mbm icons...
    Loading file: ..\gfx\list_icon.bmp
    Loading file: ..\gfx\mark_icon.bmp
    Writing mbm: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\WINSCW\UDEB\Z\resource\apps\LocaNote_aif.mbm
    Writing mbg: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\LocaNote_aif.mbg
    make -s  -r -f "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\LocaNote\group\LOCANOTE\WINSCW\LOCANOTE.WINSCW" RESOURCEUDEB
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\LocaNote.mbg
    
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\LocaNote.rsg
    
    Creating \s60\devices\s60_5th_edition_sdk_v1.0\epoc32\build\symbian\carbide\workspace\locanote\group\locanote\winscw\udeb
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\winscw\udeb\z\resource\apps\LocaNote.mbm
    Created \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\winscw\udeb\z\resource\apps\LocaNote.r01
    
    Total Time: 26 sec
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  4. #4
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi,
    I now moved it to a MIF file and ghet the following error at compile:

    BMCONV version 112.
    Compiling...
    Multiple bitmap store type: File store
    Epoc file: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\WINSCW\UDEB\Z\resource\apps\LocaNote_aif.mbm

    Bitmap file 1 : ..\gfx\list_icon.bmp
    Bitmap file 2 : ..\gfx\mark_icon.bmp
    Bitmap file 3 : ..\gfx\folderup.bmp
    Bitmap file 4 : /1..\gfx\folderup_mask.bmp
    Bitmap file 5 : /c32..\gfx\folder.bmp
    Bitmap file 6 : /1..\gfx\folder_mask.bmp
    Invalid bitmap mode specified.
    Writing mbg: \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\LocaNote_aif.mbg
    make -s -r -f

    All the best
    Tam
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: MBM image is not found

    can you show us your pkg file. if you are testing on device ?

  6. #6
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi,
    I am testing on emulator.

    I have now moved it to another MIF file, and still get the same error -12...even though other images from the file load fine.

    All the best
    Tam Hanna
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: MBM image is not found

    -12 is KErrPathNotFound .

    so try using _LIT(KDataFile, "z:\\resource\\apps\\LocaNote.mbm");

  8. #8
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi,m
    just went over this again and wanted to correct - the file works, as the images load fine in another situation.

    The list loader always fails 2w3ith -12 irregardless of which image I pick!
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  9. #9
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi,
    I now changed this and get error -25.

    The strange thing is that the loading works well with exactly the same string in another bit of my code!
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: MBM image is not found

    Quote Originally Posted by tamhanna View Post
    Hi,
    I now changed this and get error -25.

    The strange thing is that the loading works well with exactly the same string in another bit of my code!
    On which line you are getting this Panic. ?

  11. #11
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi skumar,
    thank you so much for the help. Here is the loading code:
    Code:
    			//create the array
    			iconArray = new( ELeave ) CAknIconArray( 1 );
    			LstFiles()->ItemDrawer()->ColumnData()->SetIconArray(iconArray);
    			TInt error;
    			
    			// we now need to create the folder and goUp icons
    			CFbsBitmap* tempBitmap = new (ELeave)CFbsBitmap();
    			error=tempBitmap->Load(KSvgFile,EMbmLocanote_aifIcon_circle_pressed_38x38,EFalse);
    			
    			if(error!=KErrNone)
    		{
    ;;;
    		}
    My breakpoint is at the second ;. I( dont get a panic BTW - the program continues to run. All I get is the error variable returned
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,745

    Re: MBM image is not found

    What is KSvgFile now?

  13. #13
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi,
    it now is
    Code:
    _LIT(KSvgFile, "z:\\resource\\apps\\LocaNote_aif.mbm");
    P.S. Other images load fine from this file later omn in the applications life cycle though.

    P.S.2 thank you all for the help!
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  14. #14
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: MBM image is not found

    Hi,
    I have tried to play around a bit and it still doesnt work.

    Is there a program I can use to look inside of the MBM file maybe?
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,745

    Re: MBM image is not found

    S60Tools\mbmviewer in your SDK.

Similar Threads

  1. Problems with errno module
    By tsharju in forum Symbian
    Replies: 1
    Last Post: 2005-10-21, 11:24
  2. image failed to load
    By killarkai in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-07-25, 13:07
  3. image transparency gets lost with DirectUtils.createImage
    By rawpsycho in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-05-28, 08:36
  4. Replies: 0
    Last Post: 2003-05-12, 17:38
  5. Loading Image data from 'raw' bytes
    By LongSteve in forum Mobile Java General
    Replies: 2
    Last Post: 2002-11-20, 17: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
  •  
×