fyne-cross
fyne-cross copied to clipboard
linux: shared object file not found
Describe the bug:
$ fyne-cross linux
$ ./fyne-cross/bin/linux-amd64/fyne-tracee-events
$ ./fyne-cross/bin/linux-amd64/fyne-tracee-events: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
To Reproduce:
Steps to reproduce the behaviour:
- Install fyne-cross via go get
- Build linux package on linux, via fyne-cross linux
- See error
Example code:
https://github.com/simar7/fyne-tracee/blob/master/main.go
Device and debug info (please complete the following information):
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
The same issue also occurs when cross compiling on darwin
for linux
.
I don't know if it is related or not, but fyne-cross is designed to cross-compile Fyne apps. The demo code you pasted isn't a fyne app...
I don't know if it is related or not, but fyne-cross is designed to cross-compile Fyne apps. The demo code you pasted isn't a fyne app...
Yes apologies for the placeholder text. I've updated it to the right repo.
Could you post the output of ldd fyne-cross/bin/linux-amd64/fyne-tracee-events
?
It looks like the library libGL
is missed... could by any chance the X server not installed on your linux box?