Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Command line errors
"No rule to make target"
If the only IDE you have installed is Carbide.c++, command line builds for WINSCW (Windows Single process with CodeWarrior) target fail with a bunch of “No rule to make target” errors. If you need command line compilation for this target, you have to set up the environment variables as follows:
1. Select Start Menu > Settings > Control Panel > System > Advanced > Environment Variables (or: Start Menu > Windows Explorer > right click on My Computer > Properties > Advanced > Environment Variables).
2. Add a new system variable called CWFolder. Set its value to Carbide.c++ base install directory (the default is "C:\Program Files\Nokia\Carbide.c++ Express v1.2").
3. Add the following value to Path:
4. Add new system variable called MWCSym2Includes. Add the following paths to its value (separate them with semicolons):
%CWFolder%\x86Build\Symbian_Support\Win32-x86 Support\Headers\Win32 SDK
5. Add a new system variable called MWSym2Libraries. Add the following paths to its value (separate them with semicolons):
%CWFolder%\x86Build\Symbian_Support\Win32-x86 Support\Libraries\Win32 SDK
6. Add a new system variable called MWSym2LibraryFiles. Add the following libraries to its value (separate them with semicolons):
After setting up the environment variables, you can verify that the command line tools function correctly by following these steps:
1. Open the Command Prompt.
2. If you have several SDKs installed on your computer, set S60 3rd Edition SDK FP1 as the default device with the command
"devices -setdefault @S60_3rd_FP1:com.nokia.S60"
Otherwise, you can skip this step.
3. cd into
(“ABLD.BAT build”, to be precise). Notice that the build created in this phase is a WINSCW debug build, viewable only in the emulator.
6. If your environment has been set up correctly, the build goes through without errors.
7. To run the Hello World Basic application in the emulator, issue the epoc command. After a while, the emulator screen opens
8. If this is the first time you run the emulator, you will have to set locale information.
9. Navigate into Menu > Installed.
10. Run HelloWorld. If you are able to do this, the application has been compiled and can be run on the emulator. In other words, the command line tools of your SDK installation are OK.
Tip: It is not necessary to restart the emulator every time you make changes to your application. Just exit from the application, re-compile it, and manually re-run it from the emulator’s menu. However, there is an exception to this that concerns resource files.