summaryrefslogtreecommitdiff
path: root/dist/win/vc9/windows_build_instructions.txt
blob: 48561d21ac75d7fc364b06eebcf9e7e2347fe7c3 (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

                 How to build ledger with Visual Studio 2008

Let me start by saying that this is probably not suitable for someone with
little C++ and/or Visual Studio experience. This document does assume some
basic knowledger about configuring VS, building C++ projects in general etc.

1. To start, get git from http://code.google.com/p/msysgit/ and install
   it. Checkout ledger from the git repository using the instructions on
   http://github.com/jwiegley/ledger.

2. Next, Download the libraries you need:

   - mpir: http://www.mpir.org/
     (mpir is a source-level alternative for GMP, which supports Windows)
   - mpfr: http://www.mpfr.org/
   - boost: http://www.boost.org/

   Extract mpir & mpfr to lib/win/mpfr & lib/win/mpir.

3. Download the mpfr Visual Studio project files from

   http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php

4. If you didn't download the binary distribution of boost, build it yourself.
   These libraries are linked statically so you need to the static versions.

   Use the following command to build boost (bjam is a separate tool to be
   downloaded from the boost website):

     bjam toolset=msvc-9.0 --build-type=complete
       define=_BIND_TO_CURRENT_MFC_VERSION=1
       define=_BIND_TO_CURRENT_CRT_VERSION=1
       stage

5. Add the boost directory to your VS include directories, and the stage/lib
   directory to the library directories.

6. Checkout utfcpp by updating Ledger's Git submodules:

     git submodule update --init

7. Finally, open the ledger.sln solution and hit build.


If you also want to build the installer, you will first need to somehow
generate the documentation pdf in the doc/ directory. You can either do this
using a TeX distribution for Windows, or copy it from a Linux machine. Next
run the build.bat command in the dist/win/installer directory. The resulting
installer package will be copied to this directory, too.