Process record for compiling OPENCV Android version under Fedora25x86

Source: Internet
Author: User

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

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.