Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle syso for darwin_64 and linux_64 #7

Open
DAddYE opened this issue Feb 10, 2015 · 4 comments
Open

Bundle syso for darwin_64 and linux_64 #7

DAddYE opened this issue Feb 10, 2015 · 4 comments

Comments

@DAddYE
Copy link
Owner

DAddYE commented Feb 10, 2015

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)
@cpjolicoeur
Copy link

👍

@cpjolicoeur
Copy link

@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: ...

@jfragosoperez
Copy link

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

@jfragosoperez
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants