duanchuang6978 2019-03-26 10:56
浏览 498

Golang GUI fyne-io帮助设置了吗?

I just can not configure the GUI fyne-io. go get fyne.io/fyne gave an error

package fyne.io/fyne: unrecognized import path "fyne.io/fyne" (https fetch: Get https://fyne.io/fyne?go- get=1: dial tcp: lookup fyne.io: no such host)

It’s good that IDE from JetBrains installed it from import

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

Then at go run there was an error

exec: “gcc”: executable file not found in %PATH%

Installation TDM-GCC helped solve the problem

And then I can not move.

package main

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

func main() {
    app := app.New()

    w := app.NewWindow("Hello")
    w.SetContent(widget.NewVBox(
        widget.NewLabel("Hello Fyne!"),
        widget.NewButton("Quit", func() {
            app.Quit()
        }),
    ))

    w.ShowAndRun()
}

After go run error

2019/03/26 13:51:11 Fyne error: failed to initialise OpenGL

2019/03/26 13:51:12 Cause: glClientWaitSync

2019/03/26 13:51:12 At: C:/gopath/src/fyne.io/fyne/driver/gl/window.go:834

panic: runtime error: invalid memory address or nil pointer dereference

[signal 0xc0000005 code=0x0 addr=0x10 pc=0x589c9d]

gl installed

  • 写回答

3条回答 默认 最新

  • doudong8713 2019-03-26 22:51
    关注

    Issue 1 looked like a temporary issue in your DNS lookup - the IDE resolved it shortly after. Issue 2 well done on finding the solution. Issue 3 you’d be best placed raising a bug on the GitHub tracker[1] - with details of your windows version and hardware so that it can be worked on with you.

    1: https://github.com/fyne-io/fyne/issues

    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题