Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

How to build the project

Raphael Michel edited this page Apr 6, 2014 · 29 revisions

Checking out the source code

$ git clone https://github.com/raphaelm/opacclient.git opacclient
$ cd opacclient/
$ git submodule update --init --recursive

Import project in Eclipse

We assume you have an Eclipse installation ready for use with Android projects (SDK, ADT, ... set up properly).

  1. Import the project 3dparty/HoloEverywhere/contrib/ActionBarSherlock/library into Eclipse using File → New → Project → Android Project from Existing Code
  2. Rename the project to ABS_opacclient (right click → RefactorRename) if Eclipse names it just library (because in every workspace there can be only one project of the same name and the next we are going to import is called library by default, too).
  3. Do the same with 3dparty/HoloEverywhere/library (rename it to HoloEverywhere_opacclient if there are collisions with other project names in your workspace).
  4. Do the same with 3dparty/SlidingMenu/library (rename it to SlidingMenu_opacclient).
  5. Import the opacclient project the same way
  6. Make sure in the opacclient project the path to the HoloEverywhere project is set properly (right click → PropertiesAndroid and look under Libraries)

If you want to use EGit, importing the projects is a little bit more complicated:

  1. Import via File → Import... → Android → Existing Android Code Into Workspace in order to set up the project configuration correctly
  2. Delete the just imported project from the workspace
  3. Import again via File → Import... → Git → Projects from Git in order to have the EGit commands in the 'Team' group of the project's context menus.

Should work. If not, play around or email us. Happy hacking!

Build with ant

$ android update project -p 3dparty/HoloEverywhere/addons/preferences
$ android update project -p 3dparty/HoloEverywhere/library
$ android update project -p .
$ ant debug
Clone this wiki locally