Open chran554 opened 6 months ago
Can you try the develop branch?
I tried the develop branch.
It seem to pass the previous virtioFS
error and stumbles upon another problem later on. I guess that is another issue or that I am missing something new that is required by the command.
$ fyne-cross version
fyne-cross version v1.4.1-0.20240128213304-5448401b369d
$ make cross-linux
fyne-cross linux -arch=amd64,arm64 -app-build=1 -app-id=fynehelloworld.cha.se -app-version=1.0.0 ./cmd/fynehelloworld
[i] Target: linux/amd64
[i] Cleaning target directories...
Unable to find image 'fyneio/fyne-cross-images:linux' locally
linux: Pulling from fyneio/fyne-cross-images
6e498137f0ed: Pull complete
ce3709d57318: Pull complete
308007c175c3: Pull complete
741e74b3aa5f: Pull complete
4f4fb700ef54: Pull complete
3bdbe53cc4fe: Pull complete
2b1b9ff95da4: Pull complete
d96e1438f891: Pull complete
9a3eb78d9760: Pull complete
817f2d8aaafd: Pull complete
baab12f4b3c6: Pull complete
d944786b5f39: Pull complete
Digest: sha256:5a5346bb1a22ee50ff833e5f63dee7e51aeb6b9f34466e892f45f59254805196
Status: Downloaded newer image for fyneio/fyne-cross-images:linux
[✓] "bin" dir cleaned: /app/fyne-cross/bin/linux-amd64
[✓] "dist" dir cleaned: /app/fyne-cross/dist/linux-amd64
[✓] "temp" dir cleaned: /app/fyne-cross/tmp/linux-amd64
[i] Checking for go.mod: /Users/christian/projects/code/go/fynehelloworld/go.mod
[✓] go.mod found
[!] Default icon not found at "Icon.png"
[✓] Created a placeholder icon using Fyne logo for testing purpose
[i] Packaging app...
2024/03/02 20:00:26 Fyne error: Failed to inject metadata init file, omitting metadata
2024/03/02 20:00:26 Cause: invalid character 'g' looking for beginning of value
2024/03/02 20:00:26 At: /go/pkg/mod/fyne.io/fyne/v2@v2.3.5/cmd/fyne/internal/commands/build.go:215
[✓] Package: "/Users/christian/projects/code/go/fynehelloworld/fyne-cross/dist/linux-amd64/fynehelloworld.tar.xz"
[i] Target: linux/arm64
[i] Cleaning target directories...
[✓] "bin" dir cleaned: /app/fyne-cross/bin/linux-arm64
[✓] "dist" dir cleaned: /app/fyne-cross/dist/linux-arm64
[✓] "temp" dir cleaned: /app/fyne-cross/tmp/linux-arm64
[i] Checking for go.mod: /Users/christian/projects/code/go/fynehelloworld/go.mod
[✓] go.mod found
[i] Packaging app...
[✓] Package: "/Users/christian/projects/code/go/fynehelloworld/fyne-cross/dist/linux-arm64/fynehelloworld.tar.xz"
It seems the other issue might be related to your fyne.toml file. Do you mind sharing it?
Well, thats easy as I do not use/have any toml-file. :) I use command parameters instead. Maybe they have changed? Is toml-file a requirement as of next release?
It seems like it was only a problem for the linux/amd64 build and not for the linus/arm64 build...
Command with parameters:
fyne-cross linux -arch=amd64,arm64 -app-build=1 -app-id=fynehelloworld.cha.se -app-version=1.0.0 ./cmd/fynehelloworld
Compilation is no problem before, this time I also encountered this error
fyne-cross linux -arch arm64 .
[i] Target: linux/arm64
[i] Cleaning target directories...
docker: Error response from daemon: error while creating mount source path '/host_mnt/private/tmp/com.apple.launchd.uFB91mWBaB/Listeners': mkdir /host_mnt/private/tmp/com.apple.launchd.uFB91mWBaB/Listeners: operation not supported.
[✗] could not clean the "bin" dir /app/fyne-cross/bin/linux-arm64: exit status 125
Same problem:
[i] Cleaning target directories...
docker: Error response from daemon: error while creating mount source path '/host_mnt/private/tmp/com.apple.launchd.2pek1t4ePk/Listeners': mkdir /host_mnt/private/tmp/com.apple.launchd.2pek1t4ePk/Listeners: operation not supported.
[✗] could not clean the "dist" dir /app/fyne-cross/dist/linux-amd64: exit status 125
But already mentioned workaround works:
Is toml-file a requirement as of next release?
No, the toml file remains optional
I'm still running into this. Was a solution ever found?
Digest: sha256:f4194bdf6a5bd72b077a4d853d1c74400c485c79dee83e490056787c17d54b47
Status: Downloaded newer image for fyneio/fyne-cross-images:windows
[✓] "temp" dir cleaned: /app/fyne-cross/tmp/windows-amd64
[✓] "bin" dir cleaned: /app/fyne-cross/bin/windows-amd64
[✓] "dist" dir cleaned: /app/fyne-cross/dist/windows-amd64
[i] Checking for go.mod: /home/runner/work/tmx-uploader/tmx-uploader/go.mod
[✓] go.mod found
[i] Packaging app...
2024/05/15 08:20:51 Fyne error: Failed to inject metadata init file, omitting metadata
2024/05/15 08:20:51 Cause: invalid character 'g' looking for beginning of value
2024/05/15 08:20:51 At: /go/pkg/mod/fyne.io/fyne/v2@v2.3.5/cmd/fyne/internal/commands/build.go:215
adding: tmx-uploader.exe (deflated 46%)
That looks like a very different issue - basically a corrupt metadata file. If you think the problem is with Fyne-cross then please open a new issue.
Describe the bug:
Using a vanilla installed docker desktop I can not cross-compile a simple application (hello world).
There seem to be some action performed that is not allowed and it seem to be related to virtioFS used by default on docker desktop.
There is a work around by changing filesystem used by docker from
virtioFS
to legacyosxfs
. (I have not tried the optiongRPC FUSE
.)To Reproduce:
Application:
Command:
Error message:
Full build log:
Work around for macOS using vanilla docker desktop
Set your docker file system from
virtioFS
toosxfs
in docker desktop general settings.Device and debug info (please complete the following information):
Debug info