h2non / bimg

Go package for fast high-level image processing powered by libvips C library
https://pkg.go.dev/github.com/h2non/bimg?tab=doc
MIT License
2.65k stars 337 forks source link

build error #422

Open ABetterCat opened 1 year ago

ABetterCat commented 1 year ago

centos6.x libvips: vips-8.9.2-Tue When i build it,it returned: /root/go/pkg/mod/github.com/h2non/bimg@v1.1.9/metadata.go:5:10: fatal error: vips/vips.h: No such file or directory

Maxim-Durand commented 10 months ago

@ABetterCat Did you find a solution ?

I'm facing the same issue when trying to cross-compile to windows with :

GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go build -o $(EXE_NAME) $(TARGET_FOLDER)

I tried downloading, compiling and installing the latest version (v8.14.5 as of this writing) of libvips but it didn't fix anything.

I'm not having any issue when running with my default architecture.

GOHOSTARCH="amd64"
GOHOSTOS="linux"