shehel / AR_Android

Android application for image matching using OpenCV's ORB patch description algorithm with Android NDK.
9 stars 3 forks source link

when trying to build ran into Gradle-Error #3

Open gewure opened 4 years ago

gewure commented 4 years ago

ERROR: ABIs [armeabi, mips, mips64] are not supported for platform. Supported ABIs are [arm64-v8a, armeabi-v7a, x86, x86_64].

Investigating brought me to this:

As the message says, those ABIs are no longer supported by the NDK. This is mentioned in the NDK r17 changelog:

Support for ARMv5 (armeabi), MIPS, and MIPS64 has been removed. Attempting to build any of these ABIs will result in an error.

As others have said, there are not a significant number of devices out there that benefit from targeting any of these ABIs.

gewure commented 4 years ago

@shehel can you maybe help me get this project to build? :) i am @gewure on twitter or email me jasperreichardt@gmail.com

I will commit anything i improve, ofcourse.

shehel commented 4 years ago

there’s quite a bit of outdated dependency. I would recommend you setup a new project and adapt the code rather than get my code running.

shehel commented 4 years ago

A few pointers:

  1. Setup OpenCV and Android NDK integration in Android Studio (there should be online tutorials to do this).
  2. AR_Android/app/src/main/cpp/native-lib.cpp contains the C++ code that does all the image processing.
  3. AR_Android/app/src/main/java/com/project/shehel/ohho/MainActivity.java is the other important file. The matching starts when you click the button (check button click event) and then the captured image is compared with all the stored images locally. There is also a mechanism to filter by location so that you dont need to check every single image, only the ones geographically close to the current location.
gewure commented 4 years ago

that helps! Thank you.

shall i maybe push to this repo if i get it to work with up-to-date deps or would you prefer a fork?

shehel commented 4 years ago

please push to the repo if you manage to get it working. The repo atm is not very useful.