Is it possible to crosscompile itgui? #23

Closed
opened 2022-08-18 17:57:05 +00:00 by Eloitor · 4 comments

Is it possible to compile itgui for the PinePhone?

I tried to crosscompile with

export GOOS=linux GOARCH=arm64
make clean
make
go build ./cmd/itgui

The output of the last command is

package go.arsenm.dev/itd/cmd/itgui
	imports fyne.io/fyne/v2/app
	imports fyne.io/fyne/v2/internal/driver/glfw
	imports fyne.io/fyne/v2/internal/driver/common
	imports fyne.io/fyne/v2/internal/painter/gl
	imports github.com/go-gl/gl/v3.1/gles2: build constraints exclude all Go files in /home/eloi/.local/share/go/pkg/mod/github.com/go-gl/gl@v0.0.0-20211210172815-726fda9656d6/v3.1/gles2

I also tried to compile itgui in the PinePhone without luck.

Is it possible to compile itgui for the PinePhone? I tried to crosscompile with ``` bash export GOOS=linux GOARCH=arm64 make clean make go build ./cmd/itgui ``` The output of the last command is ``` package go.arsenm.dev/itd/cmd/itgui imports fyne.io/fyne/v2/app imports fyne.io/fyne/v2/internal/driver/glfw imports fyne.io/fyne/v2/internal/driver/common imports fyne.io/fyne/v2/internal/painter/gl imports github.com/go-gl/gl/v3.1/gles2: build constraints exclude all Go files in /home/eloi/.local/share/go/pkg/mod/github.com/go-gl/gl@v0.0.0-20211210172815-726fda9656d6/v3.1/gles2 ``` I also tried to compile itgui in the PinePhone without luck.
Owner

itgui is much more difficult to cross-compile than itd and itctl. It is possible theoretically, but would require a lot more work since Fyne depends on C libraries. You should be able to do so by following the instructions here: https://developer.fyne.io/started/cross-compiling.

On the PinePhone it should compile (though it will take a while), as long as you have the prerequisites listed here installed: https://developer.fyne.io/started/#prerequisites.

`itgui` is much more difficult to cross-compile than `itd` and `itctl`. It is possible theoretically, but would require a lot more work since Fyne depends on C libraries. You should be able to do so by following the instructions here: https://developer.fyne.io/started/cross-compiling. On the PinePhone it should compile (though it will take a while), as long as you have the prerequisites listed here installed: https://developer.fyne.io/started/#prerequisites.
Owner

I cannot do anything to make it easier unfortunately, as there is no way to make a pure Go GUI. If there was, I'd use it, but unfortunately, it doesn't exist.

I am closing this issue since it isn't something I can fix. Thank you.

I cannot do anything to make it easier unfortunately, as there is no way to make a pure Go GUI. If there was, I'd use it, but unfortunately, it doesn't exist. I am closing this issue since it isn't something I can fix. Thank you.
Owner

Also, I forgot to say: If you're going to be using itgui on PinePhone, you probably want to follow this issue on Github: https://github.com/fyne-io/fyne/issues/2721. Fyne is currently not great with mobile Linux, though this is being worked on. Some features will work, but not all.

Also, I forgot to say: If you're going to be using `itgui` on PinePhone, you probably want to follow this issue on Github: https://github.com/fyne-io/fyne/issues/2721. Fyne is currently not great with mobile Linux, though this is being worked on. Some features will work, but not all.
Author

Thank you. I finally got it to compile in the Pinephone.
I needed to install sudo apk add xorg-server-dev, and after that I had to wait for the go compiler to finish without any feedback...

If you want I can try to package itd and itgui for alpinelinux.

Thank you. I finally got it to compile in the Pinephone. I needed to install `sudo apk add xorg-server-dev`, and after that I had to wait for the go compiler to finish without any feedback... If you want I can try to package itd and itgui for alpinelinux.
Sign in to join this conversation.
No description provided.