有什么办法可以通过仅按照Windows 10中的步骤进行操作,因为扔GCC可执行
我正在尝试使用GO Fyne Framework构建GUI应用程序,我遵循了文档提供的准则,但是我缺少某些东西是GCC,但这不一定是问题BC,我已经下载并安装了MSYS2 mingx64我很困惑,请帮助下面的错误。
# github.com/go-gl/glfw/v3.3/glfw
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/go-gl/gl/v3.2-core/gl
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
PS C:\Users\weske\OneDrive\Desktop\FyneGems> go build .\main.go
# github.com/go-gl/glfw/v3.3/glfw
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/go-gl/gl/v3.2-core/gl
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
PS C:\Users\weske\OneDrive\Desktop\FyneGems> go build
# github.com/go-gl/glfw/v3.3/glfw
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/go-gl/gl/v3.2-core/gl
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
I am trying to build GUI application using Go Fyne Framework, I followed the guidelines that the docs provide, but I am missing something what it seems like is gcc but that doesn't have to be a problem bc I have downloaded and installed the msys2 mingx64 I am confused please help the error is below.
# github.com/go-gl/glfw/v3.3/glfw
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/go-gl/gl/v3.2-core/gl
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
PS C:\Users\weske\OneDrive\Desktop\FyneGems> go build .\main.go
# github.com/go-gl/glfw/v3.3/glfw
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/go-gl/gl/v3.2-core/gl
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
PS C:\Users\weske\OneDrive\Desktop\FyneGems> go build
# github.com/go-gl/glfw/v3.3/glfw
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/go-gl/gl/v3.2-core/gl
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除非您要求,否则MingW64不会安装GCC。在
Mingw64 does not install gcc unless you ask it to. There are steps for the unsure at https://developer.fyne.io/started/