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
Building MAVSDK for Android failing (Apple Silicon M2 Max) #2248
Comments
It is interesting that the build happening inside a docker container fails on the M2 🤔. Do you know why that would be? What is this "Bad file descriptor"? |
What is the difference between these two? I hope I can further understand and learn. |
I have no idea. Hence, reaching out to the experts for help 😁 |
MAVSDK-Java is a wrapper interface that talks to the 'MAVSDK-server' using generated protobuf interfaces. The 'Server' contains a pre-built .so binary of MAVSDK C++, in this case, targets Android. Just having the Java wrapper and Server isn't enough, if you are looking to make modifications because the meat underneath is actually within the MAVSDK C++ project. |
It seems like openssl fails to build with dockcross on the M2. I would try to remove MAVSDK from the equation and just build OpenSSL first. Then see if that fails or not, and go from there. This is where we build openssl, you could start from there. |
okay, so as an open-source spirit, isn't it a pull request, submit? |
@rayw-dronesense are you still looking into this? |
Environment
Apple M2 Max Macbook Pro
64 GB RAM
Mac OS Ventura
Docker Desktop 4.28.0
Problem
I cloned the MAVSDK repo on the main branch, and tried to run the configuration step following the documentation to use dockcross.
However, it fails every single time when it tries to build OpenSSL,
The command being used to configure the build is
The end goal is to make modifications to MAVSDK C++ and bring it into the Android projects (mavsdk_server.aar and mavsdk-java.jar)
The text was updated successfully, but these errors were encountered: