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-compiling projects that are using git2go #324

Open
calvn opened this issue Jun 23, 2016 · 4 comments
Open

Cross-compiling projects that are using git2go #324

calvn opened this issue Jun 23, 2016 · 4 comments

Comments

@calvn
Copy link

calvn commented Jun 23, 2016

I was wondering what would be the pipeline for cross-compiling a project that is using git2go? My knowledge with compilers is minimal, and to my understanding cross-compiling external libraries is non-trivial.

@ethernetdan
Copy link

I've been looking into xgo, which allows for cross-compilation of Go with CGO components. The missing piece to get xgo working with git2go is support for CMake (karalabe/xgo#49). I'm hoping soon to have a chance to take a stab at a PR.

@calvn
Copy link
Author

calvn commented Jul 5, 2016

It's awesome to hear that others interested in this as well! I've also thought about using xgo, but then saw the CMake limitation as mentioned in here, and decided to try tackling it from a different tangent.

So far I got static build of git2go and its dependencies on linux-amd64 with multiarch/crossbuild. I used their image as the base, and scripted the build for the libraries. However, I am not sure of how I can do the same for other platforms. I opened an issue with them regarding this to ask for suggestions.

@CoolHandDev
Copy link

Hi Calvin, have you been able to create cross platform static builds of git2go? I'm particularly interested in a build for Windows 10.

@calvn
Copy link
Author

calvn commented Jan 19, 2017

Hey @CoolHandDev, unfortunately I was not able to get it working! I was able to get static builds from MacOS to amd64 targets, but even that was a hassle so I didn't experiment any further. It might be too late at this point, but if you are performing read-only manipulations, it might be worth looking at go-git which doesn't depend on any C libraries AFAIK.

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