bimg icon indicating copy to clipboard operation
bimg copied to clipboard

build error

Open ABetterCat opened this issue 1 year ago • 1 comments

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

ABetterCat avatar Sep 22 '22 07:09 ABetterCat

@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"

Maxim-Durand avatar Oct 28 '23 21:10 Maxim-Durand