go run 报错 github.com/go-gl/gl/v2.1/gl: build constraints exclude all Go files in D:\Program Files\G
2024.08.11 | vance | 4440次围观
go env -w "CGO_ENABLED=1"
https://stackoverflow.com/questions/78699302/cannot-import-go-gl-library-build-constraints-exclude-all-go-files
1条评论
# github.com/go-gl/gl/v3.1/gles2
../../../../go/pkg/mod/github.com/go-gl/gl@v0.0.0-20190320180904-bf2b1f2f34d7/v3.1/gles2/package.go:38:11: fatal error: 'KHR/khrplatform.h' file not found
#include
^~~~~~~~~~~~~~~~~~~
1 error generated.
brew install gcc