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

Failed to load dynamic library 'libpdfium.so' #145

Closed
reddeath1 opened this issue Apr 25, 2024 · 8 comments
Closed

Failed to load dynamic library 'libpdfium.so' #145

reddeath1 opened this issue Apr 25, 2024 · 8 comments

Comments

@reddeath1
Copy link

Invalid argument(s): Failed to load dynamic library 'libpdfium.so': dlopen failed: cannot locate symbol "strtof_l" referenced by "/data/app/com.mcl.egazeti-2/split_config.armeabi_v7a.apk!/lib/armeabi-v7a/libpdfium.so"...

#0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11)
#1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22)
#2 pdfium (package:pdfrx/src

Samsung J7 prime

@espresso3389
Copy link
Owner

According to the google's document, strtof_l is introduced on API level 26 (Oreo).

So Samsung J7 Prime is lower than it?

@reddeath1
Copy link
Author

Thank you. Can you advise the solution for these devices.

@espresso3389
Copy link
Owner

Wow, recently bblanchon/pdfium-binaries@1685e05 add default_min_sdk_version = 21. So if we switch to 125.0.6406.0, it may resolve the compatibility with the older Android devices.

@espresso3389
Copy link
Owner

1.0.60 updates pdfium to bblanchon/pdfium-binaries 125.0.6406.0 (chromium/6406)
that sets default_min_sdk_version=21 to support lower API level devices.

@reddeath1
Copy link
Author

Thank you, I m upgrading to it now.

@espresso3389
Copy link
Owner

@reddeath1 So is the build working for the device? If so, please close the issue.

@reddeath1
Copy link
Author

Thanks I've tested it on API 24, this is what I got but the pdf opened.

/data/app/com.m/lib/arm64/libpdfium.so: unused DT entry: type 0x70000001 arg 0x0

@reddeath1
Copy link
Author

The update works, thanks.

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