-
Notifications
You must be signed in to change notification settings - Fork 51
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
Compile error in native libs #24
Comments
If you were using the release tags, use the newest (1.2.1). Otherwise you can pull from master. Missing dependencies should be fixed. |
Hi @Sjd69 pulled master and still getting this linker error, do I need to install the DJI SDK or something similar ? Full error:
|
I think I know the issue, it has to do with those files using Git Large File Storage (git lfs) After installing git lfs, I then got:
So then to ignore verification:
This then compiled and linked successfully. |
@kwatkins details work for me. Thank you. |
I have the same error ! How to solve it ?
After weeks of download : I live in Africa ... Difficult to build APK ! Android will kill me ... |
I had this problem too and the way I solved was doing this (Windows):
It should say "Git LFS initialized." Then
After that I could finally build the apk. |
I thought I removed the LFS dependency from this repository, but I guess not. This'll be fixed in the next update most likely in the next few weeks. It'll also update the SDK to 4.10 |
Ok it works now ! 3min build and apk generated in app/build/outputs/apk/release with name app-release-unsigned.apk Unable to install on my android device : "package seems corrupt". Any idea ? What should I miss ? |
For all. You can install git lfs. However, It hasn't helped for me. |
Also, I don't know exact reason but arm64-v8a libffmpeg cant be linked.
I downloaded from here the same lib https://github.com/yixia/VitamioBundleStudio/blob/master/vitamio/libs/arm64-v8a/libffmpeg.so and at least I was able to build project. I'm using Lunux and Android Studio. |
git lfs doesn't help, I'm agree with @engenegr Then I did that : #30 Removed android.enableAapt2=false in gradle.properties |
@kikislater I confirm that release archive 1.2.1 also has incomplete libffmpeg.so file. Such a long way to go to launch my Mavic... |
Using Be careful, in this fork DJI SDK key is provided via environment, not xml file. @kikislater , can you say, what Android version and what equipment do you use for controlling your drone with rosetta? Because It just doesn't work on my Huawei Mate 20 with 9.0 (28) Android. I try to find a way to make things work. |
Of course ! |
@kikislater |
May be Huawei kill rosetta when it's in background. Check if there is an option for that ! |
Reporting for those who decide to get rid from DJI software. Android 9 doesn't work with rosetta. I've checked and found that 8.1 (API 27) is good for it. I was able to launch it on very cheap smartphone in a matter of minutes. While I spent hours for Android 9 and powerful Huawei Mate 20. |
Appreciate the feedback from all of you. Here's a brief rundown of where we stand on this application: The version in this repo does not work on 9+. This is due to the current version of the DJI SDK. This is updated to 4.10, which includes support all the way through Mavic 2 dual. The LFS requirement is well, dumb. It'll be removed and the binaries optimized. We cannot test on Huawei devices, nor help you troubleshoot (sorry). No way around this for this. That said, we mostly have tested on Samsung devices, but support for other OEMs (at least LG) should be significantly improved. We plan to release the updated version later this month, updates are few and far between since this is basically a side project that I have to allot time for during work hours, as well as there's a lot of red tape around this due to being a government open source project. That said, I do read all the issues that are open here as soon as I'm notified of them, I just don't have time to respond generally. |
@Sjd69 thank you very much. I will find new device and test application in the field soon. I'm very grateful for your recommendation about architecture, this could save equipment. |
Getting this error w/ native compiling, on a mac, using Android Studio etc
The text was updated successfully, but these errors were encountered: