failing to build widget.go

39 views
Skip to first unread message

Joshua Lunger

unread,
Jan 17, 2024, 5:11:57 PM1/17/24
to GoKi-Gi
First time using go. I'm on Mac ARM architecture and have followed install instructions from the wiki. I'm getting this error from go build in gi/examples/widgets

I've run "go get -u ./.."and installed VulkanSDK and xcode command-line tools as described.

# goki.dev/gi/v2/gi

../../gi/eventmgr.go:734:22: goosi.TheApp.Clipboard undefined (type goosi.App has no field or method Clipboard)

../../gi/layout.go:299:44: cannot use del (variable of type mat32.Vec2) as image.Point value in argument to events.NewScroll

../../gi/mainstage.go:252:8: opts.Icon undefined (type *goosi.NewWindowOptions has no field or method Icon)

../../gi/renderwin.go:358:19: w.GoosiWin.RenderGeom undefined (type goosi.Window has no field or method RenderGeom)

../../gi/renderwin.go:1033:19: w.GoosiWin.RenderGeom undefined (type goosi.Window has no field or method RenderGeom)

../../gi/renderwin.go:1043:6: drw.StartFill undefined (type goosi.Drawer has no field or method StartFill)

../../gi/renderwin.go:1050:7: drw.Fill undefined (type goosi.Drawer has no field or method Fill)

../../gi/renderwin.go:1050:45: undefined: mat32.Identity3

../../gi/renderwin.go:1059:6: drw.EndFill undefined (type goosi.Drawer has no field or method EndFill)

../../gi/scroll.go:226:33: cannot use fdel.Y (variable of type int) as float32 value in argument to ly.ScrollActionDelta

../../gi/scroll.go:226:33: too many errors

Kai O'Reilly

unread,
Jan 17, 2024, 7:13:28 PM1/17/24
to GoKi-Gi
We are currently renaming the framework from Goki to Cogent Core as part of a larger v2 rewrite, so some things are out of place. There is some documentation on how to get started here: https://github.com/cogentcore/core/tree/main/docs/gettingstarted. In particular, you should run `go run cogentcore.org/core/examples/demo@main` to run the demo, `go install cogentcore.org/core/core@main` to install the core tool, and you can start your own app by following this tutorial: https://github.com/cogentcore/core/blob/main/docs/gettingstarted/helloworld.md. Apologies for the out of place information; there will be much better documentation soon. In the meantime, reading the code of the demo (https://github.com/cogentcore/core/blob/main/examples/demo/demo.go) and the documentation throughout the framework code will give you a decent sense of how things work. If you don't have any Go experience, you should also complete the Go tour first: https://go.dev/tour. If you have any other problems, please let me know.
Reply all
Reply to author
Forward
0 new messages