Cross-building Subsurface on Linux for Windows

Lubomir I. Ivanov neolit123 at gmail.com
Tue Mar 18 05:50:45 PDT 2014


please, don't use top-posting:
http://en.wikipedia.org/wiki/Posting_style#Top-posting

On 18 March 2014 14:21, Farzana Raisa <farzanaahmed17 at gmail.com> wrote:
> It's already been added to mingw-make.sh
>

it's important to find what libgit2-dev version you have.
CONFIG += libgit21-api
would define USE_LIBGIT21_API

in save-git.c, bellow this line:
#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 20 && !defined(USE_LIBGIT21_API)

you can add something like:
#error BREAK

and see if that pre-processor branch is entered if the #error triggers.

the idea there is the following:
- if one has NOT defined USE_LIBGIT21_API (CONFIG += libgit21-api)
- and if one's libgit2 version is 0.20 or bellow we wrap some API
calls to pass less arguments

so if you have 0.21 only then you add CONFIG += libgit21-api.
if not leave it out.

lubomir
--


More information about the subsurface mailing list