views:

106

answers:

1

Hello,

I want to import and compile FBReaderJ on eclipse. I have downloaded the latest source code from their website. Is it necessary to install NDK and cygwin for compiling FBRreaderJ. If you can suggest me any tutorial OR helpful link.

FYI:

OS – Windows vista
Eclipse – [Helios 3.6]
Android OS – 1.6

A: 

Hello

In the HowToBuild text file in the root dir, it gives instructions. It mentions the requirements:

  • Android SDK >= 1.6
  • Android NDK >= r4b
  • python

And since the NDK requires cygwin 1.7 on Windows, it looks like you'll have some downloading to do.

So yes, you need the NDK, Cygwin, and Python

The text file also gives build instructions:

To build:

  1. Create 'local.properties' file containing sdk.dir && ndk.dir definitions: sdk.dir= ndk.dir= E.g., on my computer 'local.properties' consists of 2 lines:
    sdk.dir=/Users/geometer/android-sdk-mac_86 ndk.dir=/Users/geometer/android-ndk-r4b

  2. If you use Linux or MacOS, just run 'ant package' and go to step 3. If you are Windows user 2a. Run ndk-build (a program from Android NDK directory) in your project catalog; This program only runs from Cygwin >= 1.7, please read NDK docs for details. 2b. Run ./createRawResources.py script. 2c. Run 'ant release'.

  3. Sign your package manually.

Marc