Preparation materials:
1.32-bit FEDORA25 (64-bit system is not recommended, according to my experience, there are many big pits waiting for you.) )
2.opencv2.4.13 source code (according to individual needs to choose the version can be)
3.32-bit r10e version of the NDK compiler platform (of course, must be 32-bit, can not use less than r10b version of the compiler, but also do not recommend the use of more than R12 compilation-I am not the expert in the study of compilers, may be used, but I do not currently, and no mind to study it)
Process:
1. Installation of Gcc,g++,cmake, make and other related tools
2. Install the JDK,32 bit
3. Install the APACHE-ANT,32 bit
4. Configure the NDK path, that is, open/etc/profile, append the path to the ANDROID_NDK variable, set the JDK environment variable, set the ant variable, and use the source command to make the environment variable you just set in effect (the details of this step are not said, online)
5. Enter the OPENCV source code platform/script/execution arm corresponding to the script, so CMake compile started
6,make, make install. Don't say much. This step does not require administrator privileges.
7. The generated files are under folder E:\env\opencv-2.4.13build4android\opencv-2.4.13\platforms\build_android_arm.
Finally, I wish you good luck!
Process record for compiling OPENCV Android version under Fedora25x86