有什么办法可以通过仅按照Windows 10中的步骤进行操作,因为扔GCC可执行

发布于 2025-02-03 16:28:20 字数 962 浏览 2 评论 0原文

我正在尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深居我梦 2025-02-10 16:28:21

除非您要求,否则MingW64不会安装GCC。在

Mingw64 does not install gcc unless you ask it to. There are steps for the unsure at https://developer.fyne.io/started/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文