-
Notifications
You must be signed in to change notification settings - Fork 621
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
__emutls_get_address error on Android packages that include libc++_shared.so #292
Comments
This looks similar to https://github.com/tanersener/ffmpeg-kit/issues/242. |
Yeah, they looks similar. However, the scenario you're describing there is different than what we're experiencing in |
I just tried with latest ffmpeg-kit main branch and built the libs using 23.1.7779620. Still got the same crash described in https://github.com/tanersener/ffmpeg-kit/issues/242. No problems with 23.0.7599858. Don't know if ndk folks will ever fix the issue. |
The changes implemented in |
This issue is fixed in |
I build ffmpeg libs like this:
My app crashes with |
@juha-h See my comment in your issue. |
The summary of this issue is:
Then your application will crash with the error message given in the first post. Use |
@tanersener Has |
My app works fine with ANDROID_NDK_ROOT=/opt/Android/ndk/25.2.9519653. |
@juha-h Thanks for the confirmation. I am currently setting up my linux pc to build for Android. Will update here soon. |
what's the library version you're using? |
@agolendukhin Version of what library? I'm using ndkVersion = 25.2.9519653 and development branch of ffmpeg-kit. |
@juha-h I mean what's the version of |
Then I already answered in above. |
Description
If the new
v4.5.1
packages that includelibc++_shared.so
are put together with another dependency that has their ownlibc++_shared.so
thenffmpeg-kit
fails to start.Expected behavior
We don't expect to have any issues when apps depend on other native libraries.
Current behavior
ffmpeg-kit
fails to start with the following exception.java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~2kB8d3EtNmrQeTorQuxsNw==/com.arthenica.ffmpegkit.reactnative.test-H8VCzoSNcb5BSErN7bf4mw==/base.apk!/lib/x86_64/libffmpegkit.so
Environment
Other
This issue happens because
v4.5.1
andv4.5.1.LTS
are built with Android NDKr23b
. See android/ndk/issues/1639.The text was updated successfully, but these errors were encountered: