×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    App compiles without error but when i start the emulator the app is not shown

    Hello everyone,

    I have a little problem with porting an application from 2.0 to 3.0

    I fixed every error but now the application is compiling just fine but its not shown anywhere when i start it in the emulator.

    here is my code that i think should be used to show the icon:

    in the .rss file:

    Code:
    RESOURCE LOCALISABLE_APP_INFO r_myapp_localisable_app_info
    {
    short_caption=string_myapp_shortcaption;
    caption_and_icon=
    CAPTION_AND_ICON_INFO
    {
    caption=string_cardscanner_caption;
    number_of_icons = 2; //1 for SVG
    icon_file = "\\Resource\\Apps\\myapp_reg.mif";
    
    
    };
    }
    in the reg,rss file:

    Code:
    // myapp_reg.rss
    #include <appinfo.rh>
    #include <myapp.rsg>
    
    UID2 KUidAppRegistrationResourceFile
    UID3 0x0 0xe7e3f6c1
    
    RESOURCE APP_REGISTRATION_INFO
    {
        app_file="myapp";
        localisable_resource_file = "resource\\apps\\myapp";
    
    	localisable_resource_id = R_MYAPP_LOCALISABLE_APP_INFO;
    	embeddability=KAppNotEmbeddable;
    	newfile=KAppDoesNotSupportNewFile;
    }
    the bld.inf file:

    Code:
    PRJ_MMPFILES
    
    myapp.mmp
    
    ifeq (WINS,$(findstring WINS, $(PLATFORM)))
    ZDIR=\epoc32\release\$(PLATFORM)\$(CFG)\Z
    else
    ZDIR=\epoc32\data\z
    endif
    
    
    TARGETDIR=$(ZDIR)\RESOURCE\APPS
    ICONTARGETFILENAME=$(TARGETDIR)\My_aif.mbm
    
    
    RESOURCE :
    mifconv $(ICONTARGETFILENAME) \
    /c24 IconLarge.bmp \
    /c24 IconMedium.bmp
    the miflist file:

    /c24


    the mmp file:

    /
    Code:
    / ***************************************************************************
    
    
    //END
    TARGET                                  myapp.exe 
    TARGETTYPE                              exe 
    
    UID		          0x0 0xe7e3f6c1
    
    //SECUREID	      0xe7e3f6c1
    //UID                                     0x100039CE 0x201F98B1 
    //TARGETPATH                              \system\apps\myapp
    LANG                                    SC EN GE 
    
    SOURCEPATH                              ..\Source 
    SOURCE                                  myapp.cpp 
    SOURCE                                  Application.cpp 
    SOURCE                                  UI.cpp 
    SOURCE                                  Document.cpp 
    SOURCE                                  SplashView.cpp 
    SOURCE                                  SplashViewContainer.cpp 
    SOURCE                                  TitleView.cpp 
    SOURCE                                  TitleViewContainer.cpp 
    SOURCE                                  CharactersView.cpp 
    SOURCE                                  CharactersViewContainer.cpp 
    SOURCE                                  LoginView.cpp 
    SOURCE                                  LoginViewContainer.cpp 
    SOURCE                                  MapView.cpp 
    SOURCE                                  MapViewContainer.cpp 
    SOURCE                                  Preferences.cpp 
    SOURCE                                  Network.cpp 
    SOURCE                                  Communication.cpp 
    SOURCE                                  GameCommunication.cpp 
    SOURCE                                  LoginCommunication.cpp 
    SOURCE                                  Map.cpp 
    SOURCE                                  Sprites.cpp 
    SOURCE                                  Player.cpp 
    SOURCE                                  bitmapmethods.cpp 
    SOURCE                                  Utils.cpp 
    SOURCE                                  SMSEngine.cpp 
    
    START RESOURCE    myapp.rss 
    HEADER
    TARGETPATH         \system\apps\myapp
    END //RESOURCE
    
    USERINCLUDE                             ..\Source 
    SYSTEMINCLUDE                           \epoc32\include 
    SYSTEMINCLUDE                           \epoc32\include\libc 
    START BITMAP myapp.mbm 
      TARGETPATH                              ..\..\..\..\winscw\c\system\apps\myapp
      HEADER                                   
      SOURCEPATH                              ..\Bitmaps 
      SOURCE                                  c12 Presents.bmp 
      SOURCE                                  c12 Splash.bmp 
      SOURCE                                  c12 Title.bmp 
      SOURCE                                  c12 Intro.bmp 
      SOURCE                                  c12 Background.bmp 
      SOURCE                                  c12 Body.bmp 
      SOURCE                                  c12 Menu.bmp 
      SOURCE                                  c12 Output.bmp 
      SOURCE                                  c12 Input.bmp 
      SOURCE                                  c12 Message.bmp 
      SOURCE                                  c12 Shop.bmp 
      SOURCE                                  c12 Depot.bmp 
      SOURCE                                  c12 List.bmp 
      SOURCE                                  c12 Banks.bmp 
      SOURCE                                  c12 Statics.bmp 
      SOURCE                                  c12 Items.bmp 
      SOURCE                                  1 ItemsMask.bmp 
      SOURCE                                  c12 Creatures.bmp 
      SOURCE                                  1 CreaturesMask.bmp 
      SOURCE                                  c12 Effects.bmp 
      SOURCE                                  1 EffectsMask.bmp 
      SOURCE                                  1 Letters.bmp 
      SOURCE                                  1 LettersFrame.bmp 
      SOURCE                                  c12 Symbols.bmp 
      SOURCE                                  1 SymbolsMask.bmp 
      SOURCE                                  c12 Controls.bmp 
      SOURCE                                  1 ControlsMask.bmp 
    
    END  
    
    LIBRARY                                 euser.lib 
    LIBRARY                                 apparc.lib 
    LIBRARY                                 cone.lib 
    LIBRARY                                 eikcore.lib 
    LIBRARY                                 avkon.lib 
    LIBRARY                                 insock.lib 
    LIBRARY                                 esock.lib 
    LIBRARY                                 fbscli.lib 
    LIBRARY                                 bitgdi.lib 
    LIBRARY                                 plpvariant.lib 
    LIBRARY                                 efsrv.lib 
    LIBRARY                                 estor.lib 
    LIBRARY                                 etext.lib 
    LIBRARY                                 eikctl.lib 
    LIBRARY                                 etel.lib 
    LIBRARY                                 gsmbas.lib 
    LIBRARY                                 bafl.lib 
    LIBRARY                                 msgs.lib 
    LIBRARY                                 smcm.lib 
    LIBRARY                                 gsmu.lib 
    LIBRARY                                 eikcoctl.lib 
    LIBRARY                                 eikdlg.lib
    anyone have an idea why the i don't have an application icon in the emulator?

    would be awsome if anyone had any hints for me since i dont get any compile errors

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

    Re: App compiles without error but when i start the emulator the app is not shown

    1) UID3 line in your registration file should contain only the 3rd UID. Your file seems to have an extra 0x0.
    2) if it still does not appear, you can try cutting down the registration file via removing/commenting optional lines as localisable_resource_file, localisable_resource_id, embeddability and newfile.

  3. #3
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    Re: App compiles without error but when i start the emulator the app is not shown

    Hi there,

    thx a lot for the reply. I reduced my reg file to the following but the application still doent apear in the emulator:-(

    Code:
    // myapp_reg.rss
    #include <appinfo.rh>
    #include <myapp.rsg>
    
    UID2 KUidAppRegistrationResourceFile
    UID3 0xe7e3f6c1
    
    RESOURCE APP_REGISTRATION_INFO
    {
        app_file="myapp";  
    }
    I have no clue what i am missing:-(

  4. #4
    Registered User
    Join Date
    Feb 2007
    Location
    Bangalore
    Posts
    3

    Re: App compiles without error but when i start the emulator the app is not shown

    WINS is not supported in S60 3rd edition. Try using WINSCW for code warrior or ARMV5 for device.
    Perhaps this helps

    ~Johnson

  5. #5
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,540

    Re: App compiles without error but when i start the emulator the app is not shown

    Quote Originally Posted by Rozik
    Hi there,

    thx a lot for the reply. I reduced my reg file to the following but the application still doent apear in the emulator:-(

    Code:
    // myapp_reg.rss
    #include <appinfo.rh>
    #include <myapp.rsg>
    
    UID2 KUidAppRegistrationResourceFile
    UID3 0xe7e3f6c1
    
    RESOURCE APP_REGISTRATION_INFO
    {
        app_file="myapp";  
    }
    I have no clue what i am missing:-(
    Hi,

    In your mmp file, instead of this :

    Code:
    START RESOURCE    myapp.rss 
    HEADER
    TARGETPATH         \system\apps\myapp
    END //RESOURCE
    Try this :

    Code:
    START RESOURCE    myapp.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE
    
    START RESOURCE    myapp_reg.rss
    TARGETPATH 	  \private\10003a3f\apps
    END //RESOURCE
    I believe that should make it work.

    Hope it helps

    Good Luck and Cheers
    Neil

  6. #6
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    Re: App compiles without error but when i start the emulator the app is not shown

    Thx Neil i have the app icon showing now

  7. #7
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    Re: App compiles without error but when i start the emulator the app is not shown

    the mmp file:

    /
    Code:
    / ***************************************************************************
    
    
    //END
    TARGET                                  myapp.exe 
    TARGETTYPE                              exe 
    
    UID		          0x0 0xe7e3f6c1
    
    //SECUREID	      0xe7e3f6c1
    //UID                                     0x100039CE 0x201F98B1 
    //TARGETPATH                              \system\apps\myapp
    LANG                                    SC EN GE 
    
    SOURCEPATH                              ..\Source 
    SOURCE                                  myapp.cpp 
    SOURCE                                  Application.cpp 
    SOURCE                                  UI.cpp 
    SOURCE                                  Document.cpp 
    SOURCE                                  SplashView.cpp 
    SOURCE                                  SplashViewContainer.cpp 
    SOURCE                                  TitleView.cpp 
    SOURCE                                  TitleViewContainer.cpp 
    SOURCE                                  CharactersView.cpp 
    SOURCE                                  CharactersViewContainer.cpp 
    SOURCE                                  LoginView.cpp 
    SOURCE                                  LoginViewContainer.cpp 
    SOURCE                                  MapView.cpp 
    SOURCE                                  MapViewContainer.cpp 
    SOURCE                                  Preferences.cpp 
    SOURCE                                  Network.cpp 
    SOURCE                                  Communication.cpp 
    SOURCE                                  GameCommunication.cpp 
    SOURCE                                  LoginCommunication.cpp 
    SOURCE                                  Map.cpp 
    SOURCE                                  Sprites.cpp 
    SOURCE                                  Player.cpp 
    SOURCE                                  bitmapmethods.cpp 
    SOURCE                                  Utils.cpp 
    SOURCE                                  SMSEngine.cpp 
    
    START RESOURCE    myapp.rss 
    HEADER
    TARGETPATH         \system\apps\myapp
    END //RESOURCE
    
    USERINCLUDE                             ..\Source 
    SYSTEMINCLUDE                           \epoc32\include 
    SYSTEMINCLUDE                           \epoc32\include\libc 
    START BITMAP myapp.mbm 
      TARGETPATH                              ..\..\..\..\winscw\c\system\apps\myapp
      HEADER                                   
      SOURCEPATH                              ..\Bitmaps 
      SOURCE                                  c12 Presents.bmp 
      SOURCE                                  c12 Splash.bmp 
      SOURCE                                  c12 Title.bmp 
      SOURCE                                  c12 Intro.bmp 
      SOURCE                                  c12 Background.bmp 
      SOURCE                                  c12 Body.bmp 
      SOURCE                                  c12 Menu.bmp 
      SOURCE                                  c12 Output.bmp 
      SOURCE                                  c12 Input.bmp 
      SOURCE                                  c12 Message.bmp 
      SOURCE                                  c12 Shop.bmp 
      SOURCE                                  c12 Depot.bmp 
      SOURCE                                  c12 List.bmp 
      SOURCE                                  c12 Banks.bmp 
      SOURCE                                  c12 Statics.bmp 
      SOURCE                                  c12 Items.bmp 
      SOURCE                                  1 ItemsMask.bmp 
      SOURCE                                  c12 Creatures.bmp 
      SOURCE                                  1 CreaturesMask.bmp 
      SOURCE                                  c12 Effects.bmp 
      SOURCE                                  1 EffectsMask.bmp 
      SOURCE                                  1 Letters.bmp 
      SOURCE                                  1 LettersFrame.bmp 
      SOURCE                                  c12 Symbols.bmp 
      SOURCE                                  1 SymbolsMask.bmp 
      SOURCE                                  c12 Controls.bmp 
      SOURCE                                  1 ControlsMask.bmp 
    
    END  
    
    LIBRARY                                 euser.lib 
    LIBRARY                                 apparc.lib 
    LIBRARY                                 cone.lib 
    LIBRARY                                 eikcore.lib 
    LIBRARY                                 avkon.lib 
    LIBRARY                                 insock.lib 
    LIBRARY                                 esock.lib 
    LIBRARY                                 fbscli.lib 
    LIBRARY                                 bitgdi.lib 
    LIBRARY                                 plpvariant.lib 
    LIBRARY                                 efsrv.lib 
    LIBRARY                                 estor.lib 
    LIBRARY                                 etext.lib 
    LIBRARY                                 eikctl.lib 
    LIBRARY                                 etel.lib 
    LIBRARY                                 gsmbas.lib 
    LIBRARY                                 bafl.lib 
    LIBRARY                                 msgs.lib 
    LIBRARY                                 smcm.lib 
    LIBRARY                                 gsmu.lib 
    LIBRARY                                 eikcoctl.lib 
    LIBRARY                                 eikdlg.lib
    [/QUOTE]
    There is a lack of make myapp_reg.rss in your mmp file,just like "START RESOURCE myapp_reg.rss ..."

Similar Threads

  1. How to Start J2ME App on Nokia 9210 ?
    By ascom-soltau in forum Mobile Java General
    Replies: 3
    Last Post: 2008-03-16, 11:44
  2. how to start a midlet in app
    By ztnok in forum Symbian
    Replies: 4
    Last Post: 2006-09-25, 06:31
  3. Replies: 0
    Last Post: 2004-01-12, 17:47
  4. Possible for C++ app to start a MIDlet?
    By ggould in forum Symbian
    Replies: 0
    Last Post: 2003-08-20, 14:34
  5. My app cannot start on 3650
    By ertra in forum Mobile Java General
    Replies: 2
    Last Post: 2003-07-19, 16:25

Posting Permissions

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