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

Cant use on windows #5400

Closed
2 tasks done
Tyskiep99 opened this issue Jan 12, 2025 · 3 comments
Closed
2 tasks done

Cant use on windows #5400

Tyskiep99 opened this issue Jan 12, 2025 · 3 comments
Labels
information-needed Further information is requested unverified A bug that has been reported but not verified

Comments

@Tyskiep99
Copy link

Tyskiep99 commented Jan 12, 2025

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

after install, issue a mod tidy fails:

➜  attendance_parser go mod tidy                                                                                                                                                                                                                                                                                                                                                                                                                     
go: finding module for package github.com/go-gl/gl/v3.1/gles2
go: finding module for package github.com/go-gl/gl/v2.1/gl
go: attendance-parser imports
        fyne.io/fyne/v2/app imports
        fyne.io/fyne/v2/internal/driver/glfw imports
        fyne.io/fyne/v2/internal/painter/gl imports
        github.com/go-gl/gl/v2.1/gl: module github.com/go-gl/gl@latest found (v0.0.0-20231021071112-07e5d0ea2e71), but does not contain package github.com/go-gl/gl/v2.1/gl
go: attendance-parser imports
        fyne.io/fyne/v2/app imports
        fyne.io/fyne/v2/internal/driver/glfw imports
        fyne.io/fyne/v2/internal/painter/gl imports
        github.com/go-gl/gl/v3.1/gles2: module github.com/go-gl/gl@latest found (v0.0.0-20231021071112-07e5d0ea2e71), but does not contain package github.com/go-gl/gl/v3.1/gles2

How to reproduce

  1. copy the code from the example
  2. install the lib
  3. go mod tidy

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

v2.5.3

Go compiler version

go version go1.23.3 windows/amd64

Operating system and version

windows 11

Additional Information

when runing the code I get:

C:\Users\kensh\go\pkg\mod\fyne.io\fyne\[email protected]\internal\painter\gl\gl_core.go:8:2: no required module provides package github.com/go-gl/gl/v2.1/gl; to add it:
        go get github.com/go-gl/gl/v2.1/gl
C:\Users\kensh\go\pkg\mod\fyne.io\fyne\[email protected]\internal\driver\glfw\driver_desktop.go:19:2: missing go.sum entry for module providing package fyne.io/systray (imported by fyne.io/fyne/v2/internal/driver/glfw); to add:
        go get fyne.io/fyne/v2/internal/driver/[email protected]
C:\Users\kensh\go\pkg\mod\fyne.io\fyne\[email protected]\internal\driver\glfw\driver.go:12:2: missing go.sum entry for module providing package github.com/fyne-io/image/ico (imported by fyne.io/fyne/v2/internal/driver/glfw); to add:
        go get fyne.io/fyne/v2/internal/driver/[email protected]
C:\Users\kensh\go\pkg\mod\fyne.io\fyne\[email protected]\internal\driver\glfw\clipboard.go:11:2: missing go.sum entry for module providing package github.com/go-gl/glfw/v3.3/glfw (imported by fyne.io/fyne/v2/internal/driver/glfw); to add:
        go get fyne.io/fyne/v2/internal/driver/[email protected]
C:\Users\kensh\go\pkg\mod\fyne.io\fyne\[email protected]\internal\metadata\load.go:8:2: missing go.sum entry for module providing package github.com/BurntSushi/toml (imported by fyne.io/fyne/v2/internal/metadata); to add:
        go get fyne.io/fyne/v2/internal/[email protected]
@Tyskiep99 Tyskiep99 added the unverified A bug that has been reported but not verified label Jan 12, 2025
@Jacalz
Copy link
Member

Jacalz commented Jan 12, 2025

Have you followed the steps on our getting started page? See https://docs.fyne.io/started/. It kind of looks like you are trying to compile without a C-compiler installed on your system.

@Jacalz Jacalz added the information-needed Further information is requested label Jan 12, 2025
@Tyskiep99
Copy link
Author

I did follow these steps, I think I just resolved it, I had to install go-gl manually so it gets built properly, somehow fyne install wouldnt build properly?

@andydotxyz
Copy link
Member

It sounds like "go mod tidy" would have resolved it. You shouldn't need to manually install dependencies since Go 1.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information-needed Further information is requested unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

3 participants