×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    48

    Trying to run a console application on the E61 device

    Hi All,

    I've been trying to run a console application on the device. I got a developer certificate from Symbian registered for my E61 device. After which
    I've created a console application or an EXE which I need to run on the device.

    Since there's no way to launch an exe on the device, I followed the advice from the Forum Nokia experts and created a minimal rss file, compiling for the device which resulted into the .rsc file.
    I then included this file in my pkg file, and successfully installed my application on E61.

    I'm able to see the icon in the Installation folder, however nothing happens when I click on it. My console app doesn't launches when I click on the icon.

    Following are the details of my pkg file:
    oscllibunittest_armv5.pkg
    ;
    ;Language - standard language definitions
    &EN

    ; standard SIS file header
    #{"Osclibtest"},(0x20003FA0),1,0,0

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install

    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\test_oscllib.exe" -"!:\sys\bin\test_oscllib.exe", FR
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\oscllibtest_reg.rsc" -"!:\private\10003a3f\import\apps\oscllibtest_reg.rsc"
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\pvoscllib.dll" -"!:\sys\bin\pvoscllib.dll"
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\pvoscl_v4_3.dll" -"!:\sys\bin\pvoscl_v4.3.dll"
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\pvmf_v4_3.dll" -"!:\sys\bin\pvmf_v4.3.dll"
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\samplepolymorphicdll.dll" -"!:\sys\bin\samplepolymorphicdll.dll"
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\supportedpolymorphicdll1.dll" -"!:\sys\bin\supportedpolymorphicdll1.dll"
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\supportedpolymorphicdll2.dll" -"!:\sys\bin\supportedpolymorphicdll2.dll"
    "C:\StatViews\vashishtha_rio_view\oscl\oscl\oscllib\test\build\s60v3\install\nointerfaceidsupported.dll" -"!:\sys\bin\nointerfaceidsupported.dll"

    Following are my mmp file details:

    // test_oscllib.mmp
    //
    //

    TARGET test_oscllib.exe
    TARGETTYPE exe
    UID 0x0 0x20003FA0

    START RESOURCE oscllibtest_reg.rss
    #ifdef WINSCW
    TARGETPATH \private\10003a3f\apps
    #else
    TARGETPATH \private\10003a3f\import\apps
    #endif
    END //RESOURCE

    SOURCE ..\..\src\test_oscllib.cpp
    SOURCE ..\..\src\test_oscllib_main.cpp

    //USERINCLUDE ..\..\..\..\..\..\pvmi\pvmf\include
    USERINCLUDE ..\..\..\src
    USERINCLUDE ..\..\..\..\..\unit_test\src
    USERINCLUDE ..\..\..\..\osclbase\src
    USERINCLUDE ..\..\..\..\osclmemory\src
    USERINCLUDE ..\..\..\..\osclerror\src
    USERINCLUDE ..\..\..\..\osclutil\src
    USERINCLUDE ..\..\..\..\osclproc\src
    USERINCLUDE ..\..\..\..\config\shared
    USERINCLUDE ..\..\..\..\config\s60v3
    USERINCLUDE ..\..\..\..\..\pvlogger\src
    USERINCLUDE ..\..\..\..\osclio\src

    SYSTEMINCLUDE \epoc32\include
    SYSTEMINCLUDE \EPOC32\INCLUDE\LIBC // for limits.h


    LIBRARY euser.lib
    LIBRARY estlib.lib
    LIBRARY efsrv.lib
    LIBRARY pvunittest.lib
    LIBRARY pvoscl_v4_3.lib
    LIBRARY pvmf_v4_3.lib
    LIBRARY pvoscllib.lib
    LIBRARY bafl.lib

    CAPABILITY TrustedUI ReadDeviceData WriteDeviceData AllFiles SwEvent ReadUserData WriteUserData Location SurroundingsDD UserEnvironment

    Following are my oscllibtest_reg.rss details
    #include < appinfo.rh >

    UID2 KUidAppRegistrationResourceFile
    UID3 0x20003FA0 // you app's UID3 here

    RESOURCE APP_REGISTRATION_INFO
    {
    app_file="test_oscllib";
    }

    // End of File

    I'd appreciate if someone could point out as to what could be the problem of not being able to link the icon with the actual exe.

    I also have a question here. Since it's a console application, I have set the UID2 to 0, since otherwise, it just wouldn't install on the device.

    However is it mandatory to have a valid UID value other than 0 for UID2 or will it work for the console app?

    Also does the UID2 and UID3 values have to be from within the protected range given by Symbian? Would the values work from the development range UIDs provided?

    Thanks & regards,
    Asheesh

  2. #2
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Australia, NSW
    Posts
    200

    Re: Trying to run a console application on the E61 device

    This seems correct, as I have almost the same and it works for several projects.

    The differences are:
    1. I do not have this:
      Code:
      ;Supports Series 60 v 3.0
      [0x101F7961], 0, 0, 0, {"Series60ProductID"}
    2. My resource is declared differently in MMP file:
      Code:
      START RESOURCE  ..\data\MyApp_reg.rss
          HEADER
      END
    3. I do not declare language in PKG file:
      Code:
      &EN
    4. My target device is N80.


    Are you sure your resource builds and is placed in the correct path and correct name? If you localize the application, the tools seem to generate localized compiled resources like *.r01, *.r02, etc instead of *.rsc.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    48

    Re: Trying to run a console application on the E61 device

    Thanks for your reply sysctl, but apparently the same resource file (.rsc) works on the emulator. I tried clicking on the resource file icon in the emulator and it simply launched my console application.

    However, the same resource file when copied over to the device, doesn't launch my console app.

    Any ideas as to what could be going wrong?
    Is the emulator not strict enough when it comes to the application of the UIDs?
    Appreciate any help in this regard.

    Thanks,
    Asheesh

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Australia, NSW
    Posts
    200

    Re: Trying to run a console application on the E61 device

    One last note, UID3 of my development version is set to 0x0000014.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    48

    Re: Trying to run a console application on the E61 device

    Thanks for the reply sysctl.
    How about your UID2?
    Have you set it to 0 or some other value?

    I believe since it's a console application, we set our UID2 to 0.
    Is that the case?

    Thanks,
    Asheesh

  6. #6
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Australia, NSW
    Posts
    200

    Re: Trying to run a console application on the E61 device

    To make it easier, here are my files:

    data/MyModuleTest_reg.rss
    Code:
    #include <appinfo.rh>
    
    UID2 KUidAppRegistrationResourceFile
    UID3 0x00000014
    
    RESOURCE APP_REGISTRATION_INFO
    {
        app_file="MyModuleTest";
    }
    group/MyModuleTest.mmp
    Code:
    TARGET          MyModuleTest.exe
    TARGETTYPE      exe
    CAPABILITY      NetworkServices
    UID             0 0x00000014
    
    USERINCLUDE     ..\inc ..\..\util\inc ..\..\mymodule\inc
    SYSTEMINCLUDE   \epoc32\include
    
    START RESOURCE  ..\data\MyModuleTest_reg.rss
        HEADER
    END
    
    SOURCEPATH      // ... source path
    SOURCE		// ... sources
    
    LIBRARY		euser.lib esock.lib mymodule.lib
    DEBUGLIBRARY    ecmtclient.lib
    sis/MyModuleTest_EKA2.pkg
    Code:
    #{"My Module Test"},(0x00000014),1,0,0
    
    ;Localised Vendor name
    %{"Vendor-EN"}
    
    ;Unique Vendor name
    :"Vendor"
    
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\MyModuleTest.exe" -"!:\sys\bin\MyModuleTest.exe"
    "$(EPOCROOT)Epoc32\data\MyModuleTest_reg.rsc" -"!:\private\10003a3f\import\apps\MyModuleTest_reg.rsc"
    "$(EPOCROOT)Epoc32\ErrRd" -"C:\Resource\ErrRd"
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\mymodule.dll" -"!:\sys\bin\mymodule.dll"

  7. #7
    Registered User
    Join Date
    Jan 2005
    Posts
    48

    Re: Trying to run a console application on the E61 device

    Thanks a lot, Sysctl for your reply. I really appreciate all your help in this regard.
    Actually I found out that I had wrongly typed in one of my dll names, and as a result, I started getting system error(-1) error.
    On fixing the name, my console app ran just fine.
    However, the font of the console application is very small.
    Is there a way to change the font of the console app?

    Thanks,
    Asheesh

Similar Threads

  1. How to run wtk2.5 SIP example on the device?
    By pankaj_hotwani in forum Mobile Java General
    Replies: 0
    Last Post: 2006-10-16, 10:00
  2. how to run application using j2me's Ktoolbar
    By ravibabu in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2006-10-13, 21:41
  3. Application crashes with OutOfMemoryError on E61
    By abhisarswami in forum Mobile Java General
    Replies: 3
    Last Post: 2006-10-12, 00:52
  4. Replies: 2
    Last Post: 2005-10-19, 10:08
  5. Run SMS Application
    By anupamforu in forum Mobile Java General
    Replies: 0
    Last Post: 2004-01-30, 06:40

Posting Permissions

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