xgo icon indicating copy to clipboard operation
xgo copied to clipboard

CMake Support

Open ethernetdan opened this issue 9 years ago • 5 comments

It would be great if dependencies using CMake were supported.

I would like to crosscompile git2go, which has libgit2 (which uses CMake) as a dependency.

ethernetdan avatar May 11 '16 01:05 ethernetdan

+1, same case as above - I'm trying to cross compile a program with libgit2 statically linked.

CMake support would be really appreciated!

kmazurek avatar Nov 08 '16 19:11 kmazurek

#63

mainrs avatar Feb 14 '17 10:02 mainrs

I'd gladly accept PRs ;)

karalabe avatar Feb 16 '17 09:02 karalabe

I tried it, but I can't seem to make it work. I cloned the repo and changed the process in build-debs.sh to use cmake. I have really no idea how to create the docker images myself. Every time I tried it, it would still pull the images from the docker repo and thus ignoring my changes D:

If you could tell me how to properly test a new implementation without it pulling images from docker's repo I would try to implement it but I couldn't find any resources for it...

mainrs avatar Feb 16 '17 09:02 mainrs

I'm trying to cross compile git2go as well. I was able to successfully build a small test project that uses git2go to both linux and windows from my mac by setting up modified docker containers that include a cross compiled version of libgit2. I laid out the commands here: https://github.com/jallwine/xgo-git2go-docker-image

It's a starting point.

jallwine avatar Mar 08 '17 00:03 jallwine