go代码如下:
```
1 │ package main
2 │
3 │ import (
4 │ "fyne.io/fyne/app"
5 │ "fyne.io/fyne/widget"
6 │ )
7 │
8 │ func main() {
9 │ a := app.New()
10 │ w := a.NewWindow("hello!GUI")
11 │
12 │ w.SetContent(widget.NewLabel("what?!"))
13 │ w.ShowAndRun()
14 │ }
```
我go build之后,就提示下面的报错
```
# pkg-config --cflags -- gl gl
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gl', required by 'virtual:world', not found
Package 'gl', required by 'virtual:world', not found
pkg-config: exit status 1
# github.com/go-gl/glfw/v3.3/glfw
In file included from ./glfw/src/internal.h:188,
from ./glfw/src/context.c:30,
from ../../../go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20211213063430-748e38ca8aec/c_glfw.go:4:
./glfw/src/x11_platform.h:36:10: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
36 | #include <X11/Xcursor/Xcursor.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```
就行是什么情况?该怎么解决呢?
<a href="/user/deyen" title="@deyen">@deyen</a> 还少? 你是没自己去了解吧? demo一堆. 文档一堆.
#11