-
Notifications
You must be signed in to change notification settings - Fork 49
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
Missing filesystem symbols when linking libc on Android #65
Comments
Can you show how you build it? The cmake commands? |
Not sure if it's the good way to proceed, but I'm just changing one line in the
to:
Then I integrate the Should I change something in the |
I don't think that you want to change this line. But I don't really understand what the issue is. Doesn't the MavenCentral dependency work in your app? I don't know react-native 😅 |
MavenCentral dependency provides a shared library of I guess the best is to build a pure Android app and see if the issue still happen |
But you are, too, by changing this line. There are two things:
If you want to use a static libc, you have to recompile |
ok so I guess I'm lucky it is working. I'm closing the issue and will try your proposition and see if I still have the same problem. Thank you ! |
I just updated the dependencies to
Things work perfectly fine with |
Aha! I think I did not update the NDK correctly, and this is a feature coming with C++17. Let me have a look! |
I am not completely sure, but I believe that this happens because you are using an Android NDK older than r22. Could it be? The For @Katawann, if you want to link libc statically, then you'll have to do that when building Please let me know how it goes! |
For the record, I believe that this is related |
I was using NDK Is it possible that you are using platform headers that are higher than This answer may be of help. |
You mean those values?
My intuition is that Now, maybe it also requires |
The same problem persists even with API level
I meant something like this.
Yes, I was thinking the same. It had skipped my mind that |
I think that In the meantime, if you want to try, you can try building it yourself: Build the android-client example after you have uncommented this line (so that it will fetch |
Thank you. |
Awesome! @Katawann would you mind testing with |
mmmh it's still failing to run with error I'll try to find some time to do the modifications you proposed to build |
@Katawann using the shared libc? |
No the If I use the shared libc, I failed back to the issue I have because I have multiple libc++_shared.so:
I gave more details few weeks ago in a post on the PX4 discussion forum |
Ok, I'm sorry I'm not really active on discuss 😇. If you don't mind, I'll close this issue (that became dedicated to the |
I am facing the same problem with
@JonasVautherin do you think it's the same problem as before? If yes, can you please publish the fixed version? |
Hmm could be, though I thought that I had updated dockcross to use NDK22 🤔. I'll have a look ASAP! |
I pushed 0.9.1, let me know if that's better :-). If yes, I think I found a way to solve that once and for all 👍 |
Just tried and tested it. Works great. Thank you. |
Great, thanks for testing! FYI, the required ndkVersion is now set here, so I should not forget it anymore 😉 |
Hello, I have the same error with react native app (dlopen failed: cannot locate symbol "_ZNSt6__ndk14__fs10filesystem8__statusERKNS1_4pathEPNS_10error_codeE"), I have compiled aar mavsdk server 0.9.0 with c++_static flag. Where can I found 0.9.1 version of mavsdk server? Thanks. |
Where did you get the mavsdk_server binary from? |
That's the issue, you need 0.9.1. It is available with maven: https://mvnrepository.com/artifact/io.mavsdk/mavsdk-server. It you want to build it, just take the latest state here, I would say. |
@julianoes I compiled the main branch binary and it gave the above error. (https://github.com/mavlink/MAVSDK-Java/tree/main/mavsdk_server) @JonasVautherin I just tried 0.9.1 , adding in gradle: and it gave me an old error: Any ideas or suggestions? |
This problem has returned when I tried to add the VLC Android dependency:
The problem came earlier because MAVSDK-Java wasn't using the latest NDK. VLC apparently is using NDK 23.2 LTS (here). |
@divyanshu1234 so we should update the NDK version for mavsdk? |
I did some tests and used a release with the updated NDK, and the problem persisted. I noticed that this problem comes only with the VLC NDK. It may be that it's a problem from their side only. But we should shift to the LTD NDK anyway. |
Hello,
The issue I have is when I build the mavsdk_server from source with version v0.38.0-1-2 of mavsdk (I build the mavsdk_server from source because I need to have static library instead of shared). No issue with mavsdk v0.37.0 or version before. The output error I get in Android Studio is:
I guess the issue can also come from the integration I do into a react-nativ app. I'll try to figure it out on my side and I will come with more accurate description if nobody faced this situation so far.
The text was updated successfully, but these errors were encountered: