FBReaderJ Study Notes (1): compilation, fbreaderj Study Notes

Source: Internet
Author: User

FBReaderJ Study Notes (1): compilation, fbreaderj Study Notes

In fact, compilation is quite simple now, but most of the articles on the Internet are old and old. Now, in Windows, Cygwin is not required at all. You can use ndk-build directly.

1. Configure MakeFile

Open ../jni/Application. mk. The content is as follows. Here we configure the compilation platform. Sometimes we do not need to compile x86 or mips. After all, these platforms have fewer devices and increase the size of the installation package. Therefore, you can use the # symbol to comment out the installation package. The following content only compiles armeabi.

APP_ABI: = armeabi # APP_ABI: = armeabi armeabi-v7a x86 mips # APP_ABI: = allAPP_STL: = stlport_static

2. Start Compilation

Switch to the project directory and runNdk-build. The premise is that you have added the ndk and sdk directories to the environment variables.

OK. Isn't it easy? Start DIY your reader now!

In the next article, we will talk about how to use PopWindow to display the pop-up menu of the reading page.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.