Installing Wt on Mac OS X Leopard » History » Version 10
Louis Thiers, 03/22/2011 10:24 AM
| 1 | 5 | Pieter Libin | h1. Installing Wt on Mac OS X Leopard |
|---|---|---|---|
| 2 | |||
| 3 | {{toc}} |
||
| 4 | |||
| 5 | The following are generic installation instructions for installing Wt (from source) on Mac OS X. |
||
| 6 | |||
| 7 | _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._ |
||
| 8 | |||
| 9 | |||
| 10 | h2. Requirements |
||
| 11 | |||
| 12 | * Get "Xcode":http://developer.apple.com/tools/xcode/ to get the compilers and basic libraries. |
||
| 13 | * 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). |
||
| 14 | * Download "Boost 1.35.0":http://downloads.sourceforge.net/boost/boost_1_35_0.tar.bz2 (or later). |
||
| 15 | |||
| 16 | |||
| 17 | h2. Preparation |
||
| 18 | |||
| 19 | |||
| 20 | h3. Build boost |
||
| 21 | |||
| 22 | 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: |
||
| 23 | |||
| 24 | <pre> |
||
| 25 | $ cd boost_1_35_0 |
||
| 26 | $ ./configure --prefix=$HOME/Installed |
||
| 27 | $ make |
||
| 28 | $ make install |
||
| 29 | </pre> |
||
| 30 | |||
| 31 | You will get warnings that not all features will be built, but Wt doesn't require those. |
||
| 32 | |||
| 33 | To build Wt using the this custom build path, you will need to modify your dynamic library path: |
||
| 34 | |||
| 35 | <pre> |
||
| 36 | $ export DYLD_LIBRARY_PATH=~/installed/lib:$DYLD_LIBRARY_PATH |
||
| 37 | </pre> |
||
| 38 | |||
| 39 | |||
| 40 | h2. Building Wt |
||
| 41 | |||
| 42 | Get the "latest Wt version":http://sourceforge.net/project/showfiles.php?group_id=153710#files (wt-2.1.3 or later). |
||
| 43 | |||
| 44 | To build Wt, do the following: |
||
| 45 | |||
| 46 | <pre> |
||
| 47 | $ cd wt-2.1.3 |
||
| 48 | $ mkdir build |
||
| 49 | $ cd build |
||
| 50 | $ cmake -DBOOST_DIR=$HOME/Installed -DBOOST_VERSION=1_35 -DBOOST_COMPILER=xgcc40 ../ |
||
| 51 | $ make |
||
| 52 | $ make -C examples $ to build the examples |
||
| 53 | </pre> |
||
| 54 | |||
| 55 | 9 | Wim Dumon | To run the examples, please see the "generic installation instructions":http://www.webtoolkit.eu/wt/doc/reference/html/Installation.html#examples-wthttpd. |
| 56 | 10 | Louis Thiers | |
| 57 | "writing services.":http://customwritingservices.org/index.php |