Really trying to learn Symbian C++

Login to reply to this topic.
Thu, 2005-02-03 17:20
Joined: 2004-10-23
Forum posts: 24
Hi
Symbian newbie here. I got this Symbian book from symbian press.
I got the 15 day trial of Metrowerk's Codewarrior 2.5. But while I was reading the book it was making references to UIQ SDK which I did not download.
What is UIQ - is UIQ is the core while Codewarrior is just the SDK ?
Is it possible to compile without Codewarrior (since its 15 day trial) and just UIQ alone ? Can't we build using DOS Commands like J2ME where Codewarrior for Java is not required if Im ok with command line prompt ?
I thought Symbian OS SDK was open source ?
Please help me in the right direction.
Thanks


Thu, 2005-02-03 18:04
Joined: 2004-07-10
Forum posts: 364
Re: Really trying to learn Symbian C++
Which Symbian book are you talking about? I'm surprised this isn't explained in there.
CodeWarrior is an IDE while UIQ is an SDK. If you look around this site, i.e. the getting started sections you should find all the answers you needn.
Fri, 2005-02-04 13:04
Joined: 2004-10-23
Forum posts: 24
Just UIQ SDK ?
So I wouldnt need Codewarrior to compile, run and emulate a symbian c++ code ? Just UIQ SDK and some free emulators from Nokia etc ?

Book Info:
Symbian OC C++ for Mobile Phones by Richard Harrison
Symbian Press (WILEY - Indian Edition)
2004 Edition

Fri, 2005-02-04 15:14
Joined: 2004-07-28
Forum posts: 1379
Really trying to learn Symbian C++
Depends.

You only need CodeWarrior/what ever other IDE if you plan to build and run on the emulator on the PC.

You get all the tools you need to build for a real phone when you get the SDK.

But to build on the PC, you need a suteable compiler.

didster

Fri, 2005-02-04 16:13
Joined: 2004-10-23
Forum posts: 24
Really trying to learn Symbian C++
I do plan to compile,run and emulate on a PC. But is possible to do all that in command prompt as in J2ME ? To code in Java I use a texteditor - no SDK.
Does UIQ come with Symbian C++ compiler ?

Sat, 2005-02-05 02:49
Anonymous (not verified)
Forum posts: 2043
Really trying to learn Symbian C++
CodeWarrior isn't the only IDE, you can use MSVC++ or Borland. However having said that I don't know from memory if UIQ only supports CodeWarrior or not.
Sat, 2005-02-05 04:17
Joined: 2004-10-23
Forum posts: 24
Really trying to learn Symbian C++
MVC++ 6 can be used to code c++ for Symbian OS ? Wouldnt the compiler differ ?

Sat, 2005-02-05 10:56
Joined: 2004-07-28
Forum posts: 1379
Really trying to learn Symbian C++
You can only use what your SDK supports.

If you have a code warrior SDK you must use that

Like wise if you have a MSDEV one

didster

Sat, 2005-02-05 11:54
Joined: 2004-10-23
Forum posts: 24
Really trying to learn Symbian C++
Take J2ME for example. All I need is the J2ME compiler, preverifier, jar maker. The emulator comes with the toolkit. Im not using any SDK. I just type in notepad and run the commands in command prompt. Whatever SDK's are available for J2ME - they all rely on Sun Microsystem's Java Micro Edition for basics.
Is there a similar thing like this for Symbian ? Instead using some SDK like Codewarrior, can I compile a program in Symbian C++ ? Meaning where else can I get Symbian C++ compiler instead of from a SDK ?

Sat, 2005-02-05 21:17
Anonymous (not verified)
Forum posts: 2043
Really trying to learn Symbian C++
Hi,
Did u mistook the 'Location' for 'Occupation'  Wink
Anyway just download the uiq 2.1 sdk as it does not
necessarily require CW,u can compile using the cmd prompt only.
Also all the programs will work on P800/900 without any errors
or issues.
Bye.
Sun, 2005-02-06 01:30
Joined: 2004-08-19
Forum posts: 112
Really trying to learn Symbian C++
Quote from: anjanesh
MVC++ 6 can be used to code c++ for Symbian OS ? Wouldnt the compiler differ ?

Yes, you can do it from the command line. The SDK uses a rather complicated build process, although it's automated so you don't have to worry about it too much (however, it is relatively slow). It needs Perl, too.

You need both the SDK (because this is where the various headers, emulators, libraries, build scripts are) and a compiler (MS VC++ 6 (but 7 .NET seems to work all right, too), CodeWarrior or Borland C++). The SDK also comes with a ported version of GCC.

You have two parallel avenues to go. When you build for the emulator, you use one of the compilers mentioned to compile something that is basically a Windows program but linked against the libraries coming with the SDK (the emulator, as it seems, doesn't emulate the processor, it emulates the environment the program runs in; so you compile to x86 code but one that will run in a simulated Symbian environment).

When you build for the target device (the phone), you'll use the GCC compiler bundled with the SDK. The build process will handle everything up to the creation of the installation package to be deployed on the phone.

The build process is similar in both cases, simple arguments decide which target you actually build for.

You can do the full development from the command line, using a simple Make.bat batch file, or from the IDE of the compiler—you decide. The only thing you don't get when you compile from the command line is debugging in the emulator.

Bye,
  Gábor

Bye,
Gábor

Sun, 2005-02-06 05:01
Joined: 2004-10-23
Forum posts: 24
Really trying to learn Symbian C++
So UIQ SDK is the basic requirement for Symbian OS C++ coding. I was hoping to get some sort of an RTOS for Symbian. But I guess thats yet to be available.
Quote
Also all the programs will work on P800/900 without any errors
. Im actually targetting Nokia 60 and 80 series. Nokia SDK for Java, Codewarrior available. Nokia SDK for UIQ not there ?
Thank you so very much for your time and help.

Sun, 2005-02-06 11:55
Joined: 2004-08-19
Forum posts: 112
Really trying to learn Symbian C++
Quote from: anjanesh
So UIQ SDK is the basic requirement for Symbian OS C++ coding.

No. There are two SDKs, one for Series 60 (Nokia, Siemens, Sendo, download from Nokia) and another one for UIQ (Sony-Ericsson, download from them). If you plan to develop for the first, you don't need the second one.

One of the SDKs is required, yes. The SDK is sufficient for compiling for the target. It's only for the Windows-hosted emulator that you need a separate compiler.

Bye,
  Gábor

Bye,
Gábor

Sun, 2005-02-06 14:36
Joined: 2004-10-23
Forum posts: 24
Really trying to learn Symbian C++
Codewarrior 3 Pro and 2.8 Standard are available for download from Nokia - but it 15 day trial. So I wouldnt be able to use them for more than 15 days.
So, the Nokia SDK for Symbian OS alone is enough for my Symbian C++ coding (including compiling for the emulator) ?

Sun, 2005-02-06 15:22
Joined: 2004-11-03
Forum posts: 26
Really trying to learn Symbian C++
As per what djgtram & didster said - the SDK will compile for target only.

This article may be useful:

http://www.newlc.com/article.php3?id_article=463

Scarfman007
Sun, 2005-02-06 16:27
Joined: 2004-10-23
Forum posts: 24
[SOLVED]
Thank You very much. Now I got a clear idea of what I need to do.

  • Login to reply to this topic.