cmake

Miika Turkia miika.turkia at gmail.com
Sat Apr 4 21:56:27 PDT 2015


On Sun, Apr 5, 2015 at 7:50 AM, Benjamin <nystire at gmail.com> wrote:
>
> This is the output from your suggested set of switches:
> cmake -DCMAKE_BUILD_TYPE=Debug -DLIBDCDEVEL=../libdivecomputer
> -DLIBDCSTATIC=1 -DLIBGIT2DEVEL=../libgit2 -DLIBGIT2STATIC=1
> -dLIBMARBLEDEVEL=../marble/build ../subsurface
>
> Linking CXX executable TestGpsCoords
> /usr/bin/ld: cannot find -lgit2
> /usr/bin/ld: cannot find -lgit2
> collect2: error: ld returned 1 exit status
> CMakeFiles/TestGpsCoords.dir/build.make:230: recipe for target
> 'TestGpsCoords' failed
> make[2]: *** [TestGpsCoords] Error 1
> CMakeFiles/Makefile2:61: recipe for target
> 'CMakeFiles/TestGpsCoords.dir/all' failed
> make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2
> Makefile:127: recipe for target 'all' failed
> make: *** [all] Error 2
>
>

Try without the libgit specific parameters. (If you have libgit2
installed globally.) That Is how I got a working build. Otherwise,
make sure you have sources for libgit2 as specified with the
parameters.

miika


More information about the subsurface mailing list