kolesa-team / go-webp

Simple and fast webp library for golang
MIT License
225 stars 36 forks source link

Build error with cgo_enabled=1 GOOS=linux GOARCH=amd64 #5

Closed priyeshpc closed 3 years ago

priyeshpc commented 3 years ago

Build error with cgo_enabled=1 GOOS=linux GOARCH=amd64. How to solve this issue?

github.com/kolesa-team/go-webp/encoder
187 | /go/pkg/mod/github.com/kolesa-team/go-webp@v1.0.0/encoder/options.go:112:5: could not determine kind of name for C.WebPConfigLosslessPreset
188 | # github.com/kolesa-team/go-webp/decoder
189 | /go/pkg/mod/github.com/kolesa-team/go-webp@v1.0.0/decoder/decoder.go:111:48: d.config.input.format undefined (type _Ctype_struct_WebPBitstreamFeatures has no field or method format)
190 | /go/pkg/mod/github.com/kolesa-team/go-webp@v1.0.0/decoder/options.go:82:16: config.options.dithering_strength undefined (type _Ctype_struct_WebPDecoderOptions has no field or method dithering_strength)
191 | /go/pkg/mod/github.com/kolesa-team/go-webp@v1.0.0/decoder/options.go:85:17: config.options.flip undefined (type _Ctype_struct_WebPDecoderOptions has no field or method flip)
192 | /go/pkg/mod/github.com/kolesa-team/go-webp@v1.0.0/decoder/options.go:88:16: config.options.alpha_dithering_strength undefined (type _Ctype_struct_WebPDecoderOptions has no field or method alpha_dithering_strength)
lEx0 commented 3 years ago

maybe you have an old version of Libwebp installed? tell me which linux distribution you have installed and version of libwebp

priyeshpc commented 3 years ago

Is it work without CGO?

lEx0 commented 3 years ago

Is it work without CGO?

No

gokhan-alagoz commented 2 years ago

how to version libwebp same problem Centos-7 installing