go-gl / gl

Go bindings for OpenGL (generated via glow)
MIT License
1.06k stars 72 forks source link

build report error in ubuntu20.04 #145

Open leyaocty opened 2 years ago

leyaocty commented 2 years ago

Hi, I am using your gl package and it works very well for most case. But when I try to build the program as a stand alone executable by command go build -x -v --ldflags -extldflags=-static, the go builder report error on ubuntu20.04:

/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

I checked all possible paths and linked the libGL everywhere but still got same error. Would you please advise how to fix this or what may cause this issues of your gl package?