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

cross compile for windows #414

Open
rafaelromero opened this issue Oct 17, 2017 · 4 comments
Open

cross compile for windows #414

rafaelromero opened this issue Oct 17, 2017 · 4 comments

Comments

@rafaelromero
Copy link

running GOOS=windows GOARCH=386 go build -o app.exe app.go
getting go build github.com/libgit2/git2go: build constraints exclude all Go files

any suggestions on how to get this cross-compile working?

@mschenk42
Copy link

This project may help with how to build for windows, linux and MacOS https://github.com/git-time-metric/gtm. Review the appveyor.yml, .travis.yml and scripts directory for how to.

@808codist
Copy link

808codist commented Mar 30, 2018

@mschenk42 What MYS2 packages do you have installed? i.e. what is output of pacman -Qqe?

Also, know of any changes to your scripts to use v27 instead of v26?

(Edit: clarity)

@mschenk42
Copy link

It's been a while since I got this working. It's an experience I'm trying to forget :).
This may help you determine what is required for the build.

https://github.com/git-time-metric/gtm/blob/master/appveyor.yml
https://github.com/git-time-metric/gtm/tree/master/script
https://ci.appveyor.com/project/mschenk42/gtm

@mschenk42
Copy link

I updated the GTM project to build with v27. I had to update the build process since the cmakelist configuration changed (for the better). My latest build changes are in the master branch.

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