Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS] Compilation not completing #5245

Open
2 tasks done
wchangc opened this issue Nov 8, 2024 · 4 comments
Open
2 tasks done

[MacOS] Compilation not completing #5245

wchangc opened this issue Nov 8, 2024 · 4 comments
Labels
not an issue This doesn't seem right

Comments

@wchangc
Copy link

wchangc commented Nov 8, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

package command-line-arguments
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/v2.1/gl: build constraints exclude all Go files in /Users/wchangc/go/pkg/mod/github.com/go-gl/[email protected]/v2.1/gl

How to reproduce

go 1.23.2
fyne.io/fyne/v2 v2.5.2 // indirect
fyne.io/systray v1.11.0 // indirect

Screenshots

No response

Example code

package main

import (
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
)

func main() {
a := app.New()
w := a.NewWindow("Hello")

hello := widget.NewLabel("Hello Fyne!")
w.SetContent(container.NewVBox(
	hello,
	widget.NewButton("Hi!", func() {
		hello.SetText("Welcome :)")
	}),
))

w.ShowAndRun()

}

Fyne version

2.5.2

Go compiler version

1.23.2

Operating system and version

Macos

Additional Information

No response

@wchangc wchangc added the unverified A bug that has been reported but not verified label Nov 8, 2024
@andydotxyz
Copy link
Member

The compiler cannot find the required C compiler to build the underlying graphics and OS code.
Did you follow the getting started to ensure the dependencies were all installed? https://docs.fyne.io/

@andydotxyz andydotxyz changed the title Fyne is not functioning properly [MacOS] Compilation not completing Nov 8, 2024
@andydotxyz andydotxyz added not an issue This doesn't seem right and removed unverified A bug that has been reported but not verified labels Nov 8, 2024
@wchangc
Copy link
Author

wchangc commented Nov 11, 2024

image Hello, I have installed the detection software and all the tests have passed, but I still can't run the demo

@wchangc
Copy link
Author

wchangc commented Nov 11, 2024

image This is the error message

@andydotxyz
Copy link
Member

It cannot find the compiler wherever you executed the build. The environment must not be the same as the system environment. Try a different shell/terminal - it looks like either it has been customised or that one isn't picking up the system config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants