Open patabhu opened 1 year ago
@patabhu you are compiling with CGO_ENABLED
set to 0 which is incorrect, since go-cairo is a wrapper for the C version of cairo
, you need to tell the Go compiler that you're using C in your compilation, so set CGO_ENABLED
to 1 and you shall compile peacefully!
i am building my project using below cmd.
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o handlerBuild cmd/handler/main.go
Error generated:imports github.com/ungerik/go-cairo: build constraints exclude all Go files in /home/oem/go/pkg/mod/github.com/ungerik/go-cairo@v0.0.0-20220815093914-e24bd4259cef
can someone explain me, what is happening over here ?my system details on which i am try to build.