Compile Android PDK packages in Eclipse

Android PDK is built with standard make so it is possible to setup Eclipse to compile it. The only trick is to use C++/makefile project instead of generic makefile project. For some strange reason error parsers for generic makefile project do not work so as a result you can only see console output of the build and not errors / warnings.

To setup package (or the whole PDK) to build in Eclipse

  • Start Eclipse from shell window with configured PDK
  • Create C++/makefile project
  • Open properties, builders. Replace “all” with -j4 -C
  • Add ONE_TIME_MAKEFILE environment variable pointing to Android.mk file for your package
  • Build your code
  • As a useful addition you can add path to your sources


    Leave a Comment »

    No comments yet.

    RSS feed for comments on this post. TrackBack URI

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )


    Connecting to %s

    Create a free website or blog at WordPress.com.

    %d bloggers like this: