Running Dragonfly SDK from source / Setting Up Dragonfly SDK Development Environment

From BUG Wiki

Jump to: navigation, search

Setting up SDK Dev Environment / Running SDK from source

  1. Checkout TeamSets from svn.buglabs.net (DragonflySDK.psf at svn://svn.buglabs.net/dragonfly/trunk/TeamSets )
  2. Make sure PDE is installed, you can get it from the Europa Discover Site -> Java Development -> Plugin Development Envoronment
  3. Right click on DragonflySDK.psf and choose 'Import Project Set...' - plugins will be downloaded to your workspace
  4. Install CTE using update site http://concierge.sourceforge.net/
  5. Create a library where phoneME jars will be references, call it phoneME Advanced Personal, use this zip file to get needed files. Refer to these instructions on how do add a library (although those instructions are a bit confusing, so I'll go over what to do below).
    1. Unzip that zip file and the result will be a PhoneME folder. Put that somewhere near but outside your workspaces.
      1. I have a folder in my home dir called work and a workspaces folder in their, so I added PhoneME under work -- ~/work/PhoneME
    2. Right Click on any project and Select Build Path -> Configure Build Path
    3. Under the Libraries tab, you will probably see "phoneME Advanced Personal". Select that one and click Edit. If you don't see that one, select "Add Library".
    4. If you had to select "Add Library", select "User Library" in the next dialog. Otherwise, you'll already be at the User Library dialog.
    5. The Selected User Libraries pane may be blank. You need to add phoneME as a user library. Select "User Libraries..." button on the right of the pane. If it's not blank and you already have phoneME Advanced Personal there, just follow along to make sure everything is working right.
    6. In the next dialog select New...
    7. Under User library name: (in the subsequent dialog) type "phoneME Advanced Personal" exactly (but without the quotes). Caps are important.
    8. Select OK, and you'll see that new user library in a list. Select it and then click "Add Jars..." To the left.
    9. Browse to the PhoneME folder from the step above and select btclasses.zip and personal.jar.
    10. Keep clicking OK, Finish, Ok, etc until you're out of the dialogs.
  6. In the Eclipse Toolbar, go to Project -> Clean -> Clean All Projects... red x's should disappear from your workspace (for the most part).
  7. Export all of the emulator, etc. packages into com.buglabs.dragonfly.bug.kernel (everything bug dragonfly, concierge, & phoneme).
    1. Highlight each of the projects (except *.dragonfly.* *.concierge.* *.phoneme.*)
    2. Right click and export as Concierge OSGi->Concierge Bundle
    3. Navigate to com.buglabs.dragonfly.bug.kernel project in your workspace and drop them into com.buglabs.draonfly.bug.kernel/kernel
  8. Create a launch configuration for the SDK
    1. Run->Open Run Dialog
    2. Name it something (Dragonfly SDK)
    3. Click Run