登录
首页 >  Golang >  Go问答

在 Windows 10 上如何在 Go 中运行我的 Fyne 应用程序并解决 gcc 可执行文件未找到的问题

来源:stackoverflow

时间:2024-02-23 10:09:14 446浏览 收藏

从现在开始,努力学习吧!本文《在 Windows 10 上如何在 Go 中运行我的 Fyne 应用程序并解决 gcc 可执行文件未找到的问题》主要讲解了等等相关知识点,我会在golang学习网中持续更新相关的系列文章,欢迎大家关注并积极留言建议。下面就先一起来看一下本篇正文内容吧,希望能帮到你!

问题内容

我正在尝试使用 go fyne framework 构建 gui 应用程序,我遵循了文档提供的指南,但我缺少一些看起来像是 gcc 的东西,但这不一定是问题,因为我已经下载了并且安装了 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%

正确答案


除非您要求,Mingw64 不会安装 gcc。不确定的可以拨打 https://developer.fyne.io/started/ 进行操作

今天带大家了解了的相关知识,希望对你有所帮助;关于Golang的技术知识我们会一点点深入介绍,欢迎大家关注golang学习网公众号,一起学习编程~

声明:本文转载于:stackoverflow 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>