MAC执行以下命令获取github.com/go-gl/gl库: “` go get github.com/go-gl/gl “`

huangapple go评论93阅读模式
英文:

MAC go get github.com/go-gl/gl

问题

在Mac上,我正在尝试设置GO-GL,但当我运行

go get github.com/go-gl/gl

我遇到了以下错误:

在文件 src/github.com/go-gl/gl/attriblocation.go 中包含:7:./gl.h:2:10: 致命错误:找不到 'GL/glew.h' 文件

有人能帮我解决这个问题吗?

英文:

On MAC i am trying to setup GO-GL, but when i run

go get github.com/go-gl/gl

I get the following error:

In file included from src/github.com/go-gl/gl/attriblocation.go:7:./gl.h:2:10: fatal error: 'GL/glew.h' file not found

Someone please help me figure this out!

答案1

得分: 1

除非你有充分的理由不这样做,否则你应该使用go-gl/glow包而不是go-gl/gl。它将为你和你的用户提供更好的体验。

https://github.com/go-gl/glow#glow

英文:

Unless you have a good reason not to, you should use go-gl/glow package instead of go-gl/gl. It will provide you and your users with a better experience.

https://github.com/go-gl/glow#glow

huangapple
  • 本文由 发表于 2014年11月23日 09:37:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/27084662.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定