Re: Building psqlODBC installers

From: "Inoue, Hiroshi" <inoue(at)tpf(dot)co(dot)jp>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>, Hiroshi Saito <hiroshi(at)winpg(dot)jp>, Dave Page <dpage(at)pgadmin(dot)org>
Subject: Re: Building psqlODBC installers
Date: 2014-06-14 22:06:32
Message-ID: 539CC768.2070803@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

(2014/06/13 21:33), Heikki Linnakangas wrote:
> I found the procedure for building the installers quite cumbersome.
> There are several ways to do it, using the PowerShell installers, or
> Make.bat or Makex64.bat files, and you have to first build the right
> drivers versions etc.
>
> To simplify things, I invented yet another way to build the installers ;-).
>
> I pushed a patch that adds new targets to the top-level win64.mak file.
> The most interesting target is "world", which builds both x64 and x86
> versions of the driver, both ANSI and Unicode versions. And then it
> builds both x86 and x64 installers. All in one command:
>
> nmake /f win64.mak world
>
> I don't know how you've been building the official releases so far, but
> I would strongly recommend using this method. I'd like to remove the
> installer/make.bat and installer/makex64.bat files now. The only reason
> I didn't do that yet is that I don't actually do the official releases
> myself, so wanted to make sure this works for everyone.
>
> So: Hiroshi, Hiroshi, Dave, does this method work for you, for building
> the official builds? Would it be helpful to add new targets to build the
> various .zip files, for pushing directly to the FTP site?

It doesn't work under Visual Studio 2013 Express for Windows Desktop
because
1. TARGET_CPU variable isn't set.
2. setenv.cmd doesn't exist.

IIRC the only environment win64.mak works is Windows SDK 7.1.
One of the reason why I switched to MSBuild is to avoid such
kind of troubles.

regards,
Hiroshi Inoue

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message John Smith 2014-06-14 22:20:25 Re: SQL_DATA_AT_EXEC fails for SQL_C_BIGINT and SQL_C_NUMERIC
Previous Message John Smith 2014-06-14 20:05:58 SQL_DATA_AT_EXEC fails for SQL_C_BIGINT and SQL_C_NUMERIC