[Gpg4win-devel] Updated Compiling Guide

Werner Koch wk at gnupg.org
Wed Jun 26 10:37:48 CEST 2013


On Wed, 26 Jun 2013 05:13, phillip654 at hotmail.com said:
> Werner,
>
> I don't remember the error I was getting before as I have reinstalled
> multiple times, but the error im currently getting is "Error: invalid
> VIProductVersion format, should be X.X.X.X". I have tried manually putting
> in the version in the installer.nsi file, but that didn't help.

Check out include/config.h.  You whould fine a line like

  !define _BUILD_FILEVERSION 2.1.1.43292

This is created by configure from include/config.h.in.  The last part of
that version is a decimalized git commit id.  That one is created by
running ./autogen.sh.  To be sure that no automake caching gets into the
way, you may want to run

  ./autogen.sh --force

once.  This is a bit of M$ magic:

  m4_define([git_revision], m4_esyscmd([git branch -v 2>/dev/null \
            | awk '/^\* / {printf "%s",$3}']))
  m4_define([git_revision_dec],
            m4_esyscmd_s([echo $((0x$(echo ]git_revision[|head -c 4)))]))

Right, using git branch might fail - I need to update it to use git
rev-parse as it is done with all other projects.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.



More information about the Gpg4win-devel mailing list