1

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 | 7557次围观

 go env -w "CGO_ENABLED=1"


https://stackoverflow.com/questions/78699302/cannot-import-go-gl-library-build-constraints-exclude-all-go-files

分享:

扫一扫在手机阅读、分享本文

1条评论
  • 访客 发表于 3个月前 回复

    # 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

微信客服

微信客服