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

android cannot open the libdevolay-natives #35

Open
gavin-dtl opened this issue Aug 28, 2024 · 2 comments
Open

android cannot open the libdevolay-natives #35

gavin-dtl opened this issue Aug 28, 2024 · 2 comments

Comments

@gavin-dtl
Copy link

image

@daubli
Copy link

daubli commented Oct 15, 2024

You can even reproduce this with a very simple example application. It seems to me that the library is missing a link to the standard C++ library; the symbol _ZTISt12length_error likely corresponds to the std::length_error exception, which is part of libstdc++.

@daubli
Copy link

daubli commented Oct 24, 2024

What I've discovered so far:

If you add -lstdc++ to this line in the build script:

is Clang -> listOf("-shared", "-static-libstdc++", "-ldl")

and copy the libc++_shared.so file of the respective Android architecture (this file is included in the ndk) into the jni directory, you can get past this issue. I think you can then leave out the "-static-libstdc++" option, because with the option mentioned above we use dynamic linking instead of static linking.

However, I'm now encountering a different problem where I'm stuck. When calling Devolay.loadLibraries(), it eventually leads to this call:

ret = nLoadLibraries(extractedNdiLibraryPath);

This call returns -1, which results in the error message: The NDI™ SDK libraries were not found.

The libndi.so file is definitely bundled in the APK, but for some reason, it seems that it cannot be loaded.

Does anyone have any ideas on how to resolve this?

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

No branches or pull requests

2 participants