Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WwOWO-0008PA-62 for pgsql-odbc@arkaria.postgresql.org; Mon, 16 Jun 2014 04:27:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WwOWN-0006QC-MQ for pgsql-odbc@arkaria.postgresql.org; Mon, 16 Jun 2014 04:27:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WwOWN-0006Pv-2V for pgsql-odbc@postgresql.org; Mon, 16 Jun 2014 04:27:51 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WwOWJ-0002vw-4e for pgsql-odbc@postgresql.org; Mon, 16 Jun 2014 04:27:50 +0000 Received: from ayaki.localdomain (106-69-159-150.dyn.iinet.net.au [106.69.159.150]) by mrelayeu.kundenserver.de (node=mreue105) with ESMTP (Nemesis) id 0LyUFS-1WhZ6k2swY-015uoO; Mon, 16 Jun 2014 06:27:45 +0200 Message-ID: <539E723C.5040402@2ndquadrant.com> Date: Mon, 16 Jun 2014 12:27:40 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "pgsql-odbc@postgresql.org" Subject: PATCH: document build outputs X-Enigmail-Version: 1.6 Content-Type: multipart/mixed; boundary="------------080307040100070407080101" X-Provags-ID: V02:K0:4vUauJi3xYMzBXo/Tk4Yr0lByjyATzBlCNOmJ4jknpp j2ioIhHogtJKo4rxLZG9Et63JprUOTR8hK/9siG6IhLGNW4tlE LPbSbvoklCX+75sNq/q32HbxTgb4seSqflqqru9Uepq4gt+1vq WwKgkFtAal+9NffMYOX0UoQvEdvdQIaD8cZuogtgASSfF9gHIJ AZtrOreQT9UJPD61lS1fMsr0Loj4JDYdcFx8EVdAqCeuRl5dbG /mkegvO3Rvs5YWzz9zqQdc4Apl8c7OoLJcsZ0c4ID2wfP4nJb9 6KKQXkNg9X//Ot7fLvZYqneVVcxBMIA0CoCcBDV+6QXGdUtIoi yeutTzsjI0yoLJEhHDk04GooaQAb+b3xBX+a6Q4Mr X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------080307040100070407080101 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------080307040100070407080101 Content-Type: text/x-patch; name="0001-Document-build-outputs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Document-build-outputs.patch" From 5502849626f3e31dadb549cd84ef1b24e39e4e26 Mon Sep 17 00:00:00 2001 From: Craig Ringer 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.txt index 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 --------------080307040100070407080101 Content-Type: text/x-patch; name="0002-Discuss-issues-with-SDK-support-and-installation.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0002-Discuss-issues-with-SDK-support-and-installation.patch" From d5be5dd5090aeee856ae20997d6f54db8a67e80b Mon Sep 17 00:00:00 2001 From: Craig Ringer 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.txt index 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 --------------080307040100070407080101 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc --------------080307040100070407080101--