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

java.lang.UnsatisfiedLinkError: dlopen failed: library "libffi.so.7" not found #1924

Closed
Liujiangy1 opened this issue Jul 18, 2019 · 1 comment

Comments

@Liujiangy1
Copy link

I put the libpython3.7m.so file and the libffi.so file in my android app, but the following happens:
I have put libffi.so in my android stduio, and I also configured my cmakelists.txt

java.lang.UnsatisfiedLinkError: dlopen failed: library "libffi.so.7" not found
At java.lang.Runtime.loadLibrary0(Runtime.java:1016)
At java.lang.System.loadLibrary(System.java:1657)

Is my way wrong?

@inclement
Copy link
Member

inclement commented Jul 26, 2019

I'm not really clear exactly what you've done, but it sounds like whatever it is it didn't result in the library being present and in the right place to get loaded by the app (if there was any code to load it at all).

If you're trying to do some kind of custom inclusion, I would first confirm everything is working with a normal p4a build, then read the code to understand how the libraries are packaged and loaded so that you can replicate it.

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