From 63876d3bac5a7471a7987da25a93c13a2534a644 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Tue, 3 Jan 2012 08:44:26 -0500 Subject: Support for building with MS Visual Studio 2010. Brar Piening, reviewed by Craig Ringer. --- doc/src/sgml/install-windows.sgml | 54 +++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/install-windows.sgml b/doc/src/sgml/install-windows.sgml index f96b174fcc0..b6ea0abc40b 100644 --- a/doc/src/sgml/install-windows.sgml +++ b/doc/src/sgml/install-windows.sgml @@ -20,10 +20,10 @@ There are several different ways of building PostgreSQL on Windows. The simplest way to build with Microsoft tools is to install a supported version of the - Microsoft Platform SDK and use the included + Microsoft Windows SDK and use the included compiler. It is also possible to build with the full - Microsoft Visual C++ 2005 or 2008. In some cases - that requires the installation of the Platform SDK + Microsoft Visual C++ 2005, 2008 or 2010. In some cases + that requires the installation of the Windows SDK in addition to the compiler. @@ -69,32 +69,26 @@ Building with <productname>Visual C++</productname> or the - <productname>Platform SDK</productname> + Microsoft Windows SDK PostgreSQL can be built using the Visual C++ compiler suite from Microsoft. These compilers can be either from Visual Studio, Visual Studio Express or some versions of the - Platform SDK. If you do not already have a + Microsoft Windows SDK. If you do not already have a Visual Studio environment set up, the easiest - way us to use the compilers in the Platform SDK, + way is to use the compilers in the Windows SDK, which is a free download from Microsoft. - PostgreSQL supports the compilers from - Visual Studio 2005 and - Visual Studio 2008. When using the Platform SDK - only, or when building for 64-bit Windows, only - Visual Studio 2008 is supported. - Visual Studio 2010 is not yet supported. - - - - When building using the Platform SDK, versions - 6.0 to 7.0 of the SDK are supported. Older or newer versions will not work. - In particular, versions from 7.0a and later will not work, since - they include compilers from Visual Studio 2010. + PostgreSQL is known to support compilation using the compilers shipped with + Visual Studio 2005 to + Visual Studio 2010 (including Express editions), + as well as standalone Windows SDK releases 6.0 to 7.1. + 64-bit PostgreSQL builds are only supported with + Microsoft Windows SDK version 6.0a and above or + Visual Studio 2008 and above. @@ -104,11 +98,13 @@ Cygwin present in your system PATH. Also, make sure you have all the required Visual C++ tools available in the PATH. In Visual Studio, start the - Visual Studio Command Prompt. In the - Platform SDK, start the - CMD shell listed under the SDK on the Start Menu. + Visual Studio Command Prompt. If you wish to build a 64-bit version, you must use the 64-bit version of the command, and vice versa. + In the Microsoft Windows SDK, start the + CMD shell listed under the SDK on the Start Menu. + In recent SDK versions you can change the targeted CPU architecture by using + the setenv command. All commands should be run from the src\tools\msvc directory. @@ -148,17 +144,17 @@ $ENV{PATH}=$ENV{PATH} . ';c:\some\where\bison\bin'; - Microsoft Platform SDK + Microsoft Windows SDK It is recommended that you upgrade to the latest supported version - of the Microsoft Platform SDK (currently - version 7.0), available for download from + of the Microsoft Windows SDK (currently + version 7.1), available for download from . You must always include the Windows Headers and Libraries part of the SDK. - If you install the Platform SDK + If you install the Windows SDK including the Visual C++ Compilers, you don't need Visual Studio to build. @@ -202,6 +198,10 @@ $ENV{PATH}=$ENV{PATH} . ';c:\some\where\bison\bin'; Bison can be downloaded from . Flex can be downloaded from . + If you are using msysGit for accessing the + PostgreSQL Git repository you probably already + have recent versions of bison and flex in your Git + binary directory. @@ -479,7 +479,7 @@ $ENV{DOCROOT}='c:\docbook'; static library to link into an application. For normal use the MinGW or Visual Studio or - Platform SDK method is recommended. + Windows SDK method is recommended. -- cgit v1.2.3