vips icon indicating copy to clipboard operation
vips copied to clipboard

Bundle syso for darwin_64 and linux_64

Open DAddYE opened this issue 10 years ago • 4 comments
trafficstars

I know this is not the best thing but will allow two things:

  1. Don't have to install libvips/libjpeg and friends
  2. Avoid nasty configurations (since will be bundle with jpeg-turbo)

DAddYE avatar Feb 10 '15 03:02 DAddYE

:+1:

cpjolicoeur avatar Feb 21 '15 02:02 cpjolicoeur

@DAddYE any help on how to cross-compile and app that uses Vips? I'm running OS X (darwin) and need to compile for linux/amd64. I've tried doing

GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build ...

but get a linker error of

ld: unknown option: --build-id=none
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Do you need to maybe add some of the #cgo LDFLAGS directives?

// #cgo LDFLAGS: ...

cpjolicoeur avatar Feb 23 '15 00:02 cpjolicoeur

any news on this problem? @cpjolicoeur did you manage to solve it? we've the same issue

jfragosoperez avatar May 02 '16 11:05 jfragosoperez

Description of the issue:

Running a build of my project (uses vips) for linux in a macbook: env GOOS=linux GOARCH=amd64 go build -v .

to build a binary for deploying it into a linux server, I get: go build github.com/daddye/vips: no buildable Go source files in $GOPATH/src/github.com/daddye/vips

If I do a simple build, without specifying the GOOS and GOARCH, leads to a successful build with no errors. The strange thing is that the code builds and runs locally in my machine, but the problem comes when trying to generate the linux bin.

jfragosoperez avatar May 02 '16 12:05 jfragosoperez