Objective : I wanted to change my existing OpenCV applications which were written in cpp for desktop version (X_86) processor to an ARM Architecture (imx6). At the initial stage I was not interested to change my cpp applications to java and compile it on Android Studio IDE, Before developing an Android app I wanted to benchmark the imx6 device, is capable to run my OpenCV applications how much time it take to process the video frames etc. So retaining my cpp applications as it is, I wanted to cross compile it for ARM Arch. and run it on Android Device (without GUI ).

I have done this experiment on imx6dl board running marshmallow Android and kernel 4.x.

This link is very good for beginners, till step no 8 it is very clearly written and I could follow it but Step no 9 onwards it is not properly written about where to keep demo applications, link & include libraries etc. when I tried step 9 in from that blog & tried to compile demo.cpp, It used to give an error *.hpp not found. I tried all the ways but was not able to solve.

Then I thought that let me first build sample applications comes with opencv sdk. my approach is as shown below.

Another one what you have mentioned in your reply, I am not very clear about that method. we need to build an android app or one more project in external folder and build it? If you know kindly update.