×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318

    generating mbm from mmp START BITMAP

    Hi,

    I've tried using the bmconv tool to generate the mbm and mbg files and it worked successfully.

    Then again, there is this other method to generate the .mbm file using the mmp file which goes by this format:

    START BITMAP Something.mbm
    TARGETPATH \system\apps\Something\
    HEADER
    SOURCEPATH ..\DataSrc
    SOURCE C12 golgo2.bmp
    SOURCE C12 golgo2m.bmp
    SOURCE C12 golgo3.bmp
    SOURCE C12 golgo3m.bmp
    END

    This example was take from AKNEXLIST, but when i tried to generate the mbm file from the mmp file, nothing happened. I assumed that it would be generated automatically while building in DOS.

    I read from the SDK that ...
    "Currently, building of bitmaps within the MSVC IDE is not supported."

    I'm not sure if this relates to my problem tho...
    Why is the START BITMAP thingy not working anyway?

    -advo-

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609
    When you issue the following command:

    abld build wins udeb

    the building toolchain will automatically generate the following files in the following locations:

    \Symbian\6.1\Series60\Epoc32\Release\wins\UDEB\Z\SYSTEM\apps\AKNEXLIST\AKNEXLIST.MBM

    \Symbian\6.1\Series60\Epoc32\Include\AKNEXLIST.mbg

    If these file are not generated during your building process, then I am think you have something wrong with your installation.

    Best regards,

    Liuxg
    Forum Nokia

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    have you tried to use a full path?

    f. ex.:

    START BITMAP Something.mbm
    //TARGETPATH \system\apps\Something\
    //TARGETPATH ..\..\..\..\wins\c\system\apps\Something
    TARGETPATH ..\..\..\..\release\wins\udeb\z\system\apps\Something
    HEADER
    SOURCEPATH ..\DataSrc
    SOURCE C12 golgo2.bmp
    .....

  4. #4
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    50
    use your resource build to create the mbm file .

  5. #5
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318

    hmmm

    Thanks everyone,

    Naibmys:
    What resource build are you refering to? Do you mean the 'bmconv'?

    Sopta007:

    I tried the full path:
    TARGETPATH ..\..\..\epoc32\Release\wins\UDEB\Z\SYSTEM\apps\KEVLST

    Anyway, here's some side information
    ----------------------------------------------------------------------------------
    My graphic files are here:
    C:\Symbian\6.1\Series60\KevsApps\KevLst\DataSrc

    I guess this is the default location for mbm files:
    C:\Symbian\6.1\Series60\Epoc32\Release\wins\UDEB\Z\SYSTEM\apps\KEVLST

    I guess the mbg file should go here
    C:\Symbian\6.1\Series60\Epoc32\Include
    ----------------------------------------------------------------------------------

    I'm now getting an error while building at command line.
    NMAKE : fatal error U1073: don't know how to make '"\Symbian\6.1\Series60\EPOC32\INCLUDE\KEVLST.MBG"'

    Even then, both mbm and mbg files were not generated.. sighz =P

    -advo-

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    47
    hi,
    so only way is to create mbm file with bmconv and put this into mmp file as resource then it will work in emulator and real target too?

    regards,
    urx.

  7. #7
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    68
    Creating MBM files using the MMP file does work ok, here is an example that works for me :

    START BITMAP images.mbm
    HEADER
    TARGETPATH ..\..\..\..\wins\c\system\apps\graphics
    SOURCEPATH ..\bitmaps
    SOURCE c12 image1.bmp
    SOURCE c12 image2.bmp
    SOURCE c12 image2_mask.bmp
    END

    But there are a few catches (this is Symbian, what did you expect ?).

    The process does not work well if some files have already been generated by the usual BMCONV process. So, the thing to do is to do a clean build. To make sure it works do the following :

    run "abld reallyclean"
    run "bldmake clean"

    delete everything in the \blah\epoc32\build\YourExampleName\*

    delete any of your project files in \blah\epoc32\include
    (this is usually the mbm and mbg files).

    Hopefully no trace of you app exists. you can then :

    run "bldmake bldfiles"
    run "abld build wins udeb"

    and the process should work.

    I'm not sure what files cause the process to cock up, but this should work.

  8. #8
    Registered User
    Join Date
    Jul 2003
    Location
    Delaware (The 1st State), USA
    Posts
    23
    advocatee, install the EpocToolbar to your Visual Studio IDE. Its under the Series60Tools folder. With that, you can everything without leaving the IDE. You don't have to go to dos and do abld or anything. There is a readme.txt file that tells you how to install it.

    It rebuilds your workspace files from the .mmp file. It builds your app for the "target" platform. It builds using memory tracker and it also creates a .pkg file for you so you can later create a .SIS file!! WOW!!!

    Hope this helps,

    Ron.

  9. #9
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318

    EPOC TOOLBAR

    HI,,

    I installed the EPOC toolbar.

    I then opened an old workspace (one which i'm pretty sure has never dealt with mbms/mbgs or graphical listboxes for that matter.

    I entered this in my mmp file.

    START BITMAP TestListImages.mbm
    HEADER
    TARGETPATH \system\apps\TestList
    SOURCEPATH ..\DataSrc
    SOURCE C12 check.bmp
    SOURCE 1 checkm.bmp
    SOURCE C12 non_check.bmp
    SOURCE 1 non_checkm.bmp
    END

    As you can see i copied these bmp files from the example.

    i saved the mmp file (of course i've copied the bmp's into the DataSrc folder).

    I 'Recompile Makefile' using the EPOC toolbar. They tell me "Warnings/Errors Occurred!". Before this there were no errors.

    I go to MSDOS, and i type bldmake bldfiles, and this is the error:

    C:\Symbian\6.1\Series60\KevsApps\TestList\group>bldmake bldfiles

    "\SYMBIAN\6.1\SERIES60\KEVSAPPS\TESTLIST\GROUP\BLD.INF" FATAL ERROR(S):
    \SYMBIAN\6.1\SERIES60\KEVSAPPS\TESTLIST\GROUP\BLD.INF(66) : \SYMBIAN\6.1\SERIES6
    0\KEVSAPPS\TESTLIST\MTRACK\GROUP\MTRACK_TESTLIST.MMP does not exist

    I do not understand what is going on.

    Looks like i have to use bmconv? I'm not a lazy person but i just wanna know if everyone has to type bmconv etc etc followed by the graphic file names. My question is, if u had a hundred graphics, would u have to type a hundred graphic file names?

    - advo -

  10. #10
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    It seems to me that you have one of these two things wrong:

    1. wrong path to your *.mmp file (maybe you should leave in bld.inf only MTRACK_TESTLIST.MMP without full path, if they are in the same directory)

    2. wrong path in your %EPOCROOT% or %EPOCPATH%

  11. #11
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318
    Thanks sopta

    The problem was that i had deleted the 'mtrack' memory tracker directory after had created it with the toolbar (i was playing around with it). I thought i didn't need it anymore and, well deleted it =P

    I restored it and it could compile. The thing is that i now have problems displaying my multi selection listbox which makes use of this mbm.

    http://discussion.forum.nokia.com/fo...threadid=27722

    Thanks again

    - aDvo -

  12. #12
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329

    Is it creating masks

    Hi everybody,

    I know this is an old post, but I'm not getting icons with transparent background.
    I'm setting the "mask icons", but it seems that they are created as separated icons inside the mbm.

    This is my code:
    START BITMAP Icons.mbm
    HEADER
    SOURCEPATH ..\icons
    SOURCE c24 a.bmp
    SOURCE 1 a_mask.bmp
    SOURCE c24 b.bmp
    SOURCE 1 b_mask.bmp
    SOURCE c24 c.bmp
    SOURCE 1 c_mask.bmp
    END

    I've tried also:
    START BITMAP Icons.mbm
    HEADER
    SOURCEPATH ..\icons
    SOURCE c24 a.bmp a_mask.bmp
    SOURCE c24 b.bmp b_mask.bmp
    SOURCE c24 c.bmp c_mask.bmp
    END
    but it gives me exactly same result.

    Thanks in advance.
    Bye

Posting Permissions

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