summaryrefslogtreecommitdiff
path: root/cpp/INSTALL-WINDOWS
blob: 3ac76509f30d03d2917940be22bca008904379eb (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
		Installing Qpid/C++ on Windows
		==============================

Table of Contents
=================
1. Introduction

2. Prerequisites
   2.1. What to Install
   2.2. Important Environment Variable Settings

3. Building from a Source Distribution
4. Building a Repository Working Copy
5. Tests
6. Doxygen
7. Troubleshooting


1. Introduction
===============
Note that the daemon and client API can be built and installed separately.
They both link against a common library.

This document describes how to build the Qpid/C++ broker and client, either
from a checkout of the source or from a source distribution, on Windows using
Microsoft Visual Studio 2008 (VC9).

Please see INSTALL for information on building on Linux/UNIX.


2. Prerequisites
================
We prefer to avoid spending time accommodating older versions of these
packages, so please make sure that you have the latest stable versions.
Known version numbers for a succesful build are given in brackets, take
these as a recommended minimum version.

2.1. What to Install
====================

The following libraries and header files must be installed to build
a source distribution:
 * boost      <http://www.boost.org>                   	(1.35)(*)

(*) earlier versions of boost e.g. 1.33 also work

If you want to build directly from the SVN repository you will need
all of the above plus:

 * python <http://www.python.org>                       (2.5.2)
 * ruby   <http://www.ruby-lang.org>               	(1.8.4)

2.2. Important Environment Variable Settings
============================================
Ensure that all the build tools are available on your path, when they are
manually installed to non-standard locations. For example:

 # set PATH=C:\python25;%PATH%

It is also necessary to set BOOST_ROOT to refer to the base of your Boost
installation. The Visual Studio build projects refer to it. For example:

 # set BOOST_ROOT=C:\Program Files\boost\boost_1_35_0


3. Building from a Source Distribution
======================================
The Qpid client/broker, examples, and tests are built with separate
Visual Studio solution files. The procedure for all three is the same.

Start the Visual Studio IDE and open the desired solution. They are located
under the distribution directory in the following places:

- broker/client:  src/qpid.sln
- examples:       src/examples/examples.sln
- tests:          src/tests/tests.sln

Open the desired solution, select Debug/Release, and build.
You can build both Release and Debug in the same directory.

How to easily test????


4. Building a Repository Working Copy
=====================================
To get the source code from the subversion repository (trunk) do:

 # svn checkout https://svn.apache.org/repos/asf/incubator/qpid/trunk/.

A large portion of the source code is generated using some contained
scripts. The generated code is included in source distributions; however,
when building a repository working copy this code must be generated.
To generate the code and build a fresh checkout:

  Open a Visual Studio Command Prompt window
  cd to the qpid\cpp\src directory
  nmake /f protocol_gen.mak

Now follow instruction for building from a source distribution in step (3).


5. Tests
========
See src/tests/README for details.


6. Doxygen
==========
Doxygen generates documentation in several formats from source code
using special comments. You can use javadoc style comments if you know
javadoc, if you don't or want to know the fully story on doxygen
markup see http://www.stack.nl/~dimitri/doxygen/

Even even if the code is completely uncommented, doxygen generates
UML-esque dependency diagrams that are ''extremely'' useful in navigating
around the code, especially for newcomers.

There's no Windows script for generating the Doxygen documentation. You
can either obtain the documentation in a source distribution or, if you
are using a repository working copy, you will need to generate it on
Linux. To try it out "make doxygen" then open doxygen/html/index.html.


7. Troubleshooting
==================

There are currently two JIRAs open against Windows.