-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] dlopen failed: library "*" not found #5189
Comments
The fyne package tool does not have support for dynamic linked libraries, if you link them statically it will work. |
Would it be more appropriate to convert this bugreport to a feature request?
It seems like linking statically any complex library (let's say For example, I've already spent about 16 hours trying to do that, and still have tons of unsolved problems
(which seems to be an unsolved problem in the Internet: golang/go#69109) |
Could be. The idea of platform-independently requesting additional libraries is an interesting one but a hugely complex problem to solve well.
That indicates the code is still looking for a .so file and is not looking for locally compiled symbols.
They should not be related - go-mobile bind is a whole different approach to assembling applications compared to Fyne. A fyne app should host all the code and symbols (apart from the OS and graphics driver!) internally. The binding in go-mobile is for native apps with a Go lib packaged into it. |
Checklist
Describe the bug
When I use
fyne
to build into APK an app that uses a so-file, it fails to launch.The crash report on Android:
How to reproduce
git clone https://github.com/xaionaro-go/fyne-library-not-found-bug-repro cd fyne-library-not-found-bug-repro
~/Android/Sdk
.make
to build the package.make install
to install the package via adb to the connected phone.make run
.make run
until Android would allow to take a look at the crash report.Screenshots
No response
Example code
Essentially this code causes the error:
Fyne version
2.5.1, 2.4.5
Go compiler version
1.23.0
Operating system and version
Ubuntu 24.04
Additional Information
Current understanding of the problem:
My humble lame understanding is that
fyne
just needs to include theso
-file into the APK.The initial motivation:
The repro and description I provided above are the minimized/localized version of the bug I'm having in my project https://github.com/xaionaro-go/streamctl . There I'm trying to use
libav
(libavcodec
,libavfilter
, etc) compiled by termux inside the app.The text was updated successfully, but these errors were encountered: