Changes between Version 11 and Version 12 of DevelopingSymbianAppWithCarbide
- Timestamp:
- Dec 29, 2007 1:38:16 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopingSymbianAppWithCarbide
v11 v12 3 3 == Introduction == 4 4 5 Previously PJSIP did not support Carbide C++ as the development tools for Symbian target, since Carbide did not import PJSIP's MMP files properly. But with the release of Carbide 6 7 C++ version 1.2, it seems that Carbide is now able to build PJSIP projects properly. And since it seems that Nokia strongly suggests to use Carbide for the development tools 8 9 instead of !CodeWarrior, it may worth to write some small documentation to help you get started with developing PJSIP applications on Symbian using this tool. 5 Previously PJSIP did not support Carbide C++ as the development tools for Symbian target, since Carbide did not import PJSIP's MMP files properly. But with the release of Carbide C++ version 1.2, it seems that Carbide is now able to build PJSIP projects properly. And since it seems that Nokia strongly suggests to use Carbide for the development tools instead of !CodeWarrior, it may worth to write some small documentation to help you get started with developing PJSIP applications on Symbian using this tool. 10 6 11 7 This document covers the following topics: … … 19 15 20 16 For this tutorial, we will need: 21 - [http://www.forum.nokia.com/info/sw.nokia.com/id/4a7149a5-95a5-4726-913a-3c6f21eb65a5/S60-SDK-0616-3.0-mr.html Symbian S60 3rd Edition Maintenance Release (MR)]. Other SDK 22 23 versions may work, but I did not test it. 24 - [http://www.forum.nokia.com/info/sw.nokia.com/id/dbb8841d-832c-43a6-be13-f78119a2b4cb.html Carbide C++ version 1.2]. You will need the Developer Edition to do on-device 25 26 debugging (21 days evaluation is available). 17 - [http://www.forum.nokia.com/info/sw.nokia.com/id/4a7149a5-95a5-4726-913a-3c6f21eb65a5/S60-SDK-0616-3.0-mr.html Symbian S60 3rd Edition Maintenance Release (MR)]. Other SDK versions may work, but I did not test it. 18 - [http://www.forum.nokia.com/info/sw.nokia.com/id/dbb8841d-832c-43a6-be13-f78119a2b4cb.html Carbide C++ version 1.2]. You will need the Developer Edition to do on-device debugging (21 days evaluation is available). 27 19 - [http://europe.nokia.com/A4144903 Nokia PC Suite] for the connectivity between the device and your PC (I use version 6.85) 28 20 - Latest PJSIP from SVN trunk … … 42 34 === Carbide === 43 35 44 Follow the installation instructions in the Carbide C++ documentation. The installation should be straightforward, but don't forget to '''select the Developer's Edition''' 45 46 (instead of Personal Edition) to get the On-Device debugging/TRK Debugging feature. 47 48 (There is a 21 days evaluation period for the Developers Edition. If you have installed Carbide before and your evaluation period is over, you may not be able to select the 49 50 Developers Edition, and you will have to purchase the Developers license) 36 Follow the installation instructions in the Carbide C++ documentation. The installation should be straightforward, but don't forget to '''select the Developer's Edition''' (instead of Personal Edition) to get the On-Device debugging/TRK Debugging feature. 37 38 (There is a 21 days evaluation period for the Developers Edition. If you have installed Carbide before and your evaluation period is over, you may not be able to select the Developers Edition, and you will have to purchase the Developers license) 51 39 52 40 … … 88 76 [[Image(import_bld.JPG)]] 89 77 90 Then on the SDK selection dialog, select the build configurations that you want to support. For this tutorial, select WINSCW and GCCE from S60 3rd Edition MR SDK, and press 91 92 '''Next''' button: 78 Then on the SDK selection dialog, select the build configurations that you want to support. For this tutorial, select WINSCW and GCCE from S60 3rd Edition MR SDK, and press '''Next''' button: 93 79 94 80 [[Image(import_sdk.JPG)]] … … 124 110 === Select the Build Configuration === 125 111 126 First select the build target by selecting '''Project''' --> '''Active Build Configuration''' from main menu, or right clicking the ''Bld.inf'' or ''pjproject'' item from 127 128 ''Symbian Project Navigator'' pane from the bottom left part of the main window. 112 First select the build target by selecting '''Project''' --> '''Active Build Configuration''' from main menu, or right clicking the ''Bld.inf'' or ''pjproject'' item from ''Symbian Project Navigator'' pane from the bottom left part of the main window. 129 113 130 114 Select '''Phone Debug (GCCE) [S60_3rd_MR]''' from the menu: … … 138 122 [[Image(build.JPG)]] 139 123 140 Wait for the build process to complete. Once it completes, watch out for any errors in the ''Problems'' pane (at the bottom center). There shouldn't be any errors, although there 141 142 may be few warnings which I think can be ignored, for now: 124 Wait for the build process to complete. Once it completes, watch out for any errors in the ''Problems'' pane (at the bottom center). There shouldn't be any errors, although there may be few warnings which I think can be ignored, for now: 143 125 144 126 [[Image(build_problems.JPG)]] … … 157 139 === Set the .pkg File to be Used === 158 140 159 First we'll need to configure the .pkg file to be used to generate the .sis file. PJSIP provides some sample .pkg files which can be used, however there may be few editing needed 160 161 befor you can use them (this is because the .pkg file contains absolute directory path for your Symbian SDK, which may be different on your installation). 141 First we'll need to configure the .pkg file to be used to generate the .sis file. PJSIP provides some sample .pkg files which can be used, however there may be few editing needed befor you can use them (this is because the .pkg file contains absolute directory path for your Symbian SDK, which may be different on your installation). 162 142 163 143 Assign the .pkg file to be used by the project by selecting Project Properties: … … 166 146 167 147 Then this dialog below will appear. On this dialog: 148 149 [[Image(project_properties_menu.JPG)]] 150 168 151 1. Select ''Carbide Build Configuration'' from the tree. 169 152 1. Make sure that the Active Configuration is set to '''Phone Debug (GCCE) [S60_3rd_MR]''' … … 200 183 Check that: 201 184 - the SDK path is correct 202 - later, if you ever want to create the Release version of the application, you will need to rename '''UDEB''' to '''UREL'''. But we can leave this to '''UDEB''' for now, since 203 204 we want the Debug version of the application. 185 - later, if you ever want to create the Release version of the application, you will need to rename '''UDEB''' to '''UREL'''. But we can leave this to '''UDEB''' for now, since we want the Debug version of the application. 205 186 206 187 Once you are done with the modification, save the file. We can close the file editor window now. … … 242 223 [[Image(phone_usb.JPG)]] 243 224 244 If this is the first time you connect your phone to the PC, then it may take some time for Windows to install the USB drivers for the phone. Wait for it to complete and the Nokia 245 246 PC Suite and PC Sync icons on the task bar tray become green: 225 If this is the first time you connect your phone to the PC, then it may take some time for Windows to install the USB drivers for the phone. Wait for it to complete and the Nokia PC Suite and PC Sync icons on the task bar tray become green: 247 226 248 227 [[Image(pc_suite.JPG)]] … … 251 230 === Installing TRK Application on the Phone === 252 231 253 Install TRK support on the phone. The TRK application can be found in {{{C:\Program Files\Nokia\Carbide.c++ v1.2\plugins\com.nokia.carbide.trk.support_1.2.0.29\trk\s60}}} 254 255 directory. For my phone, the one that works is {{{s60_3_0_app_trk_2_7.sisx}}}. Right click this .sisx file and select '''Install with Nokia Application Installer''': 232 Install TRK support on the phone. The TRK application can be found in {{{C:\Program Files\Nokia\Carbide.c++ v1.2\plugins\com.nokia.carbide.trk.support_1.2.0.29\trk\s60}}} directory. For my phone, the one that works is {{{s60_3_0_app_trk_2_7.sisx}}}. Right click this .sisx file and select '''Install with Nokia Application Installer''': 256 233 257 234 [[Image(trk_path.JPG)]] … … 348 325 349 326 New configuration will appear on the dialog. We need to edit few things: 350 1. Rename the configuration name from '''pjproject Phone Debug...''' to '''symbian_ua Phone Debug...''', as seen in the picture below. (Hints: when we have different executable 351 352 to debug, we will create different configuration). 327 1. Rename the configuration name from '''pjproject Phone Debug...''' to '''symbian_ua Phone Debug...''', as seen in the picture below. (Hints: when we have different executable to debug, we will create different configuration). 353 328 1. Set the ''Executable'' 354 329 1. Set the ''Remote process to launch'' … … 362 337 ==== Configure TRK Connection ==== 363 338 364 Now select '''Connection''' tab. Choose the '''Serial Port''' to the COM port where your phone connection is mapped to, which you have found out from the step above (look at the 365 366 Device Manager). In my case, it was COM3: 339 Now select '''Connection''' tab. Choose the '''Serial Port''' to the COM port where your phone connection is mapped to, which you have found out from the step above (look at the Device Manager). In my case, it was COM3: 367 340 368 341 [[Image(debug_connection.JPG)]] … … 387 360 Still in the '''Debug''' dialog, press the '''Debug''' button. Hold your breath! 388 361 389 Carbide now may rebuild the project (you may take a peek on what it's doing by looking at '''Console''' tab). Once it's done, Carbide will switch to ''Debug Perspective'' and the 390 391 SIS file will be downloaded to the phone and this window will appear briefly: 362 Carbide now may rebuild the project (you may take a peek on what it's doing by looking at '''Console''' tab). Once it's done, Carbide will switch to ''Debug Perspective'' and the SIS file will be downloaded to the phone and this window will appear briefly: 392 363 393 364 [[Image(debug_download.JPG)]] … … 423 394 424 395 396 ---- 397 398 == Other Resources == 399 400 Checkout: 401 - [http://newlc.com/Carbide-c-Setting-up-On-Target.html Carbide.c++: Setting up On Target Debugging | NewLC] 402 403 404 405 406 407 408 409