summaryrefslogtreecommitdiff
path: root/src/tools/msvc/README
blob: ebc7d90506ec1377339097821df41d38ed047a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
This directory contains the tools required to build PostgreSQL using
Microsoft Visual Studio 2005.


Note that PostgreSQL builds natively with Visual C++. You must therefore
make sure that you do *NOT* have any tools from Cygwin or Mingw present
in the system PATH. Also, make sure you don't have any Cygwin/Mingw
environment variables "leaking" through.

First, edit config.pl to reflect what "configure options" you want set.

If you need to modify the environment for calling external tools, such as
flex or bison, create a file called "buildenv.bat". This file will be called
by all scripts before anything is done, so the environment can be set up.
(for example, include SET PATH=%PATH%;c:\some\where\bison\bin)

Then, to build all of PostgreSQL in debug configuration, run the command
	build
from a Visual Studio Command Prompt (to get all environment
variables set correctly).

To build all of PostgreSQL in release configuration, run
	build RELEASE

To build just a single project, for example psql, run
	build psql
or
	build RELEASE psql


Dependencies
------------

The following packages are needed for the different config options:

pthreads - always required
Download from ftp://sources.redhat.com/pub/pthreads-win32

perl - always required
Get ActiveState Perl from www.activestate.com

flex & bison - required to build from CVS (as opposed to a release tarball)
Download from http://gnuwin32.sourceforge.net.  Note that bison version 2.0
will not work.  Use either version 1.875, or version 2.1 or newer.
For flex, use version 2.5.4.

python - required for pl/python
Get from www.python.org

tcl - required for pl/tcl
Get ActiveState TCL from www.activestate.com

openssl - required for SSL support
Get from http://www.slproweb.com/products/Win32OpenSSL.html, or build
from source from www.openssl.org.

Kerberos - required for Kerberos support
Get from http://web.mit.edu/Kerberos/dist/index.html

zlib - required for compression support in pg_dump/pg_restore
Get from http://www.zlib.net

libxml2 and libxslt - required for XML support
Get from http://www.zlatkovic.com/pub/libxml or build from source from
http://xmlsoft.org. Note that libxml2 requires iconv.