how to run a console application built for emulator?

Login to reply to this topic.
Sun, 2007-08-05 16:21
Joined: 2007-08-05
Forum posts: 6

hi, guys,

I am a new comer to Symbian OS programming. Got trouble trying to run the HelloWorld.exe example.
How to run it? I built it from command line: abld build winscw udeb, and can find the exe under release/winscw
directory, the problem is when I launch emulator, I can't find it from the Installed folder.... Can anybody tell
me how to get it running? The SDK is S60 FP3.

Thanks in advance!

-- Li


Sun, 2007-08-05 16:52
Joined: 2007-08-05
Forum posts: 6
Re: how to run a console application built for emulator?

I think I've got the answer by myself.
Just run the .exe directly, instead of running epoc

Mon, 2007-08-06 09:20
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: how to run a console application built for emulator?

Just run the .exe directly, instead of running epoc

its more like a stop-gap solution than a correct one!!

I would say for your problem of not finding your application in the installed folder : check your registration file.

Tue, 2007-08-07 04:02
Joined: 2007-08-05
Forum posts: 6
Re: how to run a console application built for emulator?

Thanks for the reply!

The program I tried to run is from the SDK's example, do you mean the example have something wrong?

Since I am pretty new to symbian OS, can you tell me which one is the registration file?

Tue, 2007-08-07 08:12
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: how to run a console application built for emulator?

Guess you are talking about S60 2nd FP3. I dont know about that edition really, but in third edition for example if you are talking about helloworld, there would be Helloworldbasic_reg.rss in the data folder. You have to check for any relevant things for your edition(???am not sure like i said of 2nd ed)

Edit: But I thought 2nd edition had an app not an exe. So what edition are you talking really..3rd edition??...

Tue, 2007-08-07 10:39
Joined: 2007-08-05
Forum posts: 6
Re: how to run a console application built for emulator?

S60 3rd Edition SDK for Symbian OS, Supporting Feature Pack 1

I guess this is the full name

Tue, 2007-08-07 11:15
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: how to run a console application built for emulator?

I was confused with your first post which said

The SDK is S60 FP3.

For S60 3rd ed FP1 it might have the same helloworldbasic_reg.rss kind of file in the data folder. Check if that registration file for your application is there.

Tue, 2007-08-07 12:26
Joined: 2007-08-05
Forum posts: 6
Re: how to run a console application built for emulator?

Failed to find that file....

Tue, 2007-08-07 12:37
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: how to run a console application built for emulator?

you have to write it yourself then.

For the simple helloworldbasic from the example in the sdk, it looks something like this :

#include "Helloworldbasic.rls"
#include <appinfo.rh>
#include <Helloworldbasic.rsg>

UID2 KUidAppRegistrationResourceFile
UID3 0xA000017F

RESOURCE APP_REGISTRATION_INFO
  {
  app_file="HelloWorldBasic";
  localisable_resource_file =  STRING_helloworldbasic_loc_resource_file_1;
  localisable_resource_id = R_HELLOWORLDBASIC_LOCALISABLE_APP_INFO;

  embeddability=KAppNotEmbeddable;
  newfile=KAppDoesNotSupportNewFile;
  }

Write one which suits your needs making appropriate changes in the above.

Also I would suggest you to go through a few 'getting started' articles available on newlc, forum nokia sites...helps a lot to understand why codes are the way they are.

Tue, 2007-08-07 12:39
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: how to run a console application built for emulator?

Also remember to make changes in the mmp to reflect the same like :

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

Wed, 2007-08-08 05:09
Joined: 2007-08-05
Forum posts: 6
Re: how to run a console application built for emulator?

Thanks very much for your help!

I guess there are a lot of things I should take a look.

Wed, 2007-08-08 05:41
Joined: 2004-05-21
Forum posts: 285
Re: how to run a console application built for emulator?

Why is that _reg.rss file should go under \private\10003a3f\import\apps for target other than winscw? According to me the path will be same (\private\10003a3f\apps) for reg files for any target. Or is it that I am missing something?

Cheers,
Sri

Wed, 2007-08-08 08:06
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: how to run a console application built for emulator?

I myself am using \private\10003a3f\apps for any target in my project.

I had pasted that code from the helloworldbasic example given along with the SDK in the 3rd edition MR and didnt think it necessary to change anything.

Mon, 2007-08-13 09:52
Joined: 2005-01-18
Forum posts: 26
Re: how to run a console application built for emulator?

Please put "Textshell " in your epoc.ini..so that u r able to see your console base app on emulator.

Regards,
Parag Purkar

  • Login to reply to this topic.