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.