How we can test or use our Symbian tools from command line
Sometimes command line can be very handy to use. You can compile, link and create the sis files by some scripts. We describe the process here step by step in this section.
- Press on Start button of your computer and select run, this will bring a console window.
- Type devices in the command line and that will show how many SDK installed. If you have only one SDK installed then this will show this SDK as default SDK but if you have several SDK installed then you need to change the SDK to right one before using it. For example, you have 3 different SDK (1 for S60 3.0, another for S60 3.1 (FP1) and another for S60 3.2 (Fp2)). If you used 3.2 SDK previous time and now you want to use 3.1 SDK then you can change the default SDK to S60 3.1. Here is how you can do that. Type the following command in your command line "devices -setdefault @S60_3rd_FP1_5:com.nokia.s60" S60_3rd_FP1_5:com.nokia.s60 is the SDK ID to which one you are going to change.
- Now in the console window, go to the group folder of your project and types "bldmake bldfiles" this will create a bat file in the group folder, that can be used for abld tools. More information can be found from this Symbian developer link
- Now type "abld build winscw udeb" to compile/build for emulator udeb (debug) environment and "abld build gcce" for gcce platform (both udeb and release version. We can use "abld build" for all platforms. If there were any errors in the source code that will be displayed in the console and those need to be fixed before we continue.
- Now we can type "epoc" in the command line that will launch our emulator. We can find our application by going to the application shell and launch it by opening it. By this way we can verify that our application works.
- We can remove the created binaries by using these commands "abld clean" this will removes intermediate files created during compilation and all the executables and import libraries created by the linker and "abld reallyclean" will do the job of "clean" and also remove the exported files.
- If you have pkg file in the sis folder then you can use "makesis HelloSymbian.pkg mysis.sis" to create a sis file
- Now you can sign the sis file if you have the key and certificate by this command "signsis mysis.sis mysis.sisx mydevice.cer mycompany.key", mydevice.cer and mycompany.key we can obtain by Symbian sign program
- Now we have a sisx file in our sis folder and that can be sent to phone and can be installed there.
