From: Craig Ringer <craig@2ndquadrant.com>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: PATCH: document build outputs
Date: Mon, 16 Jun 2014 12:27:40 +0800
Message-ID: <539E723C.5040402@2ndquadrant.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hi
I noticed that the winbuild\ docs don't cover where the build outputs
actually go, and the directory naming is ... inconsistent.
The attached adds info on what's what. I've also included another docs
change to explain a tiny bit more about SDK installation.
You can grab both with:
git remote add ringerc git@github.com:ringerc/psqlODBC.git
git fetch ringerc
git merge ringerc/document-build-outputs
or using "git apply" of the attached patches.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbcAttachments:download all (2 files, .tar.gz)0001-Document-build-outputs.patch (text/x-patch, 1.9K) download
From 5502849626f3e31dadb549cd84ef1b24e39e4e26 Mon Sep 17 00:00:00 2001
From: Craig Ringer <craig@2ndquadrant.com>
Date: Mon, 16 Jun 2014 12:20:44 +0800
Subject: [PATCH 1/2] Document build outputs
The build didn't explain what went where, or what to do about dependencies.
Improve the docs to cover the topic.
---
winbuild/readme.txt | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/winbuild/readme.txt b/winbuild/readme.txtindex 1de8f66..8faa118 100755--- a/winbuild/readme.txt+++ b/winbuild/readme.txt@@ -57,4 +57,34 @@
Get-Help .\BuildAll(.ps1) [-Detailed | -Examples | -Full]
+ 5. Outputs++ The build can produce output in up to four directories for each of+ the debug and release configurations:++ - AMD64Release the Unicode driver, 64-bit+ - AMD64ANSIRelease the ANSI driver, 64-bit+ - Release the ANSI driver, 32-bit+ - MultibyteRelease the Unicode driver, 32-bit++ For debug builds (-Configuration Debug) the directories are named with+ Debug instead of Release but otherwise the same.++ pgxalib.dll is only built for the multibyte/unicode version, as it is+ the same for both unicode and ansi drivers.++ Dependencies like libpq, openssl, etc are not copied into the build+ output directories. You must copy them to the target directory yourself.+ Dependency Walker (depends.exe) from http://dependencywalker.com/ can help+ you find what's needed, but in general you'll need to add:++ - libpq (from the PostgreSQL bin dir)+ - libintl (from the PostgreSQL bin dir)+ - ssleay32 (from the OpenSSL bin dir)+ - libeay32 (from the OpenSSL bin dir)++ ... and the Visual Studio runtime redist for the version of Visual Studio+ you compiled with.+ +
***********************************************************************/
--
1.9.0
0002-Discuss-issues-with-SDK-support-and-installation.patch (text/x-patch, 1.7K) download
From d5be5dd5090aeee856ae20997d6f54db8a67e80b Mon Sep 17 00:00:00 2001
From: Craig Ringer <craig@2ndquadrant.com>
Date: Mon, 16 Jun 2014 12:25:21 +0800
Subject: [PATCH 2/2] Discuss issues with SDK support and installation
---
winbuild/readme.txt | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/winbuild/readme.txt b/winbuild/readme.txtindex 8faa118..eb6407b 100755--- a/winbuild/readme.txt+++ b/winbuild/readme.txt@@ -17,8 +17,15 @@
You have to include x64 development tools (bin, lib, include) as
well as x86 ones for the installation.
+ Note that the Visual Studio 2010 install conflicts with Windows SDK 7.1.+ Visual Studio 2012 conflict with both Windows SDK 7.1 and Visual Studio 2010.+ Finally, Windows SDK 7.1 will fail to install if a newer Visual Studio 2010 + runtime is already installed on the computer.- Please start a powershell console and+ To avoid conflicts, install only one SDK. There is an order in which all+ can be installed safely, but it's cumbersome and there's little benefit.++ Once you have an SDK installed, please start a powershell console and
2. Set the ExecutionPolicy of Powershell to RemoteSigned or Unrestricted.
You can get the ExecutionPolicy by typing
@@ -85,6 +92,12 @@
... and the Visual Studio runtime redist for the version of Visual Studio
you compiled with.
++Troubleshooting:++Some documentation on dealing with Windows SDK installation issues can be found+on the related pg_build_win page:+https://github.com/2ndQuadrant/pg_build_win#troubleshooting
***********************************************************************/
--
1.9.0
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: craig@2ndquadrant.com
Subject: Re: PATCH: document build outputs
In-Reply-To: <539E723C.5040402@2ndquadrant.com>
References: <539E723C.5040402@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox