build errors with save-git.c and upstream libgit2

Dirk Hohndel dirk at hohndel.org
Sun May 4 11:27:59 PDT 2014


On Sun, 2014-05-04 at 20:20 +0200, Lutz Vieweg wrote:
> Hi,
> 
> I seem to need "-DUSE_LIBGIT21_API=1" to make subsurface with
> the current libgit2 sources.
> 
> What is the recommended way to enable that for building?

qmake CONFIG+=libgit21-api ...

> I found in subsurface-configure.pri:
> > libgit21-api {
> > 	DEFINES += USE_LIBGIT21_API
> > }
> ... but I don't know what/when would use that .pri file.

There are several stances like that - you can select them by adding to
CONFIG as shown above.

> (For now I've patched my Makefile, manually, which is probably
> not the recommended method, I suppose.)

No, definitely not

/D



More information about the subsurface mailing list