Project

General

Profile

Actions

Installing Wt on Mac OS X Leopard » History » Revision 10

« Previous | Revision 10/17 (diff) | Next »
Louis Thiers, 03/22/2011 10:24 AM


h1. Installing Wt on Mac OS X Leopard

{{toc}}

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.

h2. Requirements

h2. Preparation

h3. 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

h2. Building Wt

Get the "latest Wt version":http://sourceforge.net/project/showfiles.php?group_id=153710#files (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.webtoolkit.eu/wt/doc/reference/html/Installation.html#examples-wthttpd.

"writing services.":http://customwritingservices.org/index.php

Updated by Louis Thiers almost 14 years ago · 10 revisions