fyne-io / fyne-cross

Cross compiler tool for Fyne apps
BSD 3-Clause "New" or "Revised" License
237 stars 48 forks source link

fyne-cross-1.3-linux-arm64 and fyne-cross-1.3-linux-arm images #209

Open 0x414a opened 11 months ago

0x414a commented 11 months ago

The issue I encountered was that it requires apt-get install libpcap-dev and fyneio/fyne-cross/1.3-linux-arm64. After installing libpcap-dev in the container initiated by fyneio/fyne-cross/1.3-linux-arm64 and compiling the program with go build, the program could not run on arm64 Linux, which is why I submitted this issue.

0x414a commented 11 months ago

The issue is that fyne-cross-1.3-linux-arm64 and fyne-cross-1.3-linux-arm are AMD images and require libpcap-dev. However, cross-compiling ARM with AMD images will cause errors. So, is it possible to create images for fyne-cross-1.3-linux-arm64 and fyne-cross-1.3-linux-arm using ARM Linux? I have tried compiling with ARM images without any problems, but even if I package my images as fyne-cross-1.3-linux-arm64 and fyne-cross-1.3-linux-arm, when I try to compile using 'fyne-cross linux -arch arm64 test2.go' on the host machine, it tells me that environment variables are not set or similar issues.

image
Bluebugs commented 11 months ago

fyne shouldn't have a dependency on libpcap. What application are you trying to compile?

As a test, would you mind compiling fyne calculator with fyne-cross and report how it goes.