Really trying to learn Symbian C++
| Thu, 2005-02-03 17:20 | |
|
|
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 |






Forum posts: 364
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.
Forum posts: 24
Book Info:
Symbian OC C++ for Mobile Phones by Richard Harrison
Symbian Press (WILEY - Indian Edition)
2004 Edition
Anjanesh
Forum posts: 1379
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
Forum posts: 24
Does UIQ come with Symbian C++ compiler ?
Anjanesh
Forum posts: 24
Anjanesh
Forum posts: 1379
If you have a code warrior SDK you must use that
Like wise if you have a MSDEV one
didster
Forum posts: 24
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 ?
Anjanesh
Did u mistook the 'Location' for 'Occupation'
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.
Forum posts: 112
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
Forum posts: 24
Thank you so very much for your time and help.
Anjanesh
Forum posts: 112
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
Forum posts: 24
So, the Nokia SDK for Symbian OS alone is enough for my Symbian C++ coding (including compiling for the emulator) ?
Anjanesh
Forum posts: 26
This article may be useful:
http://www.newlc.com/article.php3?id_article=463
Scarfman007
Forum posts: 24
Anjanesh