After having spent an hour trying to make the series 60 SDK to work with Visual Studio 2003, i thought that i would write a little guide for all the newbies like me trying to get started with Symbian developement. Most of what i going to write has been written in different posts in this forum but the search facility here is so bad that it's often impossible to find the relevant posts. So here it all in a single post:
1) Make sure that you have VS 2003 *English* installed in its default directory (some SDK are only compatible with the English version of VS)
2) Download an SDK here: http://www.forum.nokia.com/main/0,6566,034-4,00.html
Do not install it yet.
I chose '1Ed, FP1, MS & Borland' since i want to develop for my Sendo X but the procedure should be similar for newer SDKs
3) Download Nokia Developer Suite (NDS) here: http://www.forum.nokia.com/main/0,,034-902,00.html
This is what allows you to use the SDK with VS. Do not install it yet.
4) If you don't have Java on your PC, download it here: http://java.sun.com/j2se/1.5.0/download.jsp
Choose 'JRE 5.0'
5) Download Active Perl here: http://www.activestate.com/store/lan...?id=ActivePerl
6) Install *in the following order*:
- JRE 5.0
- Active Perl
Always choose the default paths and options. This will make a mess on your PC by installing stuff everywhere (in the Program Files folder, at the root of your C: drive...) but at least, it's going to work
7) Restart your PC as requested
8) Launch Visual Studio and choose File -> Import Symbian Project.
9) A window will appear telling you that no SDK are enabled and asking you to enable one. A list of installed SDK will be displayed. Choose one (there should be only one displayed anyway unless you've installed several versions of the SDK) and click OK.
If <Not Available> is displayed in front of the SDK and you are not able to select the SDK, then this means that you either don't have an SDK compatible with Visual studio or that you have not installed things in the proper order. Make sure that you have installed the SDK and try to re-install NDS (NDS should be installed *after* the SDK), restart your PC and try again.
10) Now a window should be displayed asking you to choose a project file. Choose one of the sample projects supplied with the SDK, e.g:
Do not modify any path or option. Simply click OK until the project is opened in Visual Studio
11) Try to build the project by choosing Build -> Build Solution. You will get the following error: 'Error Spawning cl.exe'. Cl.exe is the compiler and linker. This error means that it couldn't be started. To fix this problem, go to Tools -> Options -> Projects -> VC++ Directories and add the following path: $(VSInstallDir)vc7\bin
12) Try the build the project again. You will get this typical Windows error: "Unable to find mspdb71.dll. Re-installing the program may fix the problem". This basically tells you to reformat and re-install everything. Of course, do not do that. Instead, go back to Tools -> Options -> Projects -> VC++ Directories and add the following path: $(VSInstallDir)Common7\IDE
13) Try to build the project again. This time, it should work!
14) If you want to create a new Symbian project, never use spaces in the project's path. For example, do not place your project in C:\Documents and Settings\Me\My Documents\Visual Studio Projects\My First Symbian Project\. If you do that, you may get one of those useless error messages when you'll try to build the project saying that a preprocessing tool has failed. Always create your projects in paths with shorts names and without spaces such as C:\MyProjects\Symbian1\
That's it. Enjoy.