vips
vips copied to clipboard
Bundle syso for darwin_64 and linux_64
I know this is not the best thing but will allow two things:
- Don't have to install libvips/libjpeg and friends
- Avoid nasty configurations (since will be bundle with jpeg-turbo)
:+1:
@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: ...
any news on this problem? @cpjolicoeur did you manage to solve it? we've the same issue
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.