You Are Here:

Community: Wiki

This page was last modified on 17 October 2007, at 10:21.

Command line errors

From Forum Nokia Wiki

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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZdescriptionQSxEa0E20WikiE20javaE20symbianE5fosE20s60E20maemoE20cE2bE2bE20WikiE20HomeE20WikiE20HelpE20OverviewE20GlossaryE20CreateE20PageE20ProposeE20anE20ArticleE20SpotlightE20TopicE20E2dE20WE52TE20WidgetsE20ProgrammingE20E4canguageE20E2dE20SymbianE20CE2bE2bE20E2dE20OpenE20CE2fCE2bE2bE20E2dE20JavaE20E2dE20FlashE20E4citeE20E2dE20PythonE20WebE20TechnologiesE20E2dE20WE52TE20WidgetsE20E2dE20WidSetsE20ToolsE20andE20SE44KE20CodeE20E45E78amplesE20KnowledgeE20BaseE20TechnologyE20AreasE20SoftwareE20PlatformsE20E44evelopmentE20ProcessE20E3fE3fWikiE20ChineseE20E3fE3fE3fWikiE20JapaneseE20PortugueseE2fBrazilianE20E52ussianE20WhatE20linksE20hereE20UploadE20fileE20SpecialE20pagesE20PrintableE20versionE44ownloadE20asE20PE44FE20GoE20ToE20E2eE2eE2eX qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fHowE5ftoE5fgetE5fGE44E52E5ffontsX qdcZpublisherQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2fc764fd1cE2d8b06E2d499aE2d9a6aE2d17c3903d5a65E2fforumE5fnokiaE5fcrawlerE5fagentX qdcZtitleQSxHowE20toE20getE20GE44E52E20fontsE20E2dE20ForumE20NokiaE20WikiX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qrssZdescriptionQSxEa0E20WikiE20javaE20symbianE5fosE20s60E20maemoE20cE2bE2bE20WikiE20HomeE20WikiE20HelpE20OverviewE20GlossaryE20CreateE20PageE20ProposeE20anE20ArticleE20SpotlightE20TopicE20E2dE20WE52TE20WidgetsE20ProgrammingE20E4canguageE20E2dE20SymbianE20CE2bE2bE20E2dE20OpenE20CE2fCE2bE2bE20E2dE20JavaE20E2dE20FlashE20E4citeE20E2dE20PythonE20WebE20TechnologiesE20E2dE20WE52TE20WidgetsE20E2dE20WidSetsE20ToolsE20andE20SE44KE20CodeE20E45E78amplesE20KnowledgeE20BaseE20TechnologyE20AreasE20SoftwareE20PlatformsE20E44evelopmentE20ProcessE20E3fE3fWikiE20ChineseE20E3fE3fE3fWikiE20JapaneseE20PortugueseE2fBrazilianE20E52ussianE20WhatE20linksE20hereE20UploadE20fileE20SpecialE20pagesE20PrintableE20versionE44ownloadE20asE20PE44FE20GoE20ToE20E2eE2eE2eX qfnZdistributionQUxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2fX qfnZtopicQUqfnTopicZseriesE5f60QRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZupdatedQDx2008E2d10E2d03X qfnZuserE5ftagQSxs60X qmarsZdescriptionQSxEa0E20WikiE20javaE20symbianE5fosE20s60E20maemoE20cE2bE2bE20WikiE20HomeE20WikiE20HelpE20OverviewE20GlossaryE20CreateE20PageE20ProposeE20anE20ArticleE20SpotlightE20TopicE20E2dE20WE52TE20WidgetsE20ProgrammingE20E4canguageE20E2dE20SymbianE20CE2bE2bE20E2dE20OpenE20CE2fCE2bE2bE20E2dE20JavaE20E2dE20FlashE20E4citeE20E2dE20PythonE20WebE20TechnologiesE20E2dE20WE52TE20WidgetsE20E2dE20WidSetsE20ToolsE20andE20SE44KE20CodeE20E45E78amplesE20KnowledgeE20BaseE20TechnologyE20AreasE20SoftwareE20PlatformsE20E44evelopmentE20ProcessE20E3fE3fWikiE20ChineseE20E3fE3fE3fWikiE20JapaneseE20PortugueseE2fBrazilianE20E52ussianE20WhatE20linksE20hereE20UploadE20fileE20SpecialE20pagesE20PrintableE20versionE44ownloadE20asE20PE44FE20GoE20ToE20E2eE2eE2eX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ