0 Android Basic Configuration WIN7_32+OPENCV2.4.6+ECLIPSE+NDK, etc.

Source: Internet
Author: User

Do not vomit, originally Android + C mode should be the most ideal way to transplant OpenCV code, but due to the online environment blog Less & old , Jdk,sdk,ndk,eclipse casually updated several versions, there are a lot of things are not the same, no way , want to transplant the environment, to accompany the new version of the environment, you have to pay a painful collision dead end of the price.

Learning OpenCV for some time, before trying to transplant it into embedded Linux, through the QT implementation of related functions, unfortunately due to various versions of the problem, OCV, QT, qte Three is always incompatible, with a nearly one months end stranded, This attempt to transplant Android is also ready to prepare, although looking at some of the brothers wrote a two-day match, but not so idealistic, and finally in 3 days with good, tragedy, which all kinds of toss not let Dick Silk bo master I collapsed, especially here list my reference blog and my lessons.

First, configuration jdk,sdk,adt,ndk, etc.

Here bloggers use the jdk-7u67, SDK is Android4.3.1 (my phone version), ADT is the next eclipse comes with, but also basic is the latest (before using the Luna version, unfortunately halfway I thought it was ADT problem compiled, and replaced by Juno version, R9 also replaced R10, should not hinder), the NDK with the latest R10 .

(Here I do not dare to mess to ensure that the JDK replaced 8, Android under W, L line not, I only use my own experience, I use the above version, can be equipped with the environment I want, you want to use the new NDK, you try, do not dare to try, still like predecessors with R6, R7, I have no foundation, anyway I tried Because I am too lazy to pretend that Cygwin, since saw someone said R7 start without pretending, I ventured to try, fortunately became. )

As of the NDK, I was able to import the JNI sample successfully displayed in the simulator this part, referring to the NDK bar of a great God's post, video, he detailed the configuration process, also take into account the introduction of some things, the post is as follows:

Http://jingyan.baidu.com/article/3ea51489e7a9bd52e61bbac7.html

As for those who said Cygwin must be installed, I did not control, installed Sequoyah, encountered problems also solved, but the project was broken, so the second I did not install, anyway I do not use.

Second, import opencv-android-sdk

This is the most painful place for bloggers, because there is no successful import, so all kinds of suspicion before the configuration is not incompatible, etc., tangled with a variety of written non- Cygwin blog in the Lib and sample import method, no success, finally, the blogger has decided to replace OPENCV version, Before the official website of the 2.4.9, can be how to import are red fork, cried all to, finally found in the official website only provide 2.3.1 library can successfully import, from the CSDN download channel search 2.4.2 and 2.4.6 version of the SDK, import found 2.4.6 no problem, then the landlord is broken eggs, 2.3.1 and 2.4.9 is the official website , the other is shared by netizens, this is why 4.6 and 3.1 can be imported, Bo Master before using 2.4.9 all kinds of dying tried n times, forget. Be good.


Third, test OpenCV sample & self-built C + + test program

After the successful import of opencv2.4.6, test sample, there are several can run on the virtual machine, normal, there are several build success but run no response, no matter. Then follow the previous reference to the Great God's blog to try to build their own new Android project, unexpectedly, the success of the build, the simulator did not respond, Baidu apk export method, export, transfer mobile phone, installation, unexpectedly can use,, Lou Zhu now tears thousand line


About the master of the Great God Import library, build test program of the post main reference

http://blog.csdn.net/watkinsong/article/details/9849973

The cattle of the 11th part of the introduction is very detailed, go out of the individual order problems and in order to introduce the code of the various unreasonable <> (forgive the landlord is a Java layman, thought is part of the code), no big problem, anyway, the conclusion is Bo master at present this small example success, After the thought can be the VC on the various procedures to transplant to the mobile phone on a variety of excitement. Afraid of having fellow travelers encounter similar to me OPENCV SDK import Eclipse failure, wrote this blog post, hope Baidu can search, not like Bo master at that time. Alas, all are tears, and drunk, and

There is also a great God's blog, although the use of some compiled C + + tools, but there is a certain reference value, also listed below:

http://blog.csdn.net/yanzi1225627/article/details/27863615

Oh, bo Master 0 based on nearly 3 days, compared to the Linux to bring me the trauma, really not what, I wish you good luck ~ ~

2014.10.7





0 Android Basic Configuration WIN7_32+OPENCV2.4.6+ECLIPSE+NDK, etc.

Related Article

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.