Installing Wt on Mac OS X Leopard » History » Revision 5
« Previous |
Revision 5/17
(diff)
| Next »
Pieter Libin, 02/09/2010 10:39 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
- Get "Xcode":http://developer.apple.com/tools/xcode/ to get the compilers and basic libraries.
- Get "CMake 2.4.8":http://www.cmake.org/files/v2.4/cmake-2.4.8-Darwin-universal.dmg (the recently released 2.6.0 gives some warnings but also works fine).
- Download "Boost 1.35.0":http://downloads.sourceforge.net/boost/boost_1_35_0.tar.bz2 (or later).
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.
Updated by Pieter Libin almost 15 years ago · 5 revisions