<div dir="ltr"><div>I removed both the static switches, but with or without the libgit2 switch, I still get the following:<br>Linking CXX executable TestGpsCoords<br>/usr/bin/ld: cannot find -lgit2<br>/usr/bin/ld: cannot find -lgit2<br>collect2: error: ld returned 1 exit status<br>CMakeFiles/TestGpsCoords.dir/build.make:230: recipe for target 'TestGpsCoords' failed<br>make[2]: *** [TestGpsCoords] Error 1<br>CMakeFiles/Makefile2:61: recipe for target 'CMakeFiles/TestGpsCoords.dir/all' failed<br>make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2<br>Makefile:127: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br></div>Libgit2 is installed from the Fedora 21 repositories, but using the qmake build script hasn't thrown any errors about it in the past. The library was pulled and (I think) linked statically to the Subsurface binary<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 April 2015 at 08:05, Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, Apr 05, 2015 at 07:56:27AM +0300, Miika Turkia wrote:<br>
> On Sun, Apr 5, 2015 at 7:50 AM, Benjamin <<a href="mailto:nystire@gmail.com">nystire@gmail.com</a>> wrote:<br>
> ><br>
> > This is the output from your suggested set of switches:<br>
> > cmake -DCMAKE_BUILD_TYPE=Debug -DLIBDCDEVEL=../libdivecomputer<br>
> > -DLIBDCSTATIC=1 -DLIBGIT2DEVEL=../libgit2 -DLIBGIT2STATIC=1<br>
> > -dLIBMARBLEDEVEL=../marble/build ../subsurface<br>
> ><br>
> > Linking CXX executable TestGpsCoords<br>
> > /usr/bin/ld: cannot find -lgit2<br>
> > /usr/bin/ld: cannot find -lgit2<br>
> > collect2: error: ld returned 1 exit status<br>
> > CMakeFiles/TestGpsCoords.dir/build.make:230: recipe for target<br>
> > 'TestGpsCoords' failed<br>
> > make[2]: *** [TestGpsCoords] Error 1<br>
> > CMakeFiles/Makefile2:61: recipe for target<br>
> > 'CMakeFiles/TestGpsCoords.dir/all' failed<br>
> > make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2<br>
> > Makefile:127: recipe for target 'all' failed<br>
> > make: *** [all] Error 2<br>
> ><br>
> ><br>
><br>
> Try without the libgit specific parameters. (If you have libgit2<br>
> installed globally.) That Is how I got a working build. Otherwise,<br>
> make sure you have sources for libgit2 as specified with the<br>
> parameters.<br>
<br>
</div></div>Yes, these parameters need to match the way you are building.<br>
<br>
I also just responded to Benjamin's first email (the one without Cc) that<br>
I fixed the .qm bug...<br>
<br>
Basically if you had done an in-tree build with qmake in your source<br>
directory then you wouldn't run into this, but if your source directory is<br>
pristine (only out of tree builds) then the .qm files weren't rebuilt.<br>
Oops.<br>
<br>
Thanks for testing.<br>
<br>
And a LOT more testing is needed.<br>
<br>
WARNING - WARNING - WARNING<br>
<br>
I will deprecate and then remove the qmake support fairly soon!<br>
<span class="HOEnZb"><font color="#888888"><br>
/D<br>
</font></span></blockquote></div><br></div>