Installing Wt using Boost.Build V2

Overview

This way of installation Wt (and its dependencies) mostly addressed to Windows users (but it is working ok on Ubuntu and on FreeBSD).

Dependencies

We will need sources of following libraries:

  • gd-2.0.33
  • jpeg-6b
  • libpng-1.2.5
  • mxml-2.5 (bundled with wt-2.1.5)
  • otl
  • wt-2.1.5
  • zlib-1.2.3
  • boost_1_36_0

Note: There are security vulnerabilities in libpng-1.2.5

Sources should be extracted into corresponding subdirectories (see names above) of same parent directory (e.g. C:\sources).
Move 'mxml' directory from 'wt-2.1.5\src' to the same level with 'wt-2.1.5' and rename it to 'mxml-2.5'.

Patching Boost.Build V2

  • Wt source files are having .C extension but Boost.Build V2 recognizes only .cpp .cxx .cc files as C++. To work around this issue change 'boost_1_36_0\tools\build\v2\tools\types\cpp.jam' line:
type CPP : cpp cxx cc ;

to

type CPP : cpp cxx cc C ;

(Wim Dumon said about .C extensions that: 'we may change it one day'. So this step could be removed in the future.)

  • There is a bug in program_options build script that causes linking errors for some build variants. So change 'boost_1_36_0\libs\program_options\build\Jamfile.v2' lines:
project boost/program_options 
    :
    source-location ../src 
    ;

to

project boost/program_options 
    :
    source-location ../src 
    : usage-requirements # pass these requirement to dependents (i.e. users)
      <link>shared:<define>BOOST_PROGRAM_OPTIONS_DYN_LINK=1
      <link>static:<define>BOOST_PROGRAM_OPTIONS_STATIC_LINK=1
    ;

(I do believe it will be fixed)

Boost.Build V2 scripts for various libraries

Download Boost.Build V2 Scripts"and extract it (e.g. C:\sources).

Apply 'diffuse' file from archive to patch sources of downloaded libraries.

Execute bjam(.exe) in directory where nl-0.0.1.zip was extracted.

Also available in: HTML TXT