2014-11-23 28 views
0

在Mac上我試圖安裝GO-GL,但是當我運行MAC去拿github.com/go-gl/gl

go get github.com/go-gl/gl 

我得到以下錯誤:

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 

有人請幫我解決這個問題!

回答

1

除非您有充分的理由不這樣做,否則您應該使用go-gl/glow包而不是go-gl/gl。它將爲您和您的用戶提供更好的體驗。

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