You should compile that stuff for ARM architecture (depending on your device). In principle gcc can do that but it is a little bit of work because your need android ndk , android sdk and android built-tools .
I advice you to start very simple. Having a running empty app that calls a native c++ function. And once this is settled your should proceed to opencv.
Have a look at this. I made it https://github.com/skanti/Android-Manual-Build-Command-Line
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.