×
Namespaces

Variants
Actions

Command line errors

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: seppo_fn (03 Apr 2007)
Last edited: hamishwillee (30 May 2013)

"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:

“%CWFolder%\x86Build\Symbian_Tools\Command_Line_Tools”

4. Add new system variable called MWCSym2Includes. Add the following paths to its value (separate them with semicolons):

%CWFolder%\x86Build\Symbian_Support\MSL
 
%CWFolder%\x86Build\Symbian_Support\MSL\MSL_C\MSL_Common\Include
 
%CWFolder%\x86Build\Symbian_Support\MSL\MSL_C\MSL_Win32\Include
 
%CWFolder%\x86Build\Symbian_Support\MSL\MSL_C\MSL_X86
 
%CWFolder%\x86Build\Symbian_Support\MSL\MSL_C++\MSL_Common\Include
 
%CWFolder%\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Common\Include
 
%CWFolder%\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Win32\Include
 
%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
 
%CWFolder%\x86Build\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs

6. Add a new system variable called MWSym2LibraryFiles. Add the following libraries to its value (separate them with semicolons):

MSL_ALL_MSE_Symbian_D.lib
gdi32.lib
user32.lib
kernel32.lib

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

"C:\Symbian\9.2\S60_3rd_FP1\S60Ex\HelloWorldBasic\group".

4. Type:

"bldmake bldfiles".

5. Type:

"abld build"

(“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.

This page was last modified on 30 May 2013, at 04:37.
37 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×