×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    Tampere Finland
    Posts
    76

    Application Icon

    Hi All,

    I am facing a strange problem.
    I am using 3rd Edition FP1 SDK. I am not getting my application Icon in the menu list. Its coming blank with the application name. The application is working absolutely fine.

    When I tried building example application of SDK than also no Icon is visible only text in menu list.

    Anybody has any idea where it might have gone wrong.

    Cheers,
    Adi

  2. #2
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: Application Icon

    This is because S60 3rd FP1 uses compressed SVG format to display graphic. To generate an icon compatible with S60 3rd, add /X to the mifconv.exe call. You can add this from Icons_scalable_dc.mk.

    mifconv /x ....

    For more information, please see http://forum.nokia.com/document/Foru...SVG_images.htm.

    Antony
    Antony Pranata
    http://www.antonypranata.com/
    http://www.s60tips.com/

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

    Re: Application Icon

    And try first doing something very simple, I have noticed that some brushes, automatic shapes etc, can cause problems in the device.

    Also remember to use SVG2SVGT converter before using the mifconv.

    yucca

  4. #4
    Registered User
    Join Date
    Oct 2006
    Location
    Tampere Finland
    Posts
    76

    Re: Application Icon

    Thanks a lot for the reply.

    Its working perfectly fine now.

  5. #5
    Registered User
    Join Date
    May 2007
    Posts
    27

    Re: Application Icon

    I think I'm having the same problem, so I'm trying to follow the steps you all have mentioned.
    I'm using Carbide and it has a perl script as a kind of makefile to build the mif. I've already set the '/X' option for mifconv in it, and installed sgv2sgvtconverter, but I don't know how it works nor what I need to include in the script.

    Could you help me please?
    Thanks a lot.

  6. #6
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Berlin
    Posts
    59

    Re: Application Icon

    Hi there,

    unfortunately this doesn't work. I also have the problem of invisible icons on an Nokia E61. Well, I have found out it's a 3rd edition device, not a FP1 one. So there's the issue with the compressed svg which is not supported like Antony wrote.
    I'm using the 3rd FP1 SDK (CW version) and Carbide.C++ 1.2 Express.
    I have found a file ending ".mk" in the group directory where I could edit the mifconv call. Now it looks:
    Code:
    RESOURCE :	
    	mifconv /X $(ICONTARGETFILENAME) \
    	/c32 ..\gfx\qgn_menu_webclient.svg
    But mifconv does not accept this option, displays a help text and refuses to convert the file.
    Code:
    make[1]: Entering directory `C:/Symbian/CarbideWS/HELLO2/group'
    mifconv /x \Symbian\9.2\S60_3rd_FP1\epoc32\data\z\resource\apps\HELLO2_0xEE86AFF8.mif \
    	/c32 ..\gfx\qgn_menu_HELLO2.svg
    MifConv version 1.11 build (39).
    Checking: \Symbian\9.2\S60_3rd_FP1\epoc32\data\z\resource\apps\HELLO2_0xEE86AFF8.mif
    Checking: ..\gfx\qgn_menu_HELLO2.svg
    Choosing...
    
    ERROR: File not found: 2\Symbian\9.2\S60_3rd_FP1\epoc32\data\z\resource\apps\HELLO2_0xEE86AFF8.mif
    
    Multi Icon File converter tool. Version 1.11 (Build 39)
    Copyright (c) 2002-2006 Nokia Corporation. All rights reserved.
    
    Usage:
    MIFCONV	output_file_name.mif 
    	[/Hheader_file_name.mbg]
    	[/E]
    	[/Ppalette_file_name]
    	[/Bbmconv_path]
    	[/Ssvgtbinencode_path]
    	[/Vsvgtbinencode_version]
    	[/Fparameter_file_name.txt]
    	[[/A] [/OPT] src_file_name_1.EXT] ... [[/A] [/OPT] src_file_name_N.EXT] 
    
     /Hheader_file_name.mbg   specifies output header file name
    
     /E                       specifies that source icons are only loaded with given
                              file extensions. By default, MifConv prefers source icons with
                              extension .svg over .bmp, regardless of which is given as a parameter.
    
     /Ppalette_file_name      palette parameter, which is forwarded to BmConv for bitmap icons.
                              See more details in BmConv help.
    
     /Bbmconv_path            specifies the location path of bmconv.exe.
    
     /Ssvgtbinencode_path     specifies the location path of svgtbinencode.exe.
    
     /Vsvgtbinencode_version  specifies the format version of the generated SVGT binary code by svgtbinencode.exe.
                              svgtbinencode_version may be one of the following values:
                                  1 - Compatible with S60 Edition 3, feature pack 1 and following editions and feature packs.
                                  3 - Compatible with S60 Edition 3, feature pack 2 and following editions and feature packs.
                                      (Default with S60 Edition 3, feature pack 2.)
                                      Includes some performance improvements compared to version 1.
                                      Note, not compatible with S60 Edition 3, feature pack 1.
    
     /A                       specifies animated flag for icon
    
     /OPT[,MASK]              specifies icon framebuffer depth and mask depth
                              /OPT may be one of /1,/2,/4,/8,/c4,/c8,/c12,/c16,/c24,/c32
                              MASK may be one of 1,8
    
     EXT                      may be one of SVG, BMP
    
     Parameter file defined with option /F may contain
     any of the parameters listed above, separated by spaces or newlines.
    make[1]: Leaving directory `C:/Symbian/CarbideWS/HELLO2/group'
    That's not funny! Do I have an other SDK than you have?
    Any idea?

    Regards, muchas gracias,
    Karsten

    BTW, there's a similar thread:
    http://discussion.forum.nokia.com/fo...ad.php?t=97145

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Application Icon

    This line
    ERROR: File not found: 2\Symbian\9.2\S60_3rd_FP1\epoc32\data\z\resource\apps\HELLO2_0xEE86AFF8.mif
    seems strange to me.

  8. #8
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Berlin
    Posts
    59

    Question Re: Application Icon

    Hello wizard_hu_

    you are right. This IS strange and there are some other things to be strange.
    For this reason yesterday I have opened a new thread in the SDK requirements feedback forum: http://discussion.forum.nokia.com/fo...d.php?t=111244

    Option /X is rejected, the output file is not found (seems to be clear because it's output, not source) and the shown path is somehow wrong. Error messages should be meaningful. This is not!
    Just a please to you: Could you invoke the tool mifconv of SDK S60_3rd_FP1 with some invalid option and see if there is also a bad error message?

    Thank you,
    Karsten

  9. #9
    Registered User
    Join Date
    May 2007
    Posts
    27

    Re: Application Icon

    Hello KarstenBln,

    I still haven't solved the problem, but maybe I can help you with your compilation error...

    I have found a file ending ".mk" in the group directory where I could edit the mifconv call. Now it looks:
    Code:
    RESOURCE : mifconv /X $(ICONTARGETFILENAME) \ /c32 ..\gfx\qgn_menu_webclient.svg
    make[1]: Entering directory `C:/Symbian/CarbideWS/HELLO2/group'
    mifconv /x \Symbian\9.2\S60_3rd_FP1\epoc32\data\z\resource\apps\HELLO2_0xEE86AFF8.mif \
    /c32 ..\gfx\qgn_menu_HELLO2.svg
    ...
    qgn_menu_webclient.svg and then qgn_menu_HELLO2.svg? Unless you have changed the name in the while of writing your post, I would think that Carbide is not using the .mk file you're modifying... In fact, I'm using Carbide too, and I've found out it calls epocmifdef.pl, which makes a call to mifconv, and I think that this kind of .mk in the group directory is ignored. Anyway, I'm still trying to guess how it really works.

    However, you may try placing the '/X' before the '/c32' instead of after 'mifconv'. I don't think the problem is there, but just in case...

    Now, about this:

    This line
    ERROR: File not found: 2\Symbian\9.2\S60_3rd_FP1\epoc32\data\z\resource\apps\HELLO2_0xEE86AFF8.mif
    seems strange to me.
    The '2' before the file path is set there by mifconv when it raises this type of error, I don't know why nor what it really means, but I have encountered the same striking error.

    Now I'm going to try what it's said in the thread you posted, if I come to a solution I'll post it...
    Of course, any other help is always welcomed :)

    Cheers,
    Estrella

  10. #10
    Registered User
    Join Date
    May 2007
    Posts
    27

    Re: Application Icon

    Hi again,

    I have got a visible icon on the phone! I read through the thread mentioned and did as this post says:
    http://discussion.forum.nokia.com/fo...00&postcount=7

    I called mifconv on the command line, left my new .mif in a different location and changed the .pkg consecuently. When building the .sis, the process didn't overwrite the .mif and loaded the correct one in the installer :)
    Another option would be letting the .mif in its former place and disable de MIF compilation from the project porterties, but I haven't tried yet.

    I didn't need to use the '/X' option nor svg2svgt at all for this.

    Br,
    Estrella

  11. #11
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Berlin
    Posts
    59

    Re: Application Icon

    Quote Originally Posted by Estrella
    qgn_menu_webclient.svg and then qgn_menu_HELLO2.svg?
    Oh, god, sorry for this confusion. I have a few projects and tried the /x option with two of those. One is named HELLO2 and the other is named webclient. In fact, I've mixed up the examples from both projects.

    In HELLO2/group there is an Icons_scalable_dc.mk:
    Code:
    RESOURCE :	
    	mifconv /x $(ICONTARGETFILENAME) \
    		/c32 $(ICONDIR)\qgn_menu_HELLO2.svg
    and in WebClient/group there is an icons.mk:
    Code:
    RESOURCE :	
    	mifconv /X $(ICONTARGETFILENAME) \
    	/c32 ..\gfx\qgn_menu_webclient.svg
    Did you find out where I can find/edit the call epocmifdef.pl in Carbide?
    Any idea?

    Thanks for this feedback,
    Karsten

  12. #12
    Registered User
    Join Date
    May 2007
    Posts
    27

    Re: Application Icon

    Hello Karsten,

    In my installation, I have epocmifdef.pl in this folder:
    C:\Program files\Carbide\plugins\com.symbian.cdt.sdk_1.0.0\scripts

    I tried to modify it changing this call:

    Code:
    print "mifconv.exe $opt_o /H$opt_h /F$tmpfile\n" if ($opt_v);
    system("mifconv.exe $opt_o /H$opt_h /F$tmpfile");
    inserting the '/X' like this:

    Code:
    print "mifconv.exe /X $opt_o /H$opt_h /F$tmpfile\n" if ($opt_v);
    system("mifconv.exe /X $opt_o /H$opt_h /F$tmpfile");
    But it doesn't work, and building gave another weird error.

    So, my advice is this:
    1.- Open your command shell and go where mifconv is placed. In my installation it is C:\Symbian\9.2\S60_3rd_FP1\Epoc32\tools
    2.- Call mifconv like this:
    Code:
    mifconv C:\path_you_choose\YourApp.mif /c32 C:\path_to_your_ws\YourApp\gfx\qgn_menu_YourApp.svg
    Note that I needn't even use '/X'...
    3.- Now you have YourApp.mif in the folder you chose. If you leave it in the default folder where Carbide leaves it too, make sure you disable de MIF compilation, or else it will overwrite the .mif when building the whole .sis file.
    4.- Wherever you placed YourApp.mif, the .pkg file should reflect the correct path to it.

    And that's all I had to do. Try this and if you succeed please post it :)
    Good luck!

  13. #13
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: Application Icon

    Quote Originally Posted by KarstenBln
    Code:
    RESOURCE :	
    	mifconv /X $(ICONTARGETFILENAME) \
    	/c32 ..\gfx\qgn_menu_webclient.svg
    Try to put X just before /32. For example:

    Code:
    mifconv $(ICONTARGETFILENAME) \
    		/X /c32 ..\gfx\qgn_menu_webclient.svg
    Antony
    Antony Pranata
    http://www.antonypranata.com/
    http://www.s60tips.com/

  14. #14
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Berlin
    Posts
    59

    Thumbs up Re: Application Icon

    Hi there,

    strange but true, moving the option as described by Antony and Estrella has fixed the problem.
    mifconv has accepted the /X and the icon is now visible.

    A comment to Estrella: I could not find anything like a epocmifdef.pl on the whole drive. Maybe it exists temporarily during build. But I think, the perl command is generated from the .mk file. Since the option /X does work now it is clear that the file is used.
    The path to epocmifdef.pl you mentioned does not exist on my system. It seems that you do't use Carbide.C++ 1.2 Express but some other version. There seems to be another problem because I don't have any need to invoke mifconv on the command line like Kiran has described it.

    Well, I'm satisfied with this, but there's already another problem for me with the resources file. I just have posted in General Symbian C++ forum.
    Thank you all for the hints and have a nice weekend!

    Karsten

Similar Threads

  1. application icon
    By vivek_mics in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-01-02, 09:50
  2. how can i use the bitmap file to change icon of my application ?
    By jignasha in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-07-19, 12:47
  3. Where is the application icon in the emulator?
    By softengilker in forum Symbian
    Replies: 4
    Last Post: 2005-07-22, 08:02
  4. Replies: 2
    Last Post: 2005-04-29, 21:59
  5. Can't find application icon
    By kazlitin in forum Symbian
    Replies: 1
    Last Post: 2003-10-06, 10:12

Posting Permissions

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