gotk4
gotk4 copied to clipboard
The filename or extension is too long
please help me 'go build github.com/diamondburned/gotk4/pkg/gtk/v3: C:\golang\pkg\tool\windows_amd64\cgo.exe: fork/exec C:\golang\pkg\tool\windows_amd64\cgo.exe: The filename or extension is too long.'
whatever 'github.com/diamondburned/gotk4/pkg/gtk/v3' or 'github.com/diamondburned/gotk4/pkg/gtk/v4' i just run write """ package main
import ( _ "github.com/diamondburned/gotk4/pkg/gtk/v3" )
func main() {}
"""
What's commit of gotk4
are you on?
This seems like a duplicate of https://github.com/golang/go/issues/47235. The short version is that when building https://github.com/diamondburned/gotk4/tree/4/pkg/gtk/v3, Go invokes the cgo tool with absolute paths to a number of cgo-generated C files, and that is just enough to hit the command size limit in Windows. Upstream Go could do better here, such as by not using absolute paths.
pump it