summaryrefslogtreecommitdiffstatshomepage
path: root/boost.md
blob: ca847e4eba5f37211a130633a0de1832fadd70c7 (plain) (blame)
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
Boost
=====

Visual Studio
-------------

### x86

From either "x86 Cross Tools Command Prompt" or "x86 Native Tools Command
Prompt":

    > cd
    D:\workspace\third-party\boost_1_61_0\msvc

    > bootstrap
    ...

    > b2 --stagedir=stage\x86  ^
        --with-filesystem      ^
        --with-program_options ^
        ...
    ...

### x64

From either "x64 Cross Tools Command Prompt" or "x64 Native Tools Command
Prompt":

    > cd
    D:\workspace\third-party\boost_1_61_0\msvc

    > bootstrap
    ...

    > b2 --stagedir=stage\x64  ^
        address-model=64       ^
        --with-filesystem      ^
        --with-program_options ^
        ...
    ...

Cygwin + MinGW-w64
------------------

### x86

    > cd
    /cygdrive/d/workspace/third-party/boost_1_61_0/mingw/x86

    > ./bootstrap.sh
    ...

    > cat user-config-x86.jam
    using gcc : : i686-w64-mingw32-g++.exe ;

    > ./b2 toolset=gcc-mingw              \
        target-os=windows                 \
        link=static                       \
        variant=debug                     \
        --stagedir=stage/debug            \
        --user-config=user-config-x86.jam \
        --with-filesystem                 \
        --with-program_options            \
        ...
    ...

### x64

    > cd
    /cygdrive/d/workspace/third-party/boost_1_61_0/mingw/x64

    > ./bootstrap.sh
    ...

    > cat user-config-x64.jam
    using gcc : : x86_64-w64-mingw32-g++.exe ;

    > ./b2 toolset=gcc-mingw              \
        target-os=windows                 \
        address-model=64                  \
        link=static                       \
        variant=debug                     \
        --stagedir=stage/debug            \
        --user-config=user-config-x64.jam \
        --with-filesystem                 \
        --with-program_options            \
        ...
    ...