简体   繁体   English

如何将Android FBReaderJ源代码导入并编译到Eclipse(Windows)中?

[英]How to import and compile Android FBReaderJ source code into Eclipse (Windows)?

I want to import and compile FBReaderJ on eclipse. 我想在Eclipse上导入和编译FBReaderJ I have downloaded the latest source code from their website. 我已经从他们的网站下载了最新的源代码。 Is it necessary to install NDK and cygwin for compiling FBRreaderJ. 是否需要安装NDK和cygwin来编译FBRreaderJ。 If you can suggest me any tutorial OR helpful link. 如果您可以向我建议任何教程或有用的链接。

FYI: 供参考:

OS – Windows vista 操作系统– Windows Vista
Eclipse – [Helios 3.6] Eclipse – [Helios 3.6]
Android OS – 1.6 Android OS – 1.6

In the HowToBuild text file in the root dir, it gives instructions. 在根目录的HowToBuild文本文件中,它提供了说明。 It mentions the requirements: 它提到了要求:

  • Android SDK >= 1.6 Android SDK> = 1.6
  • Android NDK >= r4b Android NDK> = r4b
  • Apache Ant >= 1.7.0 Apache Ant> = 1.7.0
  • python 蟒蛇

And since the NDK requires cygwin 1.7 on Windows, it looks like you'll have some downloading to do. 由于NDK在Windows上需要cygwin 1.7,因此您似乎需要进行一些下载。

So yes, you need the NDK, Cygwin, and Python 是的,您需要NDK,Cygwin和Python

The text file also gives build instructions: 文本文件还提供了构建说明:

EDIT new instructions: 编辑新指令:

To build: 建立:

  1. Create 'local.properties' file containing sdk.dir && ndk.dir definitions: sdk.dir= ndk.dir= Eg, on my computer 'local.properties' consists of 2 lines: sdk.dir=/Users/geometer/android-sdk-mac_86 创建包含sdk.dir和&ndk.dir定义的“ local.properties”文件:sdk.dir = ndk.dir =例如,在我的计算机上,“ local.properties”由两行组成:sdk.dir = / Users / geometer / android -sdk-mac_86
    ndk.dir=/Users/geometer/android-ndk-r4b ndk.dir = /用户/几何学家/机器人-NDK-R4B

  2. If you use Linux or MacOS, just run 'ant package' and go to step 3. For debugging purposes, you might want to run 'ant dbg' for building the package in debug mode, signing with your debug key (in this case, you can skip step 3). 如果您使用的是Linux或MacOS,则只需运行“ ant package”并转到第3步。出于调试目的,您可能需要运行“ ant dbg”以在调试模式下构建该软件包,并使用您的调试密钥进行签名(在这种情况下,您可以跳过第3步)。

If you are Windows user 2a. 如果您是Windows用户2a。 Run ndk-build (a program from Android NDK directory) in your project catalog; 在项目目录中运行ndk-build(来自Android NDK目录的程序); This program only runs from Cygwin >= 1.7, please read NDK docs for details. 该程序仅从Cygwin> = 1.7运行,请阅读NDK文档以获取详细信息。 Read and try config cygwin using 'cygwin_installation_and_configuration.pdf' 2b. 使用“ cygwin_installation_and_configuration.pdf” 2b阅读并尝试配置cygwin。 Run 'ant release'. 运行“蚂蚁释放”。

  1. Sign your package manually. 手动签名您的包裹。

To make FBReaderJ working you can refer to the following link: https://github.com/geometer/FBReaderJ/raw/maste/docs/cygwin_installation_and_configuration.pdf it tells you all about how to download and intstall cygwin. 要使FBReaderJ正常工作,您可以参考以下链接: https : //github.com/geometer/FBReaderJ/raw/maste/docs/cygwin_installation_and_configuration.pdf它告诉您有关如何下载和安装cygwin的全部信息。 There is highest possibility of getting error: "NDK command not found". 出现错误的可能性最高:“未找到NDK命令”。 In that case refer to this link:: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ 在这种情况下,请参考以下链接:: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM