fyne-cross icon indicating copy to clipboard operation
fyne-cross copied to clipboard

linux: shared object file not found

Open simar7 opened this issue 1 year ago • 4 comments

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:

  1. Install fyne-cross via go get
  2. Build linux package on linux, via fyne-cross linux
  3. 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

simar7 avatar Sep 20 '22 04:09 simar7

The same issue also occurs when cross compiling on darwin for linux.

simar7 avatar Sep 20 '22 04:09 simar7

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...

andydotxyz avatar Sep 20 '22 13:09 andydotxyz

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.

simar7 avatar Sep 20 '22 19:09 simar7

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?

lucor avatar Sep 21 '22 07:09 lucor