Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does DepthAI support android arm64-v8a? #1421

Open
Powercube7 opened this issue Oct 8, 2023 · 8 comments
Open

Does DepthAI support android arm64-v8a? #1421

Powercube7 opened this issue Oct 8, 2023 · 8 comments

Comments

@Powercube7
Copy link

Hello there! I am looking to use this project for my robotics competition. My team has recently purchased the OAK-1 Lite, however I am having trouble getting the library to run. This is partly due to:

  1. Conflicts between OpenCV versions of the robot controller library (duplicate classes) and the OpenCV version used by JavaCV
  2. What I believe might be a lack of support for Android of the DepthAI library? A logcat sent out the following error: java.lang.UnsatisfiedLinkError: Platform "android-arm64" not supported by class org.bytedeco.depthai.Pipeline

It would be heavily appreciated if Android support were to be added. Perhaps I'll be luckier next year? :) Anyway, thank you to all the contributors for the creation of this library, it's amazing stuff!

@saudet
Copy link
Member

saudet commented Oct 8, 2023

There is an old experiential version with support for Android in the https://github.com/bytedeco/javacpp-presets/tree/depthai branch. /cc @themarpe

@Powercube7
Copy link
Author

Hey @saudet! Thank you for your quick response. While the branch you linked does seem to support Android, I am unable to import the library into Android Studio. Version 1.5.7-SNAPSHOT is not found, and attempting to just use 1.5.7 results in Maven not finding DepthAI.

Used command: api 'org.bytedeco:depthai-platform:2.13.3-b83eac2e5b623e357f1ef5a424f00fb1d5d0ac12-1.5.7'

@saudet
Copy link
Member

saudet commented Oct 9, 2023

@Powercube7
Copy link
Author

@saudet Still unable to compile the library... Seems like the old version depends on the no longer existent 1.5.7 snapshot. Oh well...

@saudet
Copy link
Member

saudet commented Oct 15, 2023

It will just work as well with JavaCPP 1.5.7, 1.5.8, 1.5.9, or 1.5.10-SNAPSHOT

@saudet
Copy link
Member

saudet commented Dec 2, 2023

Thanks to @richard-xx, we now have DepthAI builds for Android! Enjoy

@Powercube7
Copy link
Author

Powercube7 commented Apr 30, 2024

Hello again! I still seem to be facing some issues regarding depthai's compatibility. I am using Gradle and DepthAI's package doesn't seem to convert to .aar like javacv and javacpp, which leads to imports from the library being unavailable. Any ideas? Trying to use javaCppExtract from gradle-javacpp says something like this:

A problem occurred evaluating project ':TeamCode'.
Could not get unknown property 'android' for task ':TeamCode:javacppExtract' of type org.gradle.api.tasks.Copy.

As an attempt to help with more information here's my build.gradle file

@saudet
Copy link
Member

saudet commented Apr 30, 2024

Try to remove android-arm like this:

ext {
    javacppPlatform = 'android-arm64'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants