bimg: vendor/github.com/h2non/bimg/image.go:15: undefined: Options
Hi, I have a problème with go build
go v1.8 macOS 10.12.4
vendor/github.com/h2non/bimg/image.go:15: undefined: Options
vendor/github.com/h2non/bimg/image.go:25: undefined: Options
vendor/github.com/h2non/bimg/image.go:82: undefined: Gravity
vendor/github.com/h2non/bimg/image.go:122: undefined: Watermark
vendor/github.com/h2non/bimg/image.go:135: undefined: Angle
vendor/github.com/h2non/bimg/image.go:159: undefined: Interpretation
vendor/github.com/h2non/bimg/image.go:167: undefined: Options
vendor/github.com/h2non/bimg/image.go:177: undefined: ImageMetadata
vendor/github.com/h2non/bimg/image.go:183: undefined: Interpretation
vendor/github.com/h2non/bimg/image.go:199: undefined: ImageSize
vendor/github.com/h2non/bimg/image.go:25: too many errors
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 10
- Comments: 16 (2 by maintainers)
Apologies @bpsizemore I disable cgo when I build most of my binaries. Mostly because the rest services I develop don’t use any cgo bindings. This obviously will not work if I pass
CGO_ENABLED=0while doing a go build.Just want to see what the state of this issue is. I am getting the same errors on OS X 10.12.6 and Go version 1.9.1.
Edit: got this working now. It had to do with my build scripts disabling cgo. Apologies!