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
MacOS package for Android error: duplicate symbol: x_cgo_inittls #1912
Comments
Could this be related to golang/go#42655? |
@andydotxyz Yes, I can confirm the error does not show when I compile with NDK 21.3.6528147 This compiles successfully and produces an apk: |
I think there is nothing we can do here, there are fixes upstream in Go that should resolve it...
So once those are out an upgrade should fix it. Closing this because I think that is all we can do |
i can confirm that fyne package compiles go 1.16 and ndk version 21.3.6528147, but not with 22.0.7026061 . fyne package -os android -name myapp -appID com.example.myapp -icon Icon.png
`go build -buildmode=c-shared -o /var/folders/pg/x975sgkj1xl1jblfgchdmsw40000gn/T/gomobile-work-893807812/lib/armeabi-v7a/libfyne_demo.so fyne.io/fyne/v2/cmd/fyne_demo failed: exit status 2 ld: error: duplicate symbol: display
ld: error: duplicate symbol: surface
ld: error: duplicate symbol: display
ld: error: duplicate symbol: surface
` |
For anyone still experiencing this issue there is another solution! Fyne has a gomobile-bridge project that maps the gomobile APIs into a Fyne runtime: https://github.com/fyne-io/gomobile-bridge |
Describe the bug:
I am on MacOS and want to create a hello world for Android. Doing so I get this error:
To Reproduce:
Steps to reproduce the behaviour:
I took this code for a first app: https://developer.fyne.io/started/firstapp
Running this works as expected on MacOS itself (great!).
The error comes when I execute this in the same folder:
ANDROID_NDK_HOME=/Users/XXXXX/Library/Android/sdk/ndk/22.0.7026061 fyne package -os android -appID com.example.myapp -icon icon.png
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: