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

Andoird cross compile with --release flag fails on develop and latest branches #290

Open
pneumaticdeath opened this issue Jan 18, 2025 · 1 comment

Comments

@pneumaticdeath
Copy link

pneumaticdeath commented Jan 18, 2025

Couldn't find this one..

Describe the bug:

Android build in --release mode fails with error

To Reproduce:

  1. fyne-cross android --keystore signing.keystore --key-name apksigning --keystore-pass SeKreT --release
  2. failure...

Example code:

I'm trying to build GooeyLife

Device and debug info (please complete the following information):

Device info
  • OS: MacOS Sonoma 14.6.1
  • Version: SDK 35
  • Go version: go1.23.4 darwin/arm64
  • fyne-cross version: fyne-cross version v1.6.1-0.20250112142554-e9f46501819f
  • Fyne version: v2.5.3
Debug info
```bash
$ fyne-cross android --keystore signing.keystore --key-name apksigning --keystore-pass SeKreT --release --debug --no-cache
[[i] Target: android/multiple
&command.localContainerImage{baseContainerImage:command.baseContainerImage{arch:"multiple", os:"android", id:"android", env:map[string]string{}, tags:[]string(nil), mount:[]command.containerMountPoint{command.containerMountPoint{name:"project", localHost:"/Users/mitch/go/src/GooeyLife", inContainer:"/app"}}, DockerImage:"docker.io/fyneio/fyne-cross-images:android"}, runner:(*command.localContainerEngine)(0x1400012c2d0)}
[i] Cleaning target directories...
[✓] "bin" dir cleaned: /Users/mitch/go/src/GooeyLife/fyne-cross/bin/android
[✓] "dist" dir cleaned: /Users/mitch/go/src/GooeyLife/fyne-cross/dist/android
[✓] "temp" dir cleaned: /Users/mitch/go/src/GooeyLife/fyne-cross/tmp/android
[i] Checking for go.mod: /Users/mitch/go/src/GooeyLife/go.mod
[✓] go.mod found
[i] Packaging app...
/opt/homebrew/bin/docker run --rm -t -w /app -v /Users/mitch/go/src/GooeyLife:/app --platform linux/amd64 --user 501 -e HOME=/tmp -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock -e SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock -e CGO_ENABLED=1 -e GOCACHE=/go/go-build docker.io/fyneio/fyne-cross-images:android /usr/local/bin/fyne version
fyne cli version: v2.3.5
/opt/homebrew/bin/docker run --rm -t -w /app -v /Users/mitch/go/src/GooeyLife:/app --platform linux/amd64 --user 501 -e HOME=/tmp -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock -e SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock -e CGO_ENABLED=1 -e GOCACHE=/go/go-build docker.io/fyneio/fyne-cross-images:android /usr/local/bin/fyne release -os android -name GooeyLife -icon /app/fyne-cross/tmp/android/Icon.png -appBuild 78 -appVersion 1.0.1 -appID io.patenaude.gooeylife -keyStore /app/signing.keystore -keyStorePass SeKreT -keyName apksigning
2025/01/18 17:59:10 Fyne error:  Failed to inject metadata init file, omitting metadata
2025/01/18 17:59:10   Cause: invalid character 'g' looking for beginning of value
2025/01/18 17:59:10   At: /go/pkg/mod/fyne.io/fyne/[email protected]/cmd/fyne/internal/commands/package.go:298
go build -tags release -ldflags -w -trimpath -buildmode=c-shared -o /tmp/fyne-work-655463082/lib/arm64-v8a/libGooeyLife.so github.com/pneumaticdeath/GooeyLife failed: exit status 1
# fyne.io/fyne/v2/internal/driver/mobile/gl
/usr/local/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang: line 8:  5822 Illegal instruction     "$bin_dir/clang" --target=aarch64-linux-android21 "$@"

[✗] could not package the Fyne app: could not package the Fyne app: exit status 1


</pre></details>
@pneumaticdeath
Copy link
Author

It fails with the same error on fyne-cross@latest on linux (Ubuntu 24.04.1)

@pneumaticdeath pneumaticdeath changed the title Andoird cross compile with --release flag fails on develop branch Andoird cross compile with --release flag fails on develop and latest branches Jan 18, 2025
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

1 participant