simplegit icon indicating copy to clipboard operation
simplegit copied to clipboard

Build error alpine linux

Open pwFoo opened this issue 6 years ago • 3 comments

I have a build error and don't know how to fix it. lgit2 seems to be missing?

[ 95%] Linking C executable /mnt/simplegit/bin/sgit
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lgit2
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/sgit-bin.dir/build.make:85: /mnt/simplegit/bin/sgit] Error 1
make[3]: Leaving directory '/mnt/simplegit/build'
make[2]: *** [CMakeFiles/Makefile2:142: CMakeFiles/sgit-bin.dir/all] Error 2
make[2]: Leaving directory '/mnt/simplegit/build'
make[1]: *** [Makefile:95: all] Error 2
make[1]: Leaving directory '/mnt/simplegit/build'
make: *** [Makefile:16: main] Error 2

pwFoo avatar Jul 26 '19 14:07 pwFoo

@sba1 should simplegit still work or is it outdated?

pwFoo avatar Jul 26 '19 14:07 pwFoo

Am 2019-07-26 16:28, schrieb pwFoo:

@sba1 [1] should simplegit still work or is it outdated?

Yes, it should still work. But perhaps not with later libgit2. I will hopefully find time soon to update it.

BTW As the main target of simplegit is not alpine Linux, maybe you can add some instructions how to quickly compile and test it e.g. via docker.

sba1 avatar Jul 29 '19 13:07 sba1

I'm using the latest libgit2 and linking simplegit against it, it works.

tpimh avatar Aug 28 '19 08:08 tpimh