Since the Series 60 application can be established from the command prompt or IDE, we will introduce these two methods in detail. We first start using the C compiler provided by the IDE to establish analog (that is, the X86 instruction set) of the Simulator (also x86 instruction set). We simultaneously use debugging, so you can use symbol debug information and memory vulnerability check (dynamically check if the memory allocated on the stack is properly released).
Establish a program from the command line
Open the command prompt and change the current path to the drive / folder containing the Series 60 SDK. Navigate to the folder containing the project definition (HelloWorld.MMP) and component description (BLD.INF) file - for example:
/ Symbian / series602_0 / emccsoft / helloworld / group
The above code is used for Series 60 2.x projects, or
/Ssymbian/6.1/series60/emccsoft/helloWorld/group
The above code is used for Series 60 1.x projects. And enter:
BLDMAKE BLDFILES
This command is completed after a two second, it does not have any visible output. It generates a new file abld.bat using bld.inf and helloworld.mmp file. This command file is generally generated as needed. Unlike BLD.INF and .MMP files, abld.bat cannot migrate between different IDEs and should not be modified manually.
Enter the following command compile and link items:
Abld Build Wins UDEB - Used for Visual C Abld Build Winsb Udeb - for Borland C Abld Build Winscw UDeb - for CodeWarrior
The abld command will establish the project for the Series 60 Simulator (WINS, WINSCW, or WINSB) (in other words, it is compiled and linked), and the debug information is included in the binary executable. Create a program project from the IDE (for example, our example helloworld application) usually establishes and runs in an IDE, so we need to use BLD.INF and HelloWorld.MMP files to establish a specific IDE project file. For Visual C , this work must be done using the tool provided by Symbian. This is optional for Borland and CodeWarrior, because both IDEs can import BLD.INF or .MMP files to establish IDE project files. When we start working from the command prompt, if the abld.bat file does not exist, it is necessary to build it; if the .mmp file or bld.inf file changes, you need to re-establish it. Enter the following contents to create an ABLD command file: BLDMAKE BLDFILES Opens the Microsoft Visual C to open the command prompt, navigate to the Drive / Item folder of the HelloWorld project, and enter: abld makefile vc6 This will build a suitable Microsoft Visual C projects and workspace files (HelloWorld.DSP and .dsw files). They will be located under the / EPOC32 / Build subfolder structure; its complete path depends on the position of the SDK, for example: / EPOC32 / Build / Emccsoft / HelloWorld / HelloWorld / Wins opens workspace files in Visual C (HelloWorld.dswor ), You can compile or link applications, which is implemented by pressing F7 or using the IDE menu option build | build helloworld.app. Use the Borland C IDE Builder 6 Create a program If you use Borland C Builder 6 mobile version (it is based on Borland C Builder 6 people version and add mobile plug-ins), you can simply put the HelloWorld project's BLD The .inf file is imported into the IDE. Use the File | New | Other menu option, then select the Import Mobile Application of the Mobile (Mobile) page in the dialog box. Browse the location of the component description file (BLD.INF) and open it. Use the Project | Make created in the Ctro F9 or menu. In order to establish and run, use Run | Run in the F9 or menu. Note that F9 or Run | Run will cause the project to re-establish each time. If you run on the simulator, use Tools | Mobile Build Tools | Run Emulator (Tools | Moving Tools | Run Simulator). IDE may prompt you to save a large number of project-related files, such as Borland project (.bpr), Borland project group (.bpg) file. The location saved by these files is the same as the folder of your BLD.INF file. We can also perform a stand-alone abld command and run other SDK tools (such as Aifbuilder and SiSar on the Tools | Mobile Building Tools menu.
When using the Borland C Builderx creation program, you can simply import the bld.inf file of the HelloWorld project into the IDE. Use File | New and click on the Mobile C data page in Object Gallery. Select Import Symbian C Project (Import Symbian C ). Select the correct Series 60 SDK from the drop-down list, browse the position of the BLD.INF file of the project. Click the next NEXT data page to take a name to the project, click the Finish data page, and the project will open. Press Ctrl F9 or Project | make Project. Press F9 or select Run | Run Project or use the Tools Class Make and Run to run the project. Using the CodeWarrior IDE creation program If you use MetrowerKs CodeWarrior for Symbian (personal version 2.5, other versions may have a slightly different), you can simply use the IDE menu option file | import project from .mmp file (files | MMP file import projects to import HelloWorld.mmp files. This will run the project conversion wizard. Select the SDK, select (or browse) .MMP files used, select a WinscW platform (or make it empty). The default value of the build variable is UDEB. Use the Project | Make in the F7 or menu to establish a project. CodeWarrior project files (.cmp, .xml, .resources, and .pref files) are automatically built in the directory where the HelloWorld.MMP file is located. You can also choose to build a CodeWarrior IDE project through the command line. Run the BLDMAKE BLDFILES described above, then generate a CodeWarrior IDE item: abld makefile cw_ide This will create a project file in the directory HelloWorld.xml: / EPOC32 / build / emccsoft / helloworld / helloWorld / Winscw now you can Import this file with CodeWarrior and generate a local project (.mcp) file. Select the File | Import Project menu option, select the HelloWorld.xml file, select a name (for example, HelloWorld) for the project. CodeWarrior will generate and load the project, you can use the normal IDE command to create, run, debug, etc. Author: Tao Gang build time: 2004-12-07 Source: NEW YORK