Re: Build the PostgreSQL ODBC Driver on Windows

From: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
To: "sunbiao(at)highgo(dot)com" <sunbiao(at)highgo(dot)com>, pgsql-odbc <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Build the PostgreSQL ODBC Driver on Windows
Date: 2017-07-03 22:21:14
Message-ID: f1c0eae6-f87b-10fc-7599-48f68c84d865@dream.email.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

On 2017/07/03 16:21, sunbiao(at)highgo(dot)com wrote:
>
> hi developer:
>
> I build the PostgreSQL ODBC Driver on Windows10 X64,but have some trouble.
>
> I download psqlodbc-09.05.0400 to build it with Microsoft Visual
> Studio 2010.
>
> I use following two methods to build.
>

> 2.Use Powershell
>
> The following error:
>
> PS C:\Users\Sun\Desktop\ODBC\psqlodbc-09.05.0400\installer>
> .\buildInstallers.ps1
>
> Dumpbin=C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\VC\bin\dumpbin.exe
>
> CPUTYPE : x86
>
> VERSION : 09.05.0400
>
> LIBPQBINDIR: C:\Program Files (x86)\PostgreSQL\9.5\bin
>
> Failed to dumpbin C:\Program Files (x86)\PostgreSQL\9.5\bin\libpq.dll
>
> location
> C:\Users\Sun\Desktop\ODBC\psqlodbc-09.05.0400\installer\buildInstallers.ps1:93
> character: 3
>
> + throw "Failed to dumpbin $dllfolder\$dllname"
>
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> + CategoryInfo : OperationStopped: (Failed to
> dumpb...5\bin\libpq.dll:String) [],RuntimeException
>
> + FullyQualifiedErrorId : Failed to dumpbin C:\Program
> Files(x86)\PostgreSQL\9.5\bin\libpq.dll
>

Hmm Powershell seems to load dumpbin using VC10.
Please try VC10 command prompt not a simple command prompt.

regards,
Hiroshi Inoue

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Inoue, Hiroshi 2017-07-03 22:46:06 Re: Materialized views trough ODBC
Previous Message Jan Wieck 2017-07-03 13:55:49 Config documentation about PROTOCOL=