Installing Wt on Mac OS X Leopard

The following are generic installation instructions for installing Wt (from source) on Mac OS X.

Only support for the built-in httpd server is listed here. While this is most convenient for development, and also useful for deployment, we probably should expand these instructions to include support for the FastCGI connector.

Requirements

  • Get Xcode to get the compilers and basic libraries.
  • Get CMake 2.4.8 (the recently released 2.6.0 gives some warnings but also works fine).
  • Download Boost 1.35.0 (or later).

Preparation

Build boost

I preferred to install boost in my home directory (since I only need it for Wt). The following builds and installs boost in a "$HOME/Installed" folder:

$ cd boost_1_35_0
$ ./configure --prefix=$HOME/Installed
$ make
$ make install

You will get warnings that not all features will be built, but Wt doesn't require those.

To build Wt using the this custom build path, you will need to modify your dynamic library path:

$ export DYLD_LIBRARY_PATH=~/installed/lib:$DYLD_LIBRARY_PATH

Building Wt

Get the latest Wt version (wt-2.1.3 or later).

To build Wt, do the following:

$ cd wt-2.1.3
$ mkdir build
$ cd build
$ cmake -DBOOST_DIR=$HOME/Installed -DBOOST_VERSION=1_35 -DBOOST_COMPILER=xgcc40 ../
$ make
$ make -C examples $ to build the examples

To run the examples, please see the generic installation instructions.
[http://www.scratchcardportal.com/ scratch cards]

Also available in: HTML TXT